Authorization Request - cybergizer-hq/alfred GitHub Wiki

You can create an authorization request to Alfred (https://alfred-cg.herokuapp.com/oauth/authorize). To do this, define the following parameters:

  • REQUIRED response_type (value must be set to code)
  • REQUIRED client_id (uid of your Alfred application)
  • OPTIONAL redirect_uri (uri to redirect after auth, must match your Alfred application redirect_uri)
  • OPTIONAL scope (the scope of the access request, must match your Alfred application scopes)
  • RECOMMENDED state (an opaque value used by the client to maintain state between the request and callback)

As a result, your request should look like this https://alfred-cg.herokuapp.com/oauth/authorize?client_id=qwertyuiop&redirect_uri=https%3A%2F%2Flocalhost%3A3000&response_type=code&scope=user&state=123456

! Please note, when passing uri:

  • use https
  • replace all / to %2F
  • replace all : to %3A