Skip to content

OpenPublicMedia/social_auth_pbs

Repository files navigation

CONTENTS OF THIS FILE

  • Introduction
  • Requirements
  • Installation
  • Configuration
  • How it works
  • Support requests
  • Maintainers

INTRODUCTION

Social Auth PBS is a PBS authentication integration for Drupal.

REQUIREMENTS

This module requires the following modules:

INSTALLATION

CONFIGURATION

  • Add your PBS project OAuth information in Configuration » User Authentication » PBS.

  • Place a Social Auth Login block in Structure » Block Layout.

  • If you already have a Social Auth Login block in the site, rebuild the cache.

HOW IT WORKS

User can click on the PBS logo in the Social Auth Login block. You can also add a button or link anywhere on the site that points to /user/login/pbs, so theming and customizing the button or link is very flexible.

When the user opens the /user/login/pbs link, it automatically takes user to PBS for authentication. PBS then returns the user to Drupal site. If there is an existing Drupal user with the same email address provided by PBS, that user is logged in. Otherwise, a new Drupal user is created.

This module also supports login via the PBS provided Facebook and Google OAuth2 flows. These methods are only supported by URL access (no block buttons are provided):

  • Facebook: social_auth_pbs.redirect_to_facebook (/user/login/pbs-facebook)

  • Google: social_auth_pbs.redirect_to_google (/user/login/pbs-google)

It is also possible to send users through a PBS Account creation flow by supplying a URL encoded version of the PBS login route to the next parameter of PBS's OAuth2 account creation form page. E.g. [url]?next=https%3A%2F%2Fexample.com%2Fuser%2Flogin%2Fpbs.

SUPPORT REQUESTS

Before posting a support request, carefully read the installation instructions provided in module documentation page.

Before posting a support request, check Recent log entries at admin/reports/dblog.

Once you have done this, you can post a support request at module issue queue: https://www.drupal.org/project/issues/social_auth_pbs

When posting a support request, please inform what does the status report say at admin/reports/dblog and if you were able to see any errors in Recent log entries.

MAINTAINERS

Current maintainers:

Development sponsored by: