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

Make Authenticated component secure by default #10251

Merged
merged 2 commits into from
Oct 2, 2024

Conversation

fzaninotto
Copy link
Member

@fzaninotto fzaninotto commented Oct 1, 2024

Problem

<Authenticated> displays its child while the auth status is being checked. It may potentially render restricted content to anonymous users.

Solution

Make it render nothing while loading.

Part of #10222

## Problem

`<Authenticated>` displays its child while the auth status is being checked. It may potentially render restricted content to anonymous users.

## Solution

Make it render nothing while loading.
Copy link
Collaborator

@djhi djhi left a comment

Choose a reason for hiding this comment

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

👍

docs/useAuthState.md Outdated Show resolved Hide resolved
docs/Authenticated.md Outdated Show resolved Hide resolved
docs/Authenticated.md Outdated Show resolved Hide resolved
docs/useAuthenticated.md Outdated Show resolved Hide resolved
Co-authored-by: Gildas Garcia <1122076+djhi@users.noreply.github.com>
@djhi djhi merged commit b5edf22 into access-control-resources Oct 2, 2024
14 checks passed
@djhi djhi deleted the authenticated-pessimistic branch October 2, 2024 09:40
@fzaninotto fzaninotto added this to the 5.3.0 milestone Oct 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RFR Ready For Review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants