You are here

README.txt in OAuth2 Login 7.2

Same filename and directory in other branches
  1. 8 README.txt
  2. 7 README.txt
The module OAuth2 Login is used to allow the users of another Drupal
site to login to your site. This is done through OAuth2
authentication. On login the users are redirected to the login of the
other Drupal site, and after they login there, they are redirected
back to this site.

For this to work, the module OAuth2 Login Provider
(https://drupal.org/project/oauth2_loginprovider) must be installed on
the other site, and a client that corresponds to this site must be
registered there (on the path
'admin/structure/oauth2-servers/manage/oauth2/clients').  On that
client, you must set the Redirect URI to:
https://client.example.org/oauth2/authorized

See the file 'oauth2_login.make' for downloading the dependencies.
Copy 'libraries/hybridauth-drupaloauth2/DrupalOAuth2.php' to
'libraries/hybridauth/hybridauth/Hybrid/Providers/'.

The configuration of this module is done on:
'admin/config/people/oauth2_login'

The test file helps to understand the configurations that should be
done on the server and on the client:
https://github.com/dashohoxha/oauth2_login/blob/7.x-1.x/tests/oauth2_login.test#L22

Besides the module 'oauth2_login', there is also the sub-module
'oauth2_user', which can be enabled optionally. It provides some
functions that can be useful for managing the profile of the remote
oauth2 user. This module can be useful out-of-the-box, or it can just
serve as a template or example about how to manage the remote user
profile. For more details about the available functions look at
'oauth2_user.api.php'.

File

README.txt
View source
  1. The module OAuth2 Login is used to allow the users of another Drupal
  2. site to login to your site. This is done through OAuth2
  3. authentication. On login the users are redirected to the login of the
  4. other Drupal site, and after they login there, they are redirected
  5. back to this site.
  6. For this to work, the module OAuth2 Login Provider
  7. (https://drupal.org/project/oauth2_loginprovider) must be installed on
  8. the other site, and a client that corresponds to this site must be
  9. registered there (on the path
  10. 'admin/structure/oauth2-servers/manage/oauth2/clients'). On that
  11. client, you must set the Redirect URI to:
  12. https://client.example.org/oauth2/authorized
  13. See the file 'oauth2_login.make' for downloading the dependencies.
  14. Copy 'libraries/hybridauth-drupaloauth2/DrupalOAuth2.php' to
  15. 'libraries/hybridauth/hybridauth/Hybrid/Providers/'.
  16. The configuration of this module is done on:
  17. 'admin/config/people/oauth2_login'
  18. The test file helps to understand the configurations that should be
  19. done on the server and on the client:
  20. https://github.com/dashohoxha/oauth2_login/blob/7.x-1.x/tests/oauth2_login.test#L22
  21. Besides the module 'oauth2_login', there is also the sub-module
  22. 'oauth2_user', which can be enabled optionally. It provides some
  23. functions that can be useful for managing the profile of the remote
  24. oauth2 user. This module can be useful out-of-the-box, or it can just
  25. serve as a template or example about how to manage the remote user
  26. profile. For more details about the available functions look at
  27. 'oauth2_user.api.php'.