Skip to content

Commit

Permalink
docs: thread-safe example config
Browse files Browse the repository at this point in the history
by default, password and salt
used for encryption of authorization code
are autogenerated,
which breaks code exchange
when using multiple threads or servers
  • Loading branch information
melanger authored Nov 6, 2023
1 parent 57e37ab commit 5dffe80
Showing 1 changed file with 29 additions and 2 deletions.
31 changes: 29 additions & 2 deletions example/oidcop_frontend.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,21 @@ config:
email:
- urn:oasis:names:tc:SAML:2.0:ac:classes:InternetProtocolPassword
session_params:
password: CHANGE_ME__password_used_to_encrypt_access_token_sid_value
salt: 'CHANGE_ME salt involved in session sub hash'
encrypter:
class: cryptojwt.jwe.fernet.FernetEncrypter
kwargs:
password: CHANGE_ME__password_used_to_encrypt_access_token_sid_value
salt: 'CHANGE_ME salt involved in session sub hash'
keys:
key_defs:
- type: OCT
use:
- enc
kid: password
- type: OCT
use:
- enc
kid: salt
sub_func:
pairwise:
class: idpyoidc.server.session.manager.PairWiseID
Expand All @@ -195,6 +208,20 @@ config:
code:
kwargs:
lifetime: 600
crypt_conf:
kwargs:
password: CHANGE_ME__password_used_to_encrypt_authorization_code
salt: 'CHANGE_ME salt involved in authorization code hash'
keys:
key_defs:
- type: OCT
use:
- enc
kid: password
- type: OCT
use:
- enc
kid: salt
id_token:
class: idpyoidc.server.token.id_token.IDToken
kwargs:
Expand Down

0 comments on commit 5dffe80

Please sign in to comment.