-
Notifications
You must be signed in to change notification settings - Fork 265
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Token not revoked when used via the Widget following built in Reset Password feature #748
Comments
Hi @staffordp, This seems to be related to #747. Can you use an older version for now until our JS devs submit a fix? |
@laura-rodriguez Which version do you suggest? We had been using 4.6.1 and that didn't work either. |
Tried 4.9.0. Does not work either. The only difference I see in the introspect of these users is the scope field. For these users, introspect comes back with:
whereas other users that do not use this flow (where the revoke works) have a scope of the following when an introspect is done on their active token:
Is there a specific version that works? I'd rather not test with every version prior to 5.0.0 Just tried version 4.8.0, 5.0.2 and neither work either. |
@staffordp Can you share any detail about how the tokens is stored? Issue may happen if multiple OktaAuth instances has been created, but one use custom storage (cookie) for storage, but the other one use the default storage ('sessionStorage') for revoke. If you are using the widget, you probably can keep using the authClient from it. |
We use the .sessionStorage option when setting the okta config. |
Then why the tokens end up in the cookies? Can you share your storage related widget config and the oktaAuth config (if you create another authClient instance)? |
@staffordp also, what browser are you using? token storage may fallback to cookies if neither sessionstroage nor localStorage is available. Just want to check if it's the case. |
@shuowu Using Chrome |
Is there any update or workaround for this issue? |
Discovered why the revoke was failing. During the getWithoutPrompt which is used for the tile Login, the tokens received were not being grabbed by the tokenManager. Adding this bit of code fixed the issue:
In the end, I was able to use the latest version (5.0.2) |
Okta version: 5.0.1
The revoke is not working when using the okta widget when a user uses the built-in reset password feature from the Okta widget provided by Okta. Once the password is reset, it takes the user to a dashboard where they can launch the application (again dashboard provided by Okta) and the user authenticates in with this token. I see the token is stored in the cookie storage and when I do an introspect on this cookie, it shows as active. Yet when I log out of the app which, in turn, revokes the token, an introspect call shows the token as active still. Is this a known limitation of the library or is this supposed to work?
Code for revoke token:
The text was updated successfully, but these errors were encountered: