Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/city-of-helsinki/drupal-module-helfi-helsinki-profiili
- Owner: City-of-Helsinki
- Created: 2021-12-12T05:22:50.000Z (about 3 years ago)
- Default Branch: develop
- Last Pushed: 2024-07-25T08:10:02.000Z (6 months ago)
- Last Synced: 2024-07-25T13:57:41.547Z (6 months ago)
- Language: PHP
- Size: 124 KB
- Stars: 0
- Watchers: 9
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
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```