uselagoon / lagoon

Lagoon, the developer-focused application delivery platform
https://docs.lagoon.sh/
Apache License 2.0
560 stars 149 forks source link

fix: ID token mapper for opensearch integration #3678

Closed shreddedbacon closed 6 months ago

shreddedbacon commented 6 months ago

General Checklist

Database Migrations

Fixes the token mapper for the opensearch integration to correctly add the mapping to the ID token

Verification can be performed by requesting a scope=openid token like so after setting Direct access grants on the lagoon-opendistro-security client settings. The resuting id_token should contain the groups within it.

curl -s -d "scope=openid" -d 'client_id=lagoon-opendistro-security' -d 'client_secret=$CLIENT_SECRET' -d 'username=${USERNAME}' -d 'password=${PASSWORD}' -d 'grant_type=password'     'http://localhost:8088/auth/realms/lagoon/protocol/openid-connect/token' | jq -r '.id_token'