Skip to content

Q: How to pass OAuth scope ? #73

Description

@dhlavaty

I'm trying to use @node-cli-toolkit/generate-oauth-token-cli exactly as mentioned in the documentation.

How can one set a proper OAuth scope?

Most servers requires to define an OAuth scope, in my case scope should be profile offline_access.

I used:

generate-oauth-token-cli --authorizationURL=https://auth.censored.com/oauth2/authorize --tokenURL=https://auth.censored.com/oauth2/token --appKey=12censored34 --appSecret=AcensoredZ 

but from the console log I see, that server responds with an error:

_header: 'GET /auth/callback?error=invalid_scope&error_description=%22scope%22+must+contain+at+least+one+value HTTP/1.1\r\n'

and that is exactly because of the missing scope.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions