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

OIDC: verify typ is Bearer when included #658

Merged
merged 2 commits into from
Mar 19, 2018

Conversation

davidor
Copy link
Contributor

@davidor davidor commented Mar 19, 2018

This is Keycloak specific. It verifies 'typ' included in the token payload only when it's present.

Closes #643

@davidor davidor requested a review from mikz March 19, 2018 10:19
})

local credentials, _, err = oidc:transform_credentials({ access_token = access_token })
assert.falsy(credentials, err)
Copy link
Contributor

Choose a reason for hiding this comment

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

should we match the err ?

@davidor davidor force-pushed the oidc-verify-typ-when-included branch from 73a585d to 6ac161d Compare March 19, 2018 10:23
This is Keycloak specific. It verifies 'typ' included in the token
payload only when it's present.
@davidor davidor force-pushed the oidc-verify-typ-when-included branch from 6ac161d to 67bebfc Compare March 19, 2018 11:05
Copy link
Contributor

@mikz mikz left a comment

Choose a reason for hiding this comment

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

👍

@davidor davidor merged commit 955fae2 into master Mar 19, 2018
@davidor davidor deleted the oidc-verify-typ-when-included branch March 19, 2018 11:29
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