oauth example
Can you please provide an example that includes the use of oauth in the spec (and in the code).
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.
Thanks @kiebzak. It would be very helpful to have the example and then talk on that if something else is needed.
look at exegesis as an example.