otdfctl dev selectors test
test - Test resolution of a set of selector expressions for keys and values of a Subject Context.
Synopsis
otdfctl dev selectors test [flags]
Description
Test a given representation of some Subject Context, such as that provided by an Identity Provider (idP), LDAP, or OIDC Access Token JWT, against provided jq syntax 'selector' expressions to validate their resolution to field values on the Subject Context.
Options
-s
,--subject <subject>
- A Subject Context string (JSON or JWT, default JSON) (required:
false
)
-t
,--type <type>
- The type of the Subject Context: [json, jwt] (required:
false
) (default:json
)
-x
,--selector <selector>
- Individual selectors to test against the Subject Context (i.e. .key, .example[1].group) (required:
false
)