Reputation: 33
I have added these 2 identity providers (refer attached images) to Google Cloud -->Identity Platform
Now if you see there is a User section as well under Identity Platform So I have added some random users which are non gmail users (refer image), like [email protected], which I want to authenticate with the help of Google Cloud (it when this user comes to login, I will hit API endpoint /login and in login server side code, I will redirect to Google Cloud to Authenticate this user using OIDC Authorization flow)
I need Java code to :
I was referring to this link : https://cloud.google.com/identity-platform/docs/web/oidc If you search "Signing in users with OAuth" this section on page, that is what exactly I am looking for, but the problem is it has given a UI code example using Firebase API example, to create OAuthProvider instance (which will choose provider), but I need server side code example instead, I am not sure if I can use this Firebase API on server side java code for a web application? Any suggestion that how can I do similar things from a server side Java code?
added Providers under Identity-platform
Added users manually which I wanted to authenticate
Upvotes: 2
Views: 222