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

Validate JWT expiry #776

Merged
merged 4 commits into from
Jun 22, 2020
Merged

Validate JWT expiry #776

merged 4 commits into from
Jun 22, 2020

Conversation

whikloj
Copy link
Member

@whikloj whikloj commented May 13, 2020

JIRA Ticket: Islandora/documentation#1498

What does this Pull Request do?

Tightens allowed time intervals for JWT expiry.

What's new?

You must have a positive integer, you must use one of the expected time intervals.

It is possible to create some weird strings, but I haven't really tested all the things that strtotime() might allow.

How should this be tested?

Pull in this code and try adding some weird expiry intervals.

Interested parties

@Islandora/7-x-1-x-committers

@seth-shaw-unlv
Copy link

I think you meant @Islandora/8-x-committers .

@whikloj
Copy link
Member Author

whikloj commented May 13, 2020

Hmm I guess I got the wrong template, cause I didn't type that in 🤷

Copy link

@dannylamb dannylamb left a comment

Choose a reason for hiding this comment

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

👍 I've tested and can confirm this works. Negative values are rejected, positive values no longer need an explicit +.

I botched the merge conflict and am waiting on Travis to churn through the tests after a few commits. Once that's done I'm happy to merge.

@dannylamb dannylamb merged commit bbcd28c into Islandora:8.x-1.x Jun 22, 2020
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.

None yet

3 participants