Hi all,
Looking for some help with the implementation of a ‘sign up with google’ button. Currently, we have an Angular application hooked up to a Spring boot application that is set up with Okta as an oauth client.
We have an Okta hosted sign in page that allows us to sign into okta using okta creds. We also have a ‘Sign in with google’ button on the Okta hosted sign in page.
Additionally, we have created a custom signup/registration page for users built in Angular. This sign up page contains a ‘Sign up with google’ button that will log the user in using our configured Google IDP and if the user does not already exist, we have JIT set up to create the user in Okta.
Here is the problem…
Using the Okta provided authorization and callback urls for the IDP, I am successfully redirected to google to choose an account but when I am redirected to the callback url at Okta, I just keep getting 400 bad request stating Social transaction expired. IDP unknown access_denied. URI (https://testsite.okta.com/oauth2/v1/authorize/callback)
Instead of using the Okta callback url, I have tried using the login redirect uri specified by spring boot ( http://localhost:8080/login/oauth2/code/okta), but when we are redirected there, we are shown the error Reason: [authorization_request_not_found]. This is due to the initial authorization request (http://localhost:8080/oauth2/authorization/okta) not happening prior to the Okta authorization url being invoked.
Not sure how to proceed here…