Hi guys. I am trying to use the <OIDC endpoints> t...
# ask-a-descoper
n
Hi guys. I am trying to use the OIDC endpoints to authenticate users with Silent Authentication. I have set
...&prompt=none
but still get the log-in screen. Any way to debug what's going on? Furthermore (maybe a separate issue?), when the URL I set the browser to us
https://my-custom-domain.net//oauth2/v1/authorize
but the redirect to the login (which I want to avoid with Silent Authentication) is to
https://api.descope.com/login/
, and not the custom domain. Is that intentional?
I change the Flow Hosting URL to our custom domain on
OIDC default application
Federated App and it resolved the issue. Is that what I should have done?
Actually the problem wasn't solved (?) I'm pretty sure it worked, but it doesn't anymore. Silent Authentication is not happening
Well here is my status for now: 1. We use the react component on our main page and notice that is save the tokens to local storage (my-custom-domain.net). The baseUrl is of course auth.my-custom-domain.net (configured in Descope as the custom domain) 2. I also have an OIDC flow which uses the default Federated App. This page always asks for authentication, even with prompt=true. The tokens are never stored. It's hosted by you guys on auth.my-custom-domain.net. I expect that after that the user is logged in using the normal logging flow (1), the user will already be authenticated so no further logging is needed in the OIDC flow. Anyway, why would the login on auth.my-custom-domain.net (hosted) will not store the tokens, and requests the login every time?
a
@Meir Wahnon any chance you can assist?
m
@Chris Carper @Rahul Rijhwani can you follow up here ?
šŸ‘€ 1
r
Let me check
n
Thanks @Rahul Rijhwani
c
@Nir Haas - for this, are you trying to use client credentials flow to exchange for a token: Or are you trying to federate between different applications if the user is already authenticated? • Do you use the load user action at the beginning of the flow to check if the user is already authenticated before displaying the rest of the flow?
n
Hi @Chris Carper. We are using code flow with pkce in two cases - The one is with react-sdk, the second with oidc. Not using the load user action
If you want to I can hop on a quick call and show you
c
Starting a thread with you @Nir Haas