OpenID Single Provider
Categories
Component ID
Component name
Component type
Maintenance status
Development status
Component security advisory coverage
Component created
Component changed
Component body
Introduction
When using the core OpenID module, you have to fill the URL of the OpenID provider in the textfield in the login form.
In some usecases you have one specific OpenID provider and you don't want the user to be able to user other providers or to be asked to input the provider URL.
While searching for a solution for this problem, I came across the OpenID Single Sign On Relying Party module, which requires the provider to be a Drupal site. In my case the provider is not a Drupal site.
I took the aforementioned module and rewrote it to my purposes.
A lot of the code in this module comes from the other module, I just took the liberty to reuse it for this module.
The OpenID single provider module lets you configure a OpenID provider which
will always be used. Instead of a normal login block, the user will only see
a "Login to OpenID" button on the login block which will redirect him to the
OpenID provider.
Installation
1. This module requires the the openid module.
Make sure that the module is enabled.
2. Copy this openid_single_provider/ directory to your sites/SITENAME/modules
directory.
3. Enable the module in admin/modules
4. Configure the module in admin/config/people/openid-single-provider
Usage
When the module is enabled, the normal login block will be replaced with a
"Login to OpenID" button. By clicking on the button, the user will be
redirected to the OpenID provider specified in the module configuration.
An anonymous user will be automatically redirected to the OpenID provider
when going to user/.
If the OpenID user is associated with a Drupal user, the user will be
logged in with the appropriate Drupal user.
To log in to drupal without using OpenID, you have to go to login/direct.
