Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[Security] Add security:oidc-token:generate command#60660
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
4fba1cd tod5b0868Comparechalasr commentedJun 6, 2025
Good call 👍I would make "token" or "jwt" part of the command name though as I find "oidc:generate" rather confusing (yup, no better suggestion yet 🙃). |
Jean-Beru commentedJun 6, 2025
Sure! Not more inspired than you, I renamed it to |
Spomky left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
That's a nice idea!
No remarks for this PR and OK with the nameoidc-token:generate.
chalasr commentedJun 11, 2025
Maybe |
...y/Bundle/SecurityBundle/DependencyInjection/Security/AccessToken/OidcTokenHandlerFactory.phpShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
src/Symfony/Component/Security/Http/AccessToken/Oidc/OidcTokenGenerator.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
stof commentedJun 11, 2025
I like the |
Jean-Beru commentedJun 16, 2025
OK, let's go with |
| ; | ||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Extra new line
| */ | ||
| class OidcTokenGeneratorTestextends TestCase | ||
| { | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
| * | ||
| * @final |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Not needed as the class is already marked as final.
| * | |
| * @final |
730512f to5c18b1aComparefabpot commentedOct 6, 2025
Thank you@Jean-Beru. |
fd498be intosymfony:7.4Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
The
OidcTokenHandler, introduced in Symfony 6.3, allows to decode a JWT token, validate it and retrieve the user info from it.This pull request introduces a new Symfony command,
bin/console security:oidc-token:generate, designed to facilitate the generation of JWTs. It can be useful for generating a token for testing purpose.Argument and options
Usage
Tip
When there is only one value, both "firewall", "algorithm" and "issuer" are not required..