Skip to content
This repository has been archived by the owner on Feb 16, 2022. It is now read-only.

Fix JSON encode/decode of lifetime_in_seconds #213

Merged
merged 1 commit into from
May 10, 2021

Conversation

Widcket
Copy link
Contributor

@Widcket Widcket commented May 9, 2021

Proposed Changes

The Management API returns a string for jwt_configuration.lifetime_in_seconds instead of an int for some old tenants.
This PR implements a custom JSON marshaler and unmarshaler for ClientJWTConfiguration that addresses this.

Fixes auth0/auth0-cli#274

Acceptance Test Output

go test -run TestJWTConfiguration gopkg.in/auth0.v5/management

Screen Shot 2021-05-09 at 13 06 29

Community Note

  • Please vote on this pull request by adding a 👍 reaction to the original pull request comment to help the community and maintainers prioritize this request
  • Please do not leave "+1" comments, they generate extra noise for pull request followers and do not help prioritize the request

Copy link
Collaborator

@cyx cyx left a comment

Choose a reason for hiding this comment

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

Nice

@Widcket
Copy link
Contributor Author

Widcket commented May 9, 2021

@cyx thanks for the review. Can you please merge? I don't have permission.

@cyx cyx merged commit 4fa0021 into go-auth0:master May 10, 2021
@Widcket Widcket deleted the fix/lifetime_in_seconds branch May 10, 2021 01:19
cyx added a commit to auth0/auth0-cli that referenced this pull request May 14, 2021
cyx added a commit to auth0/auth0-cli that referenced this pull request May 15, 2021
Widcket pushed a commit to auth0/auth0-cli that referenced this pull request May 15, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update SDK to support both int/string lifetime_in_seconds [CLI-155]
2 participants