How to use OAuth2 with new version 3.0.2? #11
Unanswered
jagdish-176
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Are you sure you are using the right type of Authentication? OAuth2 doesn't require a token in the If you want to use a token in the Authorization header consider using HTTP basic or bearer authentication types. Also, check out the Authentication Middleware, which provides JWT implementation for bearer token. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have migrated from swagger-tools to [email protected] and now trying to migrate from 2.x to 3.x
Previously with 2.x I have security handler as below where I could get token for verification
OAuth2 = async (req, def, scopes, next) =>{ /*validate token from req.Authorization */}
Now with 3.x, I'm unable to get token. I would appreciate quick help on this
OAuth2: (secDef, secScope) => { /* OAuth authentication */ } // How do we get token here?
Beta Was this translation helpful? Give feedback.
All reactions