Skip to content

feat(jans-cedarling): implement mapping JWT payload to cedar-policy entity #10151

@olehbozhok

Description

@olehbozhok

Is your feature request related to a problem? Please describe.
User can define in cedar-policy schema custom type and cedarling should have support to build this type for entity.

Describe the solution you'd like
We have defined Token Entity Metadata Schema "claim_mapping". This mapping should define how we map JWT payload attribute to cedar-policy type.

"parser": "regex" - define that mapping use regex expression.
"type": "Jans::Url" - define what type in cedar-policy schema we want to map.
"regex_expression" - is actually regexp expression
and other fields are capture names, and it's mapping to fields of cedar-policy type

Describe alternatives you've considered
Hard-code some types or how we should map it.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions