-
Notifications
You must be signed in to change notification settings - Fork 85
Added instructions on how to generate PEM keypair, needed by JWT authentication #2812
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
base: 4.6
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -145,3 +145,18 @@ | |||||||||||||||
entry_point: lexik_jwt_authentication.jwt_token_authenticator | ||||||||||||||||
stateless: true | ||||||||||||||||
``` | ||||||||||||||||
|
||||||||||||||||
In order for the application to be able to generate JWT tokens, a [PEM encoded keyset needs to be generated](https://symfony.com/bundles/LexikJWTAuthenticationBundle/current/index.html#generate-the-ssl-keys) using the command: | ||||||||||||||||
|
||||||||||||||||
```bash | ||||||||||||||||
php bin/console lexik:jwt:generate-keypair | ||||||||||||||||
``` | ||||||||||||||||
|
||||||||||||||||
The generated key pair will be stored in `config/jwt` | ||||||||||||||||
Check warning on line 155 in docs/infrastructure_and_maintenance/security/development_security.md
|
||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||||||
|
||||||||||||||||
!!! note "[[= product_name_cloud =]]" | ||||||||||||||||
|
||||||||||||||||
In order to be able to store generate and store the tokens on [[= product_name_cloud =]], you must define `config/jwt` | ||||||||||||||||
as a volume in `.platform.app.yaml`. If you have a 3-node-cluster setup, you must ensure the key pair is the same on all | ||||||||||||||||
3 servers. Either use a network share for this, or use local mount manually copy the same keu pair | ||||||||||||||||
to all servers | ||||||||||||||||
Comment on lines
+159
to
+162
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
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.
key pair
consistently, imho no need to introduce "keyset" kere