Install
Works with Drupal: ^8.8 || ^9Using Composer to manage Drupal site dependencies
Alternative installation files
Download tar.gz
64.39 KB
MD5: 87cfdd95cdd43184d60af8632c376041
SHA-1: e2ae3bd093fef51ae3e6bc180b03a14d64cf3480
SHA-256: 70d45f15ceb3f9ba4d217232e7927aa622a51227b5cbc4d7bf881dafbd4f2350
Download zip
90.49 KB
MD5: fd3c339c959e0fb3181d9212e6ce412a
SHA-1: 40236ae7d26208aed23f504eb165d62be75d7a8c
SHA-256: 6aba3b6b28d846adf2e4b5597c09e421bf5c7bb76396ccdd4785aef2123a5225
Release notes
There are unfortunately some BC-breaking changes between 1.0-beta5 and this version:
- hook_openid_connect_openid_connect_client_info_alter() was replaced with hook_openid_connect_client_info_alter()
- hook_openid_connect_post_authorize() parameters have changed from $tokens, $account, $userinfo, $plugin_id to $account, $context
- hook_openid_connect_pre_authorize() parameters have changed from $tokens, $account, $userinfo, $plugin_id to $account, $context
Several hooks and classes have been marked deprecated. These will all be removed in version 2.0 of this module.
Hooks:
- hook_openid_connect_save_userinfo replaced by hook_openid_connect_userinfo_save
- hook_openid_connect_user_properties_to_skip_alter replaced by hook_openid_connect_user_properties_ignore_alter
Classes:
- Claims replaced by OpenIDConnectClaims
- Authmap replaced by OpenIDConnectAuthmap
- Plugin\Block\LoginBlock replaced by Plugin\Block\OpenIDConnectLoginBlock
- Plugin\OpenIDConnectClient\Google replaced by Plugin\OpenIDConnectClient\OpenIDConnectGoogleClient
- Plugin\OpenIDConnectClient\Facebook replaced by Plugin\OpenIDConnectClient\OpenIDConnectFacebookClient
- Plugin\OpenIDConnectClient\Github replaced by Plugin\OpenIDConnectClient\OpenIDConnectGithubClient
- Plugin\OpenIDConnectClient\Generic replaced by Plugin\OpenIDConnectClient\OpenIDConnectGenericClient
- Plugin\OpenIDConnectClient\Linkedin replaced by Plugin\OpenIDConnectClient\OpenIDConnectLinkedinClient
- StateToken replaced by OpenIDConnectStateToken
- Controller\RedirectController replaced by Controller\OpenIDConnectRedirectController
- Form\LoginForm replaced by Form\OpenIDConnectLoginForm
- Form\SettingsForm replaced by Form\OpenIDConnectSettingsForm
- Form\AccountsForm replaced by Form\OpenIDConnectAccountsForm
Functional code:
- openid_connect_save_userinfo replaced with Drupal\openid_connect\OpenIDConnect::saveUserinfo()
- openid_connect_login_user replaced with Drupal\openid_connect\OpenIDConnect::loginUser()
- openid_connect_save_destination replaced with Drupal\openid_connect\OpenIDConnectSession::saveDestination()
- openid_connect_create_user replaced with Drupal\openid_connect\OpenIDConnect::createUser()
- openid_connect_generate_username replaced with Drupal\openid_connect\OpenIDConnect::generateUsername()
- openid_connect_username_exists replaced with Drupal\openid_connect\OpenIDConnect::usernameExists()
- openid_connect_set_password_access replaced with Drupal\openid_connect\OpenIDConnect::hasSetPasswordAccess()
- openid_connect_connect_account replaced with Drupal\openid_connect\OpenIDConnectAuthmap::createAssociation()
- openid_connect_disconnect_account replaced with Drupal\openid_connect\OpenIDConnectAuthmap::deleteAssociation()
- openid_connect_extract_sub replaced with Drupal\openid_connect\OpenIDConnect::extractSub()
- openid_connect_complete_authorization replaced with Drupal\openid_connect\OpenIDConnect::completeAuthorization()
- openid_connect_connect_current_user replaced with Drupal\openid_connect\OpenIDConnect::connectCurrentUser()
Changes since 8.x-1.0-beta5:
- #3117414 by pjotr.savitski, jcnventura: hook_user_format_name_alter has incorrect code
- #3046567 by jcnventura: Prevent duplicate entries in authmap
- #3154294 by jcnventura: Update Google endpoints
- #2960886 by jcnventura: Restore renamed classes with wrappers using class inheritance. These wrappers will be removed in version 2.0
- #2946869 by jcnventura: fix failing tests
- #2960884 by jcnventura: Make the new EntityTypeManagerInterface constuctor parameter optional for backwards compatibility with beta5
- #2912214 by jcnventura: Restore deprecated hook_openid_connect_save_userinfo()
- #2946869 by Mario Steinitz, sun, joelseguin, jcnventura: Cannot log in using facebook client
- #3154326 by jcnventura: Simplify OpenIDConnect::extractSub()
- #3119496 by rcbcool, jcnventura: Issue with Github login
- #3153682 by jcnventura: Move duplicate code in OpenIDConnect to auxiliary function
- #2875537 by pingers, mikejw, sun, eiriksm, jcnventura: Add in an event for altering the url_options in authorize method
- #2921477 by sun, beram, johnreytanquinco, jcnventura: Allow client plugin to override redirect url route
- #3073495 by robin.ingelbrecht, jcnventura: support boolean fields in user accounts
- #3112173 by sleitner, jcnventura, pfrilling, munish.kumar, mrinalini9, solideogloria, sanduhrs, Insasse, Shamsher_Alam, fabianderijk, tomvv: Drupal9 deprecations
- #2478487 by jcnventura, sun: Modify the core user login form to show external providers
- #2831886 by sun, jcnventura, Mario Steinitz: Redirect URI openid-connect/% not accessible in maintenance mode
- #3021950 by dpovshed, j_ten_man, dabbor, jcnventura: Google+ APIs being shutdown
- #3079067 by fenstrat, eiriksm, jcnventura: Update EmailValidatorInterface parameter in OpenIDConnect doc block
- #3152564 by sanduhrs: Missing group annotation in unit test case
- Updated the create method service order
- #3045899 by floydm: Type error under Drupal 8.7 beta 1
- Add user message for unsuccessful login attempt with pending administrator approval.
- Skip login during authorization, if the user account is blocked.
- #2921095: Fix parameters for hook_openid_connect_post_authorize call in OpenIDConnect::completeAuthorization().
- Fix userData property naming in OpenIDConnect service constructor.
- Add missing messenger argument to OpenIDConnectAccountsForm constructor.
- #2940867 by sun: hook_openid_connect_pre_authorize can result in fatal
- #2921095: Deprecate hook_openid_connect_user_properties_to_skip_alter() in favor of hook_openid_connect_user_properties_ignore_alter().
- #2961938: Deprecate global module functions. (To be removed in RC1.)
- #2961932: Implement hook_help().
- #2961251: Add validation for default configuration fields to OpenIDConnectClientBase.
- #2950738 by Sami Radi: Long provided user names exceeds D8 accounts username max length
- #2960886: Rename client classes using the schema 'OpenIDConnect{client_name}Client'.
- #2961938: Move global functions of the core module to a dedicated OpenIDConnect service.
- #2921095 by Mario Steinitz: Provide more context in all hooks
- #2912214 by chrisrockwell, sanduhrs: Allow other modules to alter claim data
- #2961251 by Mario Steinitz: Allow client plugins to provide form validation/submit handler for their settings.
- #2960879: Allow to hook into claim mapping before the account is saved.
- #2888048 by sun, jibran: Allow OpenIDConnectClient plugins to provide default config
- #2960881 by Mario Steinitz: GitHub client plugin $response_data claim fallbacks not working
- #2960885: Fix remaining Coding Standard issues.
- #2960886 by Mario Steinitz: Avoid collision with other class names within the \Drupal namespace
- #2960882 by Mario Steinitz: Allow claim properties to being translated
- #2960884 by Mario Steinitz: Use dependency injection instead of global getters
- #2960883 by Mario Steinitz: Consistent use of the string translation trait within classes
- #2953825 by shobhit_juyal, dhruveshdtripathi, mohit1604, riddhi.addweb, ankitjain28may: Missing README.txt
- #2938027 by Buvaneshwari.V, Mario Steinitz: Coding standards: Use short array syntax