Skip to content

Conversation

@uvdsl
Copy link
Owner

@uvdsl uvdsl commented May 3, 2025

This PR competes with #7.

In this version, we rely on the RefreshTokenGrant to restore a session.
For persistence, we use the IndexedDB API as discussed here.

We do not use Silent Authentication which addresses the concern regarding the IDPs session cookies being SameSite=None.

This PR provides a clear improvement in terms of security compared to the current main version.
The current version stores client_secret and refresh_token in sessionStorage, which is equivalent to storing an (extractable) DPoP KeyPair in sessionStorage. Because we store a non-extractable DPoP KeyPair via the IndexedDB API we reduce the risk surface of this library, and follow the Best Current Practice.

@uvdsl uvdsl marked this pull request as ready for review May 3, 2025 21:24
@uvdsl uvdsl self-assigned this May 3, 2025
@uvdsl uvdsl changed the title Addressing #6 - public client: token_endpoint_auth_method should be none Addressing #6 - public client: token_endpoint_auth_method should be none (RefreshTokenGrant) May 3, 2025
@uvdsl uvdsl changed the title Addressing #6 - public client: token_endpoint_auth_method should be none (RefreshTokenGrant) Addressing #6 - public client: token_endpoint_auth_method should be none (RefreshTokenGrant) May 3, 2025
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.

public client: token_endpoint_auth_method should be none Management of session data

2 participants