Skip to content

Updates to OpenIdConnectAuth#911

Merged
omab merged 2 commits intoomab:masterfrom
clintonb:oidc-updates
Apr 26, 2016
Merged

Updates to OpenIdConnectAuth#911
omab merged 2 commits intoomab:masterfrom
clintonb:oidc-updates

Conversation

@clintonb
Copy link
Copy Markdown
Contributor

@clintonb clintonb commented Apr 23, 2016

  • Added support for passing kwargs to jwt.decode()
  • Updated iat claim validation

The first commit adds support for passing kwargs to jwt.decode(), allowing for great flexibility to determine, for example, which signing algorithms are used or the expected value of the audience claim.

The second commit (a) instructs PyJWT to verify the iat claim and ensure a value is present, and (b) makes the value against which the claim is compared configurable. I don't know why I hardcoded this to 10 minutes; but, that is not in the spec, and should be configurable for each individual client.

The maximum age of the ID token is now exposed as a class variable rather than hardcoded to 10 minutes.
@clintonb
Copy link
Copy Markdown
Contributor Author

@omab please reivew

@omab omab merged commit d5b0183 into omab:master Apr 26, 2016
@omab
Copy link
Copy Markdown
Owner

omab commented Apr 26, 2016

Merged, thanks!

@clintonb clintonb deleted the oidc-updates branch July 28, 2016 02:23
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