Skip to content

Commit

Permalink
OAuth: Add a flag to the 'authenticate' hook arguments indicating SSO…
Browse files Browse the repository at this point in the history
… is in use

This way plugins can react to it, e.g. 2FA plugins can skip asking for the second factor
  • Loading branch information
alecpl committed Sep 12, 2024
1 parent 99629db commit 83417f5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
- OAuth: Fix Bearer authentication for Kinde (#9244)
- OAuth: Refactor: move display to the rcmail_oauth class and use `loginform_content` hook (#9217)
- OAuth: Support standard authentication with short-living password received with OIDC token (#9530)
- OAuth: Add a flag to the 'authenticate' hook arguments indicating SSO is in use
- Additional_Message_Headers: Added %u, %d and %l variables (#8746, #8732)
- ACL: Set default of 'acl_specials' option to ['anyone'] (#8911)
- Enigma: Support Kolab's Web Of Anti-Trust feature (#8626)
Expand Down
3 changes: 3 additions & 0 deletions program/include/rcmail_oauth.php
Original file line number Diff line number Diff line change
Expand Up @@ -1074,6 +1074,9 @@ public function authenticate($options)

$this->log_debug('calling authenticate for user %s', $options['user']);

// Make plugins aware that SSO is in use
$options['sso'] = true;

return $options;
}

Expand Down

0 comments on commit 83417f5

Please sign in to comment.