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

get_credential checks for active session or group membership #168

Open
hongsudt opened this issue Feb 2, 2023 · 0 comments
Open

get_credential checks for active session or group membership #168

hongsudt opened this issue Feb 2, 2023 · 0 comments
Assignees

Comments

@hongsudt
Copy link
Contributor

hongsudt commented Feb 2, 2023

We discussed on slack adding something like get_credentials(hostname, require_session=True) which raises an exception if the credentials do not allow a probe to GET /authn/session to find an active session. This sort of test would also be needed for the fallback scenario, since it is not enough to just pull a (possibly stale) cookie or token out of the local storage and declare success.

For some scripting, it might also be useful to require a user be in certain groups? Or maybe you want to do a different requirement check further along like checking that you have a certain "right" on an ermrest catalog?

Note: we also discussed to check oauth-based credentials first because those are potentially renewable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants