Tenant SettingsのInactivity timeoutとRequire log in after設定時の動作 – 【Auth0】

Tenant SettingsのInactivity timeoutとRequire log in after設定時の動作 – 【Auth0】

ライブラリ

ライブラリバージョン
@auth0/auth0-spa-js2.0.8

ブラウザを閉じるタイミングでCookieを削除しないように設定する

Tenant Settings

「Tenant Settings」-「Advanced」でInactivity timeoutとRequire log in afterを設定することができます。

Inactivity timeout(非アクティブタイムアウト)

Inactivity timeoutで指定した時間、非アクティブだと再度ログイン認証が必要な時間になります。

ユニバーサルログイン画面でログインし、ブラウザを一旦閉じます。

Inactivity timeoutで指定した指定時間経過してから、ブラウザを再度開くと、未ログイン状態になります。

Require log in after(ログインが必要)

Require log in afterは、アクティブとか関係なく、ここで指定した時間が経過すると再度ログイン認証が必要な時間になります。

ユニバーサルログイン画面でログインし、ブラウザを一旦閉じます。

Require log in afterで指定した時間内であれば再度ブラウザを立ち上げて画面表示すると既にログインした状態になっていると思います。この期限を過ぎるとユニバーサルログイン画面からやりなおしとなります。

参考サイト

Configure Session Lifetime Settings
DescribeshowtoconfiguresessionlengthsandlimitsforatenantusingtheAuth0DashboardortheManagementAPI.
Why Users Remain Login After the Inactivity Timeout
ProblemStatement:WesettheRefreshTokenInactivityExpirationto15secondsintheapplicationssetting.WhyisourWebAppstillaliveafter15seconds?OurcurrentLoginSessionManage...
How to stay logged in forever(ish)
Heythere,mycompanyismakingtheswitchtoAuth0andourmaingoalisensuringthatourusersdon’thavetologiniftheyareactiveduringa14dayperiod.Iftheycontinuetomakecallsandrefr...

コメント

タイトルとURLをコピーしました