mirror of
https://gitea.com/mcereda/oam.git
synced 2026-02-08 21:34:25 +00:00
2.0 KiB
2.0 KiB
OAuth 2.0
TODO
Intro
TL;DR
Use OAuth 2.0 in an application
Refer Setting up OAuth 2.0.
Caution
Google does not accept raw IP addresses.
Make sure the application is configured to use a fully-qualified domain name.
-
Go to the Clients part of the Google Auth Platform console.
Direct link. -
In the upper-left corner, select a Google Cloud project if none is already.
-
Select the Create client button on top of the middle section.
-
Complete the fields.
Example: GitLab
Application type: Web application Name: GitLab Authorized JavaScript origins: https://gitlab.example.org Authorized redirect URIs: # the domain name, followed by the callback URIs; add one at a time https://gitlab.example.org/users/auth/google_oauth2/callback https://gitlab.example.org/-/google_api/auth/callback -
Select the Create button. A window will pop up with the client ID and client secret.
-
Note the client ID and secret down or download the JSON.
-
Configure the application as appropriate.