Expand description
Utilities when testing, that allow doing insecure things to authentication
Statics§
- SECRET 🔒
- An empty secret, used for authentication
Functions§
- auth_
header_ for_ new_ user - Get a header containing authentication for the user user_id
- auth_
token_ for_ new_ user - Get an auth token for the user user_id, with the device id MYDEVICEID
- auth_
token_ for_ new_ user_ with_ device - Get an auth token for the user user_id with a specific device id
- generate_
auth_ token - Generates an auth token for a user and device
- mock_
oidc_ keys - Mock an OIDC server returning a specific key set and make the server config point to it.
- test_
jwk - JWK of the in-memory secret used for test authentication