Handling expired PAR with multiple applications #326
Replies: 1 comment
-
Our UI templates shows an example implementation on how you can use the In the case you're describing, when the authentication fails due to the PAR request expiring, the error context will contain the following data in the
This information could help in customizing the error experience to show a link back to the application (based on the client ID - when set). Optionally, you can use the You could also optionally increase the lifetime of the PAR request (either globally or for a specific client), although we generally recommend not doing so: 10 minutes should be sufficient for most users to complete a sign in flow, even when resetting their password. And when your IdentityServer solution needs to be FAPI 2.0 compliant, the FAPI 2.0 Security Profile also recommends to configure the PAR lifetime to a maximum of 10 minutes. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
We are using Duende IdentityServer for our identity application, and have two other applications that rely on that identity app for authentication. We have PAR enabled, so whenever one of our main apps redirects the user to the identity app (either directly or via a link in an email such as when resetting a password) the user has 10 minutes (by default) in order to perform their actions and login in order to be successfully redirected back. If that 10 minutes has elapsed, the user will instead be directed to the error page defined in IdentityServerOptions.UserInteraction.ErrorUrl.
This error has been occurring quite often in our application, most likely due to users resetting their password but not opening the email and performing the reset within the 10 minutes they are given.
We are having some trouble with the best way of handling this and we have a couple of queries:
Based on my reading it seems like enabling PAR is a good idea for security and that 10 minutes is an adequate lifetime, but if we are using this incorrectly please let me know.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions