This project is not covered by Drupal’s security advisory policy.

The Social Auth Diia module, based on the Social API, allows users to register and log in to your Drupal site using their Diia account. This integration simplifies the authentication process while leveraging secure and reliable services provided by Diia. Additionally, the module supports requesting scopes for tasks requiring authenticated interactions with Diia services.

The module provides a dedicated path user/login/diia, which redirects users to Diia for authentication.

Upon successful authentication, the module checks if the user's Diia ID or email exists on the Drupal site:
- If a match is found, the user is logged in.
- If no match exists, a new account is created.
Users can also associate their Diia account with an existing authenticated Drupal account.

The login process is initiated through the Diia button in the Social Auth block. Alternatively, developers can theme and place a link to user/login/diia anywhere on the site.

Configuration Instructions

Step 1: In Drupal

1. Log in as an administrator.
2. Navigate to Configuration » User authentication » Diia.
3. Copy the Authorized Redirect URL provided by the module (it ends with /user/login/diia/callback).

Step 2: In Diia Developer Portal

1. Log in to your Diia developer account.
2. Navigate to the Applications section and click Create Application.
3. Fill in the required details:
- Application Name
- Description
- Support Email
4. Set up Redirect URIs:
- Paste the Authorized Redirect URL from Drupal.
5. Define the required scopes based on the application's needs.
6. Generate the Client ID and Client Secret:
- Copy these credentials securely as they won’t be displayed again.

Step 3: Back in Drupal

1. Return to Configuration » User authentication » Diia.
2. Paste the Client ID and Client Secret into their respective fields.
3. Save the configuration.

Step 4: Place the Social Auth Block

1. Go to Structure » Block Layout.
2. Place the Social Auth Login block in the desired region of the site.

Supporting organizations: 

Project information

  • caution Minimally maintained
    Maintainers monitor issues, but fast responses are not guaranteed.
  • Project categories: Access control
  • Ecosystem: Social Auth, Social API
  • Created by darkdim on , updated
  • shield alertThis project is not covered by the security advisory policy.
    Use at your own risk! It may have publicly disclosed vulnerabilities.

Releases