How to add oauth2 to any application via docker

OAuth

OAuth is an open standard for access delegation, commonly used as a way for Internet users to grant websites or applications access to their information on other websites but without giving them the passwords.

OAuth replaces the need for username/passwords or other complex login systems.

Who uses it

Everyone already, if one logs in to anything with their facebook or google accounts then they are already using OAuth as these are OAuth providers.

https://www.ory.sh/static/oauth2-flow.48770400.gif

How does it work

From the user’s point of view, they login once with their OAuth provider (gitlab+AD for the community grid) and any time they visit an app or site that needs authentication they will get access. If they’re logged out of the app then they will see a prompt to authenticate after clicking the button it will send a request to the Oauth Provider which validates them and allows access. The user never sees a password prompt again (unless they logged out of the OAuth provider)

Impressed yet?

Extra Reading

Examples

2 Likes