Skip to content

Commit

Permalink
Merge pull request #47 from UniversitaDellaCalabria/melanger-patch-1
Browse files Browse the repository at this point in the history
docs: thread-safe example config
  • Loading branch information
peppelinux authored Nov 6, 2023
2 parents 57e37ab + 5dffe80 commit eb8061a
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 eb8061a

Please sign in to comment.