| 开发者 |
figureone
the_magician pkarjala aargh-a-knot elarequi jojaba slyraskal |
|---|---|
| 更新时间 | 2025年11月21日 05:35 |
| WordPress版本: | 6.9 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
[authorizer_login_form] shortcode to embed a wp_login_form() outside of wp-login.php.authorizer directory to the /wp-content/plugins/ directoryIf you add external=wordpress to the wp-login.php URL querystring, you can always get the WordPress login form to reappear. For example, if your site is at https://www.example.com, then the URL would be: https://www.example.com/wp-login.php?external=wordpress
The [University of Hawai'i][http://hawaii.edu/], which provides authentication for student, faculty, and staff members via a centralized service (CAS or LDAP). = Need a tutorial on how to set up Keycloak as an OAuth2 server to integrate with Authorizer? WordPress user @2brx2b has contributed a helpful one here: https://wordpress.org/support/topic/tutorial-for-authorizer-keycloak/.
authorizer_login_message_pending_users, authorizer_login_message_blocked_users, and authorizer_message_anonymous_users) or wp-config.php constants (define( 'AUTHORIZER_LOGIN_MESSAGE_PENDING_USERS', '...' );, define( 'AUTHORIZER_LOGIN_MESSAGE_BLOCKED_USERS', '...' );, and define( 'AUTHORIZER_MESSAGE_ANONYMOUS_USERS', '...' );) to, e.g., allow a single custom message to be used on all sites in a multisite network. Props @monkeyleo13 for the suggestion!authorizer_automatically_approve_login hook; can be used to inspect the roles of the logging in user if they already have a WordPress user account.authorizer_email_approved_users_subject and authorizer_email_approved_user_body) or wp-config.php constants (define( 'AUTHORIZER_EMAIL_APPROVED_USERS_SUBJECT', '...' ); and define( 'AUTHORIZER_EMAIL_APPROVED_USER_BODY', '...' );) to, e.g., allow a single custom message to be used on all sites in a multisite network. Props @monkeyleo13 for the suggestion!authorizer_advanced_branding) or constant (define( 'AUTHORIZER_ADVANCED_BRANDING', '...' );). Props oldfieldtc for the request!authorizer_custom_role filter by returning an array with keys 'default_role', 'roles_to_add', and 'roles_to_remove'. Props nick-perry14 for the pull request! (Note: you can also define additional roles in the authorizer_custom_roles_to_add and authorizer_roles_to_remove filters.)authorizer_custom_role hook; can be used to inspect the roles of the logging in user if they already have a WordPress user account.authorizer_oauth2_azure_authenticated_email hook (alongside authorizer_oauth2_generic_authenticated_email hook).authorizer_google_client_id and authorizer_oauth2_client_id) or wp-config.php constants (define( 'AUTHORIZER_GOOGLE_CLIENT_ID', '...' ); and define( 'AUTHORIZER_OAUTH2_CLIENT_ID', '...' );) to support integrations with third-party secrets managers (or simply to keep the secrets out of the database in plaintext). Client Secrets were already added in version 3.6.1, this update adds filters and constants for the Client IDs. Props @nks04747 for the suggestion!ldap_test_user setting on some multisite installs.authorizer_ldap_user and authorizer_ldap_password) or wp-config.php constants (define( 'AUTHORIZER_LDAP_USER', '...' ); and define( 'AUTHORIZER_LDAP_PASSWORD', '...' );) to support integrations with third-party secrets managers (or simply to keep the secrets out of the WordPress database).authorizer_custom_role filter on admin logins.authorizer_google_client_secret and authorizer_oauth2_client_secret) or wp-config.php constants (define( 'AUTHORIZER_GOOGLE_CLIENT_SECRET', '...' ); and define( 'AUTHORIZER_OAUTH2_CLIENT_SECRET', '...' );) to support integrations with third-party secrets managers (or simply to keep the secrets out of the database in plaintext).array_key_last() is not available for older PHP versions and was added in the last update). Props @ianchan-1 for reporting the issue!authorizer_oauth2_generic_authorization_parameters for targeting the specifics of generic oauth2 providers. Provide an array with options, such as array( 'scope' => 'user:email' ), to customize your generic oauth2 provider.authorizer_oauth2_generic_authenticated_email for manually inspecting the results returned from the oauth2 provider to find the resource owner's email to give to WordPress for the authenticated user. Use this for oauth2 providers that release email addresses in nonstandard places.