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
|
||||
"""
|
||||
authentication do
|
||||
session_identifier Application.compile_env(:mv, :session_identifier, :jti)
|
||||
session_identifier Application.compile_env!(:mv, :session_identifier)
|
||||
|
||||
tokens do
|
||||
enabled? true
|
||||
token_resource Mv.Accounts.Token
|
||||
|
||||
require_token_presence_for_authentication? Application.compile_env(
|
||||
require_token_presence_for_authentication? Application.compile_env!(
|
||||
:mv,
|
||||
:require_token_presence_for_authentication,
|
||||
false
|
||||
:require_token_presence_for_authentication
|
||||
)
|
||||
|
||||
store_all_tokens? true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue