Dummy Auth provider¶
Description¶
This auth provider allows to sign-in with any username and password, and and then issues an access token.
After successful auth, username is saved to backend database. It is then used for creating audit records for any object change, see changed_by field.
Interaction schema¶
Interaction schema
Configuration¶
- pydantic model horizon.backend.settings.auth.dummy.DummyAuthProviderSettings¶
Settings for DummyAuthProvider.
Examples
HORIZON__AUTH__PROVIDER=horizon.backend.providers.auth.dummy.DummyAuthProvider HORIZON__AUTH__ACCESS_KEY__SECRET_KEY=secret
- field access_token: JWTSettings [Required]¶
Access-token related settings
- pydantic model horizon.backend.settings.auth.jwt.JWTSettings¶
Settings related to JWT tokens.
Examples
HORIZON__AUTH__ACCESS_KEY__SECRET_KEY=somesecret HORIZON__AUTH__ACCESS_KEY__EXPIRE_SECONDS=3600 # 1 hour
- field secret_key: SecretStr [Required]¶
Secret key for signing JWT tokens.
Can be any string. It is recommended to generate random value for every application instance.
- field security_algorithm: str = 'HS256'¶
Algorithm used for signing JWT tokens.
See authlib documentation.
- field expire_seconds: int = 36000¶
Token expiration time, in seconds