Skip to content

Allow the sub for a user-jwt to be set, independent of the name #61773

Open
@glen-84

Description

@glen-84

Is there an existing issue for this?

  • I have searched the existing issues

Is your feature request related to a problem? Please describe the problem.

I want to create a user-jwt with a specific sub, but when I do the following:

dotnet user-jwts create --claim "sub=1" --valid-for 3650d

The sub ends up as:

"sub": [
  "Glen",
  "1"
]

The name should not be included in the sub if there is already a value.

Describe the solution you'd like

Avoid inserting a value for sub if one has already been set.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-commandlinetoolsIncludes: Command line tools, dotnet-dev-certs, dotnet-user-jwts, and OpenAPIfeature-userjwtsThe `dotnet user-jwts` CLI tool

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions