Skip to content

implement auto redirect to azure if user is unauthorized. #7

@godenja

Description

@godenja

Feature Description

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(); } } }

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions