flownative / flow-openidconnect-client

OpenID Connect Client SDK for Flow Framework
MIT License
6 stars 8 forks source link

FEATURE: Custom role mapping #25

Closed bwaidelich closed 3 years ago

bwaidelich commented 3 years ago

Allows to map roles from the IdentityToken claims via configuration:

providerOptions:
  rolesFromClaims:
    -
      name: 'https://flownative.com/roles'
      mapping:
        'role1': 'Some.Package:SomeRole1'
        'role2': 'Some.Package:SomeOtherRole'
        'role3': 'Some.Package:SomeRole'
codecov[bot] commented 3 years ago

Codecov Report

Merging #25 (a9ae8bf) into master (d88b0a0) will decrease coverage by 0.34%. The diff coverage is 0.00%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master      #25      +/-   ##
============================================
- Coverage     14.85%   14.50%   -0.35%     
- Complexity      193      198       +5     
============================================
  Files             9        9              
  Lines           498      510      +12     
============================================
  Hits             74       74              
- Misses          424      436      +12     
Impacted Files Coverage Δ
Classes/Authentication/OpenIdConnectProvider.php 0.00% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update d88b0a0...a9ae8bf. Read the comment docs.