Skip to content
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

how to reset or remove user token #28

Closed
dni-coder opened this issue Jul 18, 2024 · 1 comment
Closed

how to reset or remove user token #28

dni-coder opened this issue Jul 18, 2024 · 1 comment
Labels
documentation Improvements or additions to documentation tokens User Auth Tokens

Comments

@dni-coder
Copy link

Hello,

when a user is deactivated via sso, the user token is still valid.
How is it possible to reset or remove this user token to be invalid?!

Regards
David

@a-langer
Copy link
Owner

a-langer commented Jul 18, 2024

You need to deactivate the user not only in the identity provider, but also in the Nexus app itself. This is the logic of revoking rights when authorizing through third-party identity providers, see https://help.sonatype.com/en/saml.html#revoking-user-access:

Note that SAML does not allow notification of downstream systems when a user in the identity provider is deactivated. However, as soon as a user is deactivated in the identity provider, they will not be able to log into Sonatype Nexus Repository using SAML.

If these users have user tokens, those will remain present in Sonatype Nexus Repository.

The user's status when authorizing using tokens is checked by an SQL query in shiro.ini#L76

@a-langer a-langer added documentation Improvements or additions to documentation tokens User Auth Tokens labels Jul 18, 2024
@a-langer a-langer closed this as completed Aug 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation tokens User Auth Tokens
Projects
None yet
Development

No branches or pull requests

2 participants