Skip to content

Fix NullPointerException for issuer without scheme in id token#841

Open
thestr4ng3r wants to merge 1 commit intoopenid:masterfrom
thestr4ng3r:issuer-without-scheme
Open

Fix NullPointerException for issuer without scheme in id token#841
thestr4ng3r wants to merge 1 commit intoopenid:masterfrom
thestr4ng3r:issuer-without-scheme

Conversation

@thestr4ng3r
Copy link

Checklist

  • I read the Contribution Guidelines
  • I signed the CLA and WG Agreements
  • I ran, updated and added unit tests as necessary.
  • I verified the contribution matches existing coding style.
  • I updated the documentation if necessary.

Motivation and Context

Uri.getScheme() may return null if no scheme is contained in the given
string. This could cause a crash during id token validation when this
was the case for the contained "iss" claim.

Description

Added both a fix and unit test for this case.

Uri.getScheme() may return null if no scheme is contained in the given
string. This could cause a crash during id token validation when this
was the case for the contained "iss" claim.
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.

1 participant