Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update #2

Merged
merged 22 commits into from
Oct 1, 2024
Merged
Changes from 1 commit
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
726b0c5
Update composer dependencies
figureone Sep 23, 2024
7f108a1
Add missing hook: authorizer_oauth2_azure_authenticated_email
figureone Sep 23, 2024
46782ac
Enlarge Oauth2 URL settings fields
figureone Sep 23, 2024
c2dd3fd
Move Oauth2 auto login option to top
figureone Sep 23, 2024
7c44dd9
Add OAuth2 (generic) options for syncing first and last names from ex…
figureone Sep 24, 2024
5cb329b
Remove debug lines
figureone Sep 24, 2024
20f9bcd
Add missing translatable string
figureone Sep 24, 2024
824b6c6
Whitespace
figureone Sep 25, 2024
c4dfc40
Fix fatal error in previous commit
figureone Sep 25, 2024
70fe4ce
Add username and email attribute overrides to OAuth2 generic options
figureone Sep 25, 2024
6955cd5
Accept array of emails in `authorizer_oauth2_generic_authenticated_em…
figureone Sep 25, 2024
bdef1bd
Add $user param to `authorizer_custom_role` hook
figureone Sep 25, 2024
68c2369
Prevent password managers from suggestion completions in OAuth2 (gene…
figureone Sep 25, 2024
475a1f7
Update French translation (#164)
julienlusson Sep 25, 2024
9fe6e31
Force Google logins to use FedCM
figureone Sep 25, 2024
b6fdb8a
French translation update (#166)
julienlusson Sep 25, 2024
63aa6d5
Version 3.10.0
figureone Sep 25, 2024
c8852d1
Revert to 3.9.1 for bug testing
figureone Sep 25, 2024
57d3ff1
Hotfix for CAS logins broken if new settings not saved
figureone Sep 25, 2024
27579b6
Version 3.10.1
figureone Sep 25, 2024
49c11f3
Fix redirect error on CAS logins
figureone Sep 26, 2024
c2fc1fb
Version 3.10.2
figureone Sep 26, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add missing hook: authorizer_oauth2_azure_authenticated_email
  • Loading branch information
figureone committed Sep 23, 2024
commit 7f108a1424201a1c50279809bb5bb34963430635
9 changes: 9 additions & 0 deletions src/authorizer/class-authentication.php
Original file line number Diff line number Diff line change
Expand Up @@ -521,6 +521,15 @@ function ( $entry ) {
*/
$email = apply_filters( 'authorizer_oauth2_generic_authenticated_email', $email, $attributes );

/**
* Filter the azure oauth2 authenticated user email.
*
* @param string $email Discovered email (or empty string).
*
* @param array $attributes Resource Owner attributes returned from oauth2 endpoint.
*/
$email = apply_filters( 'authorizer_oauth2_azure_authenticated_email', $email, $attributes );

// Set the username to the email prefix (if we don't have one).
if ( ! empty( $email ) && empty( $username ) ) {
if ( is_array( $email ) && ! empty( $email[0] ) ) {
Expand Down