openid / SIOPv2

8 stars 2 forks source link

Possibly conflicting requirements related to `issuer` metadata parameter and ID Token `iss`/`sub` #19

Open TimoGlastra opened 7 months ago

TimoGlastra commented 7 months ago

I've been trying to understand the exact rules around the issuer (which MUST be a HTTPS url) in the dynamically discovered OP metadata, the issuer and iss fields that need to match, as well as the requirement for iss and sub to be the same and in accordance with the subject syntax types (and thus can't be an HTTPS uri).

As I understand it, there's two valid subject_syntax_types at the moment defined in this specifciation:

I made up the following requirements from reading the spec:

So if we combine all these requirements, I'm not sure how the issuer field can be an https url, the issuer and iss fields need to be the same, and where the iss and sub claims also need to be the same, and the sub claim can only be a JWK thumbprint or a did. It seems you can't satisfy all those requirements. You can either:

Still learning the ins and outs of the spec, so maybe I'm missing some specific connection here.