question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Silent Redirect URI vs Silent Login URI

See original GitHub issue

This is actually more a question than an issue: For some reason, the method silentLoginAsync is timing out on my project. I’m trying to figure out why.

Looking at the code and instructions, it’s not clear to me what those two params are used for.

silent_login_uri what value should I add here? Is it a URL from my site? or is it something from my authentication provider?

Do you guys have any idea why this might be timing out?

Attaching a screenshot of the issue happening in production. Screenshot from 2022-10-25 13-53-56

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
guillaume-chervetcommented, Oct 26, 2022

Hi, @tielushko ,

By default the library use the shorter life between access_token and id_token.

There is a property to change the default behavior.

an example: https://github.com/AxaGuilDEv/ml-cli/blob/master/src/Ml.Cli.WebApp/ClientApp/public/environment.dev.json "token_renew_mode": "access_token_invalid"

token_renew_mode: PropTypes.string, // Optional, update tokens base on the selected token(s) lifetime: "access_token_or_id_token_invalid" (default), "access_token_invalid" , "id_token_invalid"

1reaction
tielushkocommented, Oct 26, 2022

I wanted to add to this conversation, we have set the AccessTokenLifetime property on the IdentityServer that we use with this application to a lifetime of 48hrs. However, I noticed that the expiresAt property is different and is always set to be 300 seconds from the time the token was issued, despite the expiresIn property being valid, and set to 48hrs (172800 seconds).

Github

How would we go about modifying this expiresAt property? I see it used in codebase quite frequently and I believe that, in part, triggers our silent sign in failures.

Additionally, I checked the cookie that the OIDC uses, and it has the SameSite=None property.

image

Read more comments on GitHub >

github_iconTop Results From Across the Web

Configure Silent Authentication - Auth0
Learn how to keep users logged in to your application using silent authentication.
Read more >
How to silently redirecting the browser to the redirect Uri to ...
To redirect the call silently, I followed the documentation ... authorization server, show or do not show a login and / or consent...
Read more >
Silent refresh using same redirect Uri? · Issue #562 - GitHub
Problem: My Authorization server doesn't allow multiple redirect URI. I am ok to show user a button for "Extend Session" or "Refresh Token"...
Read more >
React : How can i set prompt=none to silently redirecting the ...
Hi, I am using Okta with React for authentication. And my login works ... For this i found that i can use prompt=none...
Read more >
Refreshing a Token when using Implicit Flow (Silent Refresh)
To use this approach, setup a redirect uri for the silent refresh. ... URL of the SPA to redirect the user to after...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found