Explicitly require ash authentication settings
Previously, we'd rely on defaults for configuring user token authentication. With these changes, we explicitly require :session_identifier and :require_token_presence_for_authentication to be configured in the application environment to make sure the system is configured the way it should be.
This commit is contained in:
parent
96085ea420
commit
a3746dfaaa
1 changed files with 3 additions and 4 deletions
|
|
@ -19,16 +19,15 @@ defmodule Mv.Accounts.User do
|
||||||
Currently password and SSO with Rauthy as OIDC provider
|
Currently password and SSO with Rauthy as OIDC provider
|
||||||
"""
|
"""
|
||||||
authentication do
|
authentication do
|
||||||
session_identifier Application.compile_env(:mv, :session_identifier, :jti)
|
session_identifier Application.compile_env!(:mv, :session_identifier)
|
||||||
|
|
||||||
tokens do
|
tokens do
|
||||||
enabled? true
|
enabled? true
|
||||||
token_resource Mv.Accounts.Token
|
token_resource Mv.Accounts.Token
|
||||||
|
|
||||||
require_token_presence_for_authentication? Application.compile_env(
|
require_token_presence_for_authentication? Application.compile_env!(
|
||||||
:mv,
|
:mv,
|
||||||
:require_token_presence_for_authentication,
|
:require_token_presence_for_authentication
|
||||||
false
|
|
||||||
)
|
)
|
||||||
|
|
||||||
store_all_tokens? true
|
store_all_tokens? true
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue