
User16789882487976487495 (Customer) asked a question.
I have an API written in .net thta uses swagger to test the API. Once the API is loaded, if I click on the Authorize button, it shows the following config:
Authorization URL: https://dev-********.okta.com/oauth2/default/v1/authorize
Token URL: https://dev-********.okta.com/oauth2/default/v1/token
Flow: authorizationCode with PKCE
The redirect URI is: https://localhost:7151/swagger/oauth2-redirect.html and I've added that redirect uri to OKTA.
Now if I select to login using email and code, it redirects to my API just fine after authentication. But when I choose my google IdP it only ever redirects me to the okta dashboard of the user that signed in.
I've done some experiments and discovered that if I use the following url to test the connection:
It accurately loads the google account login, and when I authenticate it redirects me properly.
However, when I go through swagger, and then I select "Sign in with Google" it brings me to:
https://okta-devok12.okta.com/sso/idps/****** and when I authenticate it drops me at my user's okta account dashboard instead of navigating to the redirect_uri passed from swagger.

Hi @User16789882487976487495 (Customer) , Thank you for reaching out to the Okta Community!
This question is more appropriate for our dedicated Okta Developer Forum.
My advice would be to reach out devforum.okta.com to take advantage of their expertise.
While we'll do our best to answer all of your questions here, this medium is more inclined towards Okta core products and features (non-developer work).
In the meantime, please take a look at this older post to see if it helps with your implementation.
Regards.
--------------------------------
Subscribe Today: The Okta Community is on YouTube
I created a post here but I did not receive a response. This is still an outstanding issue and it seems I am not able to open a support ticket for this. Can someone please reach out to me to help me through this?
Thanks
Hi @User16789882487976487495 (Customer) ,
I've brought this to my dev colleagues attention. They'll be taking a look at things.
Regards.
--
Join the discussion for the Ask Me Anything online event on May 23, 2024 with Okta Tactical Edge Product Experts