Skip to content

Possibility to use personal id number in sub claim #125

@martin-lindstrom

Description

@martin-lindstrom

In section 3.2.1.1 of "The Swedish OpenID Connect Profile" it says:

In order to avoid privacy violations an OpenID Provider MUST NOT use an end-user attribute that reveals personal information about the end-user as the value for sub, for example a personal identity number. Even though this information may be available in other token claims, its release should be dependent on requested scopes (or claims) and not be revealed unless explicitly requested (and in some cases consented).

This has proven to be a bit too tough for some local deployments of OIDC, and we should allow any end-user identity attribute to be used in sub as long as the client has requested its corresponding claim (directly, or indirectly using a scope). However, we should still recommend against this.

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions