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

SetSecret regenerates config with new secret in the Lcobucci provider #250

Merged

Conversation

f3cp
Copy link

@f3cp f3cp commented May 27, 2024

Description

The secret that is set using the SetSecret method of the Lcobucci Provider is not used when encoding/decoding.
This is due to the secret only being applied when the config is generated when the provider is first being constructed.

To fix the issue, the config needs to be regenerated after the new Secret has been set.

Fixes #226

Checklist:

  • [Y ] I've added tests for my changes or tests are not applicable
  • [Y ] I've changed documentations or changes are not required
  • [Y ] I've added my changes to CHANGELOG.md

Jozz Scott added 2 commits May 27, 2024 17:52
@Messhias
Copy link
Collaborator

Messhias commented May 27, 2024

@f3cp PHP Stan tests are failing.

@f3cp
Copy link
Author

f3cp commented May 27, 2024

@f3cp PHP Stan tests are failing.

Sorry @Messhias - this has now been updated.

@Messhias Messhias merged commit eaf0c57 into PHP-Open-Source-Saver:main May 27, 2024
12 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.

Generated token with custom claims & secret isn't encoded with the custom secret.
2 participants