Skip to content

Conversation

@BenjamenMeyer
Copy link

@BenjamenMeyer BenjamenMeyer commented Feb 16, 2024

  • Create a custom user type in order to add new claims; it is in the test package space in order to be external to mimic how users would need to do this
  • Add a test to the session using the custom user type and check for the new claim

NOTE: This presently fails as noted in #53
NOTE: Made this a draft PR since the code currently fails a go test ./... run due to the changes.

- Create a custom user type in order to add new claims; it is in
  the test package space in order to be external to mimic how
  users would need to do this
- Add a test to the session using the custom user type and check
  for the new claim

NOTE: This presently fails.
return json.Marshal(info)
}

func (ctu *CustomTestUser) Claim(scope []string, claims *mockoidc.IDTokenClaims) (jwt.Claims, error) {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Claims not Claim, and then this works :)

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@fredlb thanks - I applied the change and confirm it that the tests now pass

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants