You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
for a better user experience, auto redirect to the azure oauth login process should be implemented.
I have written a codeblock in php to do this.
register_hook('DOKUWIKI_STARTED', 'AFTER', $this, 'handle_redirect');
}
public function handle_redirect(Doku_Event $event, $param) {
global $INFO;
// Check if the user is not logged in or is unauthorized
if (!$INFO['userinfo']) {
// Example: Redirect unauthorized users to the Azure OAuth login
header('Location: $domain/doku.php?id=start&oauthlogin=azure');
exit();
}
}
}
The text was updated successfully, but these errors were encountered:
Feature Description
for a better user experience, auto redirect to the azure oauth login process should be implemented.
register_hook('DOKUWIKI_STARTED', 'AFTER', $this, 'handle_redirect'); } public function handle_redirect(Doku_Event $event, $param) { global $INFO; // Check if the user is not logged in or is unauthorized if (!$INFO['userinfo']) { // Example: Redirect unauthorized users to the Azure OAuth login header('Location: $domain/doku.php?id=start&oauthlogin=azure'); exit(); } } }I have written a codeblock in php to do this.
The text was updated successfully, but these errors were encountered: