OAuth 2.0 Authentication Vulnerabilities
The first vulnerability is in the title, OAuth is an Authorization framework (Open Authorization) and is explicitly NOT for authentication. It’s also a delegation protocol (I give you something to do on my behalf).If you want a list of things that can go wrong, look here: https://tools.ietf.org/id/draft-ietf-oauth-security-topics-1...Generally you probably do not need OAuth2: https://www.ory.sh/hydra/docs/concepts/before-oauth2/But if you do don’t roll your own but use proven open source like https://github.com/ory/hydra