You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current filter_scopes function execution results in a HTTP 500 when the /consent endpoint is called.
I am not sure if that is caused by a configuration error on my side though.
deffilter_scopes(resource_owner,client,scopes)scope_mapping=Config.read_configCONFIG_SECTION_SCOPE_MAPPING,{}((scopes || []) & [*client.metadata['scope']]).selectdo |s|
ifs == 'openid'trueelsifs.include?':'key,value=s.split(':',2)av=resource_owner.attributes[key]# <-- resource_owner.attributes.class is not a Hash; indexing with a Stringav={'value'=>av}unlessav.instance_of?(Hash)av && av['value'] == valueelse(scope_mapping[s] || []).any?{ |claim| resource_owner.attributes[claim]}endendend
elsif s.include? ':'
key, value = s.split(':', 2)
- av = resource_owner.attributes[key]+ av = resource_owner.attributes.find { |hash| hash['key'] == key }
av = { 'value' => av } unless av.instance_of?(Hash)
av && av['value'] == value
The text was updated successfully, but these errors were encountered:
The current
filter_scopes
function execution results in a HTTP 500 when the/consent
endpoint is called.I am not sure if that is caused by a configuration error on my side though.
users.yml:
clients.yml:
My proposed change Fork:
The text was updated successfully, but these errors were encountered: