getAuthorizationSchemaValue

fun getAuthorizationSchemaValue(authorizeHeaderRequirements: List<SecuritySchemeToScope>): String

Generates the value of the Authorization header based on the provided scheme requirements.

  • If an HTTP scheme is present, uses the configured value or a placeholder for that scheme.

  • Otherwise, builds a deterministic placeholder from OAuth2/OpenID Connect schemes, sorted by scheme name and rendered as <scheme:[scope1,scope2]>.

Return

authorization header value to use in a valid test case

Parameters

authorizeHeaderRequirements

list of security scheme requirements and scopes

Throws

if the provided list of requirements is empty