Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

🌱 Add custom scopes to authorisation request#277

Open
kelvin-chappell wants to merge 4 commits intookta:master from
kelvin-chappell:kc/scopes
Open

🌱 Add custom scopes to authorisation request #277
kelvin-chappell wants to merge 4 commits intookta:master from
kelvin-chappell:kc/scopes

Conversation

@kelvin-chappell
Copy link

@kelvin-chappell kelvin-chappell commented Oct 28, 2022
edited
Loading

This change enables the Okta-hosted login app to request additional custom access scopes when authorising.

Custom scopes can now be added as an optional property called CUSTOM_SCOPES in the testenv property file.
Each scope is space separated.
Eg.

CUSTOM_SCOPES=read write

These scopes are then added to the default list and included in the token request.

Copy link

@jaredperreault-okta can you give this a review and merge if you're happy please?

Copy link
Contributor

@kelvin-chappell @Mark-McCracken Do you mind explaining your use case?

Copy link
Author

@kelvin-chappell @Mark-McCracken Do you mind explaining your use case?

At the moment, if you need to generate an access token with more than the default access scopes configured here you have to search through the code and add them to that array.
By making this a configurable environment variable we improve the dev experience and make it very easy to see, and modify, what scopes have been requested with the token.

Copy link

@jaredperreault-okta I've been using this for the last few days, which has been helpful for getting certain kinds of access tokens. Do you need anything to get this merged?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /