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

Pass access_token to namespace getter #1746

Merged
merged 6 commits into from
Nov 19, 2024

Conversation

CannonLock
Copy link
Contributor

  • Fixes register buttons for non admin users

- Fixes register buttons for non admin users
@CannonLock CannonLock requested a review from h2zh November 15, 2024 18:49
- Fixes register buttons for non admin users
@@ -69,7 +69,7 @@ const AuthenticatedContent = ({
if (data && checkAuthentication) {
return checkAuthentication(data);
} else {
return data?.authenticated !== undefined;
return !!data?.authenticated;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note this fixes another issue that I saw where the previous solution would consider you authenticated even if data.authenticated == false.

@bbockelm
Copy link
Collaborator

@CannonLock - could you please create a write-up of the underlying issue itself for posterity?

- Fixes register buttons for non admin users
@CannonLock
Copy link
Contributor Author

CannonLock commented Nov 15, 2024

@CannonLock - could you please create a write-up of the underlying issue itself for posterity?

https://docs.google.com/document/d/1z6VgMSGXzO49keZenvYTS2xAXGkFsyHWZTjFONum2Ew/edit?usp=sharing

TLDR: Things likely got tested using Federation in a box which carried over the auth cookies to the director which hid missing functionality

@h2zh
Copy link
Collaborator

h2zh commented Nov 19, 2024

could you take a look at the failed linter test

@CannonLock CannonLock merged commit 9d1c26f into PelicanPlatform:main Nov 19, 2024
19 of 20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants