feat(sso): redirect to login when auto-sign-on is enabled and user is not authenticated
This commit is contained in:
parent
f3da2ac630
commit
2aa64f7360
@ -157,6 +157,10 @@ siteLayout' overrideHeading widget = do
|
|||||||
|
|
||||||
isAuth <- isJust <$> maybeAuthId
|
isAuth <- isJust <$> maybeAuthId
|
||||||
|
|
||||||
|
when (appAutoSignOn && not isAuth) $ do
|
||||||
|
$logDebugS "AutoSignOn" "AutoSignOn is enabled in AppSettings and user is not authenticated"
|
||||||
|
redirect $ AuthR LoginR
|
||||||
|
|
||||||
now <- liftIO getCurrentTime
|
now <- liftIO getCurrentTime
|
||||||
|
|
||||||
muid <- maybeAuthPair
|
muid <- maybeAuthPair
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user