Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Property on @OpenIdClaims to define all claims with a JSON string #127

Closed
ch4mpy opened this issue Jun 21, 2023 · 0 comments
Closed

Property on @OpenIdClaims to define all claims with a JSON string #127

ch4mpy opened this issue Jun 21, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@ch4mpy
Copy link
Owner

ch4mpy commented Jun 21, 2023

Is your feature request related to a problem? Please describe.
Currently, I have to go down otherClaims to define claims with a JSON string (with @JsonObjectClaim), even if I want to define standard claims.

@OpenId(
	authorities = { "NICE", "AUTHOR" },
	claims = @OpenIdClaims(
		usernameClaim = "$['https://c4-soft.com/user']['name']", 
		otherClaims = @Claims(
			jsonObjectClaims = @JsonObjectClaim(name = "https://c4-soft.com/user", value = "{\"name\": \"Ch4mp\"}"))))

Describe the solution you'd like

@OpenId(
	authorities = { "NICE", "AUTHOR" },
	claims = @OpenIdClaims(
		usernameClaim = "$['https://c4-soft.com/user']['name']", 
		json = @JsonObjectClaim(name = "https://c4-soft.com/user", value = "{\"name\": \"Ch4mp\"}"))))
@ch4mpy ch4mpy added the enhancement New feature or request label Jun 21, 2023
@ch4mpy ch4mpy self-assigned this Jun 21, 2023
ch4mpy added a commit that referenced this issue Jun 22, 2023
gh-127 define all claims with a JSON string in @OpenIdClaim
ch4mpy added a commit that referenced this issue Jun 22, 2023
gh-127 define all claims with a JSON string in @OpenIdClaim
@ch4mpy ch4mpy closed this as completed Jun 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant