Skip to content

Payload and general swift improvements #45

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

Closed
wants to merge 3 commits into from
Closed

Payload and general swift improvements #45

wants to merge 3 commits into from

Conversation

siemensikkema
Copy link
Contributor

  • merges PayloadBuilder and Payload
  • add type safe access to Payload properties
  • use guard syntax where applicable
  • use Swift error handling instead of returning optional InvalidTokens
  • rename Test classes
  • simplified Date verification error handling
  • consistent colon/space syntax

- merges PayloadBuilder and Payload
- add type safe access to Payload properties
- use guard syntax where applicable
- use Swift error handling instead of returning optional InvalidTokens
- rename Test classes
- simplified Date verification error handling
- consistent colon/space syntax
It took unexpected precedence over explicit types, eg when setting a
value of type Date and it is unsafe.
@kylef
Copy link
Owner

kylef commented Oct 2, 2016

Thanks for the pull request @siemensikkema. I'm a little busy at the moment but I'll try and review these changes in the next few days.

@kylef kylef mentioned this pull request Oct 27, 2016
@kylef
Copy link
Owner

kylef commented Nov 10, 2016

Sorry for the delay on this one @siemensikkema. Would you be able to update the README examples to still work with your changes please.

@dominik-hadl
Copy link

@siemensikkema It would be great if this could get merged in! 🎉 Do you need help with finishing up the README as @kylef mentioned? :)

@kylef kylef closed this in ce7285f Dec 2, 2016
@kylef
Copy link
Owner

kylef commented Dec 2, 2016

Thanks again for this pull request @siemensikkema, I've manually merged most of these changes in but I've made some changes:

  • Named ClaimSet not Payload to better match the naming conventions in the JWT RFC.
  • Maintaining existing source compatibility by not removing existing public APIs.

See ce7285f for documentation / CHANGELOG changes describing.

@siemensikkema
Copy link
Contributor Author

Looks good! I wanted to respond and help you with the changes but I hadn't yet found the time. I think ClaimSet is a great name although it is possible and useful to include other information there that are not strictly claims.

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.

3 participants