-
-
Notifications
You must be signed in to change notification settings - Fork 84
Setting up OAuth
Visit console.cloud.google.com and create or use an existing project, go to APIs & Services
-> Credentials
and create there an OAuth ClientID
for the application type WebApplicaton
. There you get the ClientID and the ClientSecret for your configuration. It's important, that you set in the Google Cloud Platform YOUR_URL/api/v1/auth/google/callback
as an authorized redirect URL.
Visit apps.dev.microsoft.com and register an application. To set the callback URL, you need to click on the Add Platform
button there you select Web
and enter as it YOUR_URL/api/v1/auth/microsoft/callback
. After that you can generate a password on the Generate New Password
button which represents your ClientSecret
.
Visit github.com and create a new OAuth application. For the callback URL use YOUR_URL/api/v1/auth/github/callback
. The other values are not relevant. There you get as expected the ClientID and the ClientSecret.
- Replace
YOUR_URL
with your origin URL. In the end the URL should look e.g. likehttp://shortener.google.com/...
.