Class OidcScopeParser

java.lang.Object
org.mockserver.authentication.oidc.OidcScopeParser

public final class OidcScopeParser extends Object
Normalises an OIDC token's granted scopes into a flat Set of strings.

The configured scope claim (default "scope") is read first: a String value is split on whitespace (OAuth2 scope convention), an array/collection value is flattened element-by-element. This handles the common scope (space-delimited), scp (array), roles (array) and groups (array) shapes uniformly.

  • Method Details

    • parseScopes

      public static Set<String> parseScopes(com.nimbusds.jwt.JWTClaimsSet claimsSet, String scopeClaim)