social_auth_vipps
Vipps Login is the easiest way to sign in and create an account. No need to worry about usernames and passwords. All you need to sign in is your phone number. Vipps, and you are logged in.
This project is part of the Drupal Social Initiative and is based on the Social API.
Requirements
- Drupal 8.x
- Composer
- Social API
- Social Auth
- Working Vipps account (see below)
Getting started
- Sign up to use (Vipps på Nett)
- After 1-2 days you will get an email with login details to Vipps Developer Portal. This is where you can retrieve the API credentials used to configure the module in Drupal.
- Proceed to "Installation" below
Installation
- Install dependencies
- Install the module
If you install the module using Composer, the dependencies will be added automatically:
composer require "drupal/social_auth_vipps"
See how it works
Make sure to watch the video on how to get started with Social Auth Vipps.
Social Auth Vipps allows users to register and login to your Drupal site with their Vipps account. The module allows websites to request any scopes, so any tasks requiring authentication with Vipps services can be performed. This module is based on the Social Auth and Social API projects.
To enable logging in with Vipps, this module adds the path /user/login/vipps which redirects the user to their Vipps app for authentication.
After Vipps has returned the user to your site, the module compares the user id or email address provided by Vipps. If the user has previously registered using Vipps or your site already has an account with the same email address, the user is logged in. If not, a new user account is created. Also, a Vipps account can be associated with an authenticated user.
The login process can be initiated from the "Vipps" button in the Social Auth block. Alternatively, site builders can place a link to /user/login/vipps anywhere on the site.
FAQ
Vipps serves an error message when clicking to log in:
If the credentials are correct, check that your Redirect URL is added to the Vipps Portal. Also note that it needs to use HTTPS.
Why is there also a module called Vipps Login on drupal.org?
Social Auth Vipps require Composer. If your hosting environment does not support Composer, you could use the other module. Social Auth Vipps is however the official module.
Credits
This project is sponsored by Vipps AS. Development by Frontkom.
Developer resources
To extend the module further, please review the excellent Vipps developer docs on Github.
A good place to start is Vipps: Getting started.