Skip to main content

IdP-authored policy

Composes the rules and scope config an IdP ships in its policy bundle into the platform decision and into which claims a leg may assert or a client may see.

  • Control id: idp_policy
  • Shape: obligation. Segment bindings do not reach this control, because its Rego does not read settings through pbac.segments.settings.
  • Entry points: token, authorize
  • Phases: introspect, obligation_loop

Policy data​

pbac.idp_config.*​

  • Role: projection
  • Written by: idps
  • Schema: src/main/resources/schemas/idp-config.v1.json
SettingTypeDefault
scope_rulesobjectnone in the schema

Reads​

  • scopes
  • resources[].actions
  • subject.claims
  • context.client

Emits​

  • deny
  • subject_obligations
  • rs_obligations
  • token_response_extra
  • subject_claims

Reason codes​

CodeCategoryEntry pointSetting
connector_denyaggregatetokennone

Implementation​

KindReferenceFilesRole
rego_packageoauth.evaluations_extopa/policies/oauth/evaluations_ext.regodecides
javacom.identos.pbac.opa.ScopeRulesExpandersrc/main/java/com/identos/pbac/opa/ScopeRulesExpander.javacomputes_fact
javacom.identos.pbac.opa.IdpPolicyConfigServicesrc/main/java/com/identos/pbac/opa/IdpPolicyConfigService.javaenforces