I am trying to integrate silent refreshing of access tokens within an iframe by using prompt=none using the oauth authorize endpoint. I can't seem to figure out how to do this or if it is even supported and do not see any information in the documentation here:
https://fusionauth.io/docs/v1/tech/oauth/overview
I've tried using prompt=none in the URL but it doesn't seem to do anything.
I expect prompt=none to work according to OpenID Connect Core 1.0
Thanks for all your help!
FusionAuth doesn't currently support the prompt=none
option for the authorization code grant. This is something we are planning on adding in one of the upcoming releases.
However, there is a work-around that others have used. You can make an AJAX request to the authorize endpoint of FusionAuth and then check the result to determine if the user needs to log in again or refresh their access token.
Here's how it works:
User not logged in
User still logged in
redirect_uri
with an authorization codeThis flow works in AJAX nicely. It doesn't work well in an iframe
because there isn't a way for the iframe
to message back out to your application that either the user needs to log in again or they are still logged in and now have a new access token.
If you want to open a GitHub issue for the prompt=none
support on our authorize endpoint, you can do that here: https://github.com/FusionAuth/fusionauth-issues
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With