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
@ -156,6 +156,10 @@ siteLayout' overrideHeading widget = do
|
||||
-- isParent r = r == (fst parents)
|
||||
|
||||
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
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user