Closed jvalkeal closed 4 years ago
Currently CustomOAuth2OidcUserService gets confused if map-oauth-scopes is set to true. This is because with azure permission name is dataflow.create and exposed api aka scope api://dataflow-server/dataflow.create.
CustomOAuth2OidcUserService
map-oauth-scopes
dataflow.create
api://dataflow-server/dataflow.create
While CustomOAuth2OidcUserService would expect
role-mappings: ROLE_CREATE: dataflow.create
And MappingJwtGrantedAuthoritiesConverter expects
MappingJwtGrantedAuthoritiesConverter
role-mappings: ROLE_CREATE: api://dataflow-server/dataflow.create
All boils down to as jwt contains dataflow.create in scp field but other parts doing mapping will see api://dataflow-server/dataflow.create.
scp
Currently
CustomOAuth2OidcUserService
gets confused ifmap-oauth-scopes
is set to true. This is because with azure permission name isdataflow.create
and exposed api aka scopeapi://dataflow-server/dataflow.create
.While
CustomOAuth2OidcUserService
would expectAnd
MappingJwtGrantedAuthoritiesConverter
expectsAll boils down to as jwt contains
dataflow.create
inscp
field but other parts doing mapping will seeapi://dataflow-server/dataflow.create
.