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

Add support for JWT tokens #10

Merged
merged 7 commits into from
Oct 12, 2017
Merged

Add support for JWT tokens #10

merged 7 commits into from
Oct 12, 2017

Conversation

dividedmind
Copy link
Contributor

See cyberark/slosilo#10 for details. Note this changeset includes #9.

It's not clear what was the intent behind this method, but there is
no documentation and no usage as far as I can tell.
Split Authenticator and .user spec, make -fdoc more readable.
While this might move the tests a bit on the unit-integration
spectrum, it does make them more realistic and easier to implement.

Specific things can still be mocked and stubbed as needed for
test granularity.
Please refer to cyberark/slosilo#10
for details.
Copy link
Contributor

@apotterri apotterri left a comment

Choose a reason for hiding this comment

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

Looks good to me.

JWT lacks a mechanism for specifying critical claims as JWS has
with header 'crit' field; JWT spec suggests to ignore unrecognized
claims and that is what a generic JWT library should do.

However, conjur-rack is a specific application; for security reasons
it's best to reject tokens which we don't totally understand, lest the
requester is allowed to do what she is not in fact authorized to.

If need be, this can be extended in the future with 'crit'-like
mechanism for specifying optional claims.

Related: cyberark/slosilo#12
@dividedmind
Copy link
Contributor Author

Can be merged in after cyberark/slosilo#11 is. Note Gemfile should be edited to remove the slosilo branch indication.

@jvanderhoof jvanderhoof merged commit 79a334f into master Oct 12, 2017
@jvanderhoof jvanderhoof deleted the feature/jwt branch October 12, 2017 21:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants