ClaimNameParts
Class representing a name of a claim. A claim's name identifies it amongst others.
In the Comuny context a ClaimNameParts enforces a certain format. A claim name looks like comuny.type.factor[.level[.method[.provider]]]
. Only lowercase characters are allowed.
Syntax
It starts with comuny
when it's provided by comuny or can be specified with own namespace
, then specifies a type
and factor
. Optional parts are level
, method
, and provider
. The level
part starts with a l
followed by a digit.
+----------+-----------+----------+---------+----------+
| Part | Regex | Required | Default | Example |
+----------+-----------+----------+---------+----------+
| namespace| [a-z0-9] | n | "comuny"| "comuny" |
| type | (ver|aut) | y | | "ver" |
| factor | [a-z0-9] | y | | "email" |
| level | l[0-9] | n | "l0" | "l2" |
| method | [a-z0-9] | n | "" | "otp" |
| provider | [a-z0-9] | n | "" | "comuny" |
+----------+-----------+----------+---------+----------+
Parameters
Type telling if the claim is used for verification or authorization
Identity factor, e.g. email, idcard, or mobile
Level indicating the quality of the process used to create the claim
Method used in the claim creation process to verify a factor, e.g. OTP
Name of the provider (IdP) of the claim