Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

oauth example #22

Open
javadch opened this issue May 3, 2019 · 3 comments
Open

oauth example #22

javadch opened this issue May 3, 2019 · 3 comments

Comments

@javadch
Copy link

javadch commented May 3, 2019

Can you please provide an example that includes the use of oauth in the spec (and in the code).

@kiebzak
Copy link
Contributor

kiebzak commented May 5, 2019

Hi @javadch. Speaking about oauth2, we currently provide an operation middleware for oauth2 scopes authorization. It can be used for already authenticated requests when you have set oauth scopes on the path (e.g. by some prior middleware on express stack) that can be reached from req (e.g. req.user.grantedScopes or req.headers['x-oauth-scopes']).

Please let me know if it is what you are looking for and I would love to provide an example of oauth scopes authorization.

@javadch
Copy link
Author

javadch commented May 5, 2019

Thanks @kiebzak. It would be very helpful to have the example and then talk on that if something else is needed.

@javadch
Copy link
Author

javadch commented May 13, 2019

look at exegesis as an example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants