1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-11-29 10:24:20 +01:00

(bug) define uid field in openid connect configuration

This commit is contained in:
Sylvain 2022-04-27 16:37:37 +02:00
parent b3848596bf
commit 18a80a225c

View File

@ -20,6 +20,9 @@ class AuthProviderService
provider.providable.display = 'page'
provider.providable.response_mode = 'query'
provider.providable.response_type = 'code'
provider.providable.uid_field = provider.auth_provider_mappings
.find { |m| m.local_model == 'user' && m.local_field == 'uid' }
.api_field
URI.parse(provider.providable.issuer).tap do |uri|
provider.providable.client__scheme = uri.scheme