Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/city-of-helsinki/drupal-module-helfi-helsinki-profiili

Integrate Helsinki profile user data to Drupal user.
https://github.com/city-of-helsinki/drupal-module-helfi-helsinki-profiili

Last synced: about 2 months ago
JSON representation

Integrate Helsinki profile user data to Drupal user.

Awesome Lists containing this project

README

        

# Helsinki profiili integration

This module integrates user data in Helsinki profiili to Drupal. Required Tunnistamo openid authentication.

Userdata is queried from graphql endpoint in Tunnistamo. Userdata is saved for request in class. Nothing is saved locally.

## Configuration

```
- roles:
hp_user_roles:
- 'helsinkiprofiili'
admin_user_roles: []
- clients:
hp_user_client: 'tunnistamo'
hp_admin_client: 'tunnistamoadmin'

```

## Environment

USERINFO_ENDPOINT -> endpoint uri to /userinfo graphql endpoint

TUNNISTAMO_API_TOKEN_ENDPOINT -> endpoint uri to /api-tokens endpoint

## Tests

This module has unit tests. You need to have this module inside a working drupal installation.

Command to run the tests: ```vendor/bin/phpunit public/modules/contrib/helfi_helsinki_profiili```