]> BookStack Code Mirror - bookstack/blobdiff - app/Access/Oidc/OidcJwtWithClaims.php
OIDC Userinfo: Added additional tests to cover jwks usage
[bookstack] / app / Access / Oidc / OidcJwtWithClaims.php
index cc13936ab65034b990ea97a9da3a83575fd8e3c5..393ac5f0e257035010216404a17b297b44473542 100644 (file)
@@ -59,7 +59,7 @@ class OidcJwtWithClaims implements ProvidesClaims
      *
      * @throws OidcInvalidTokenException
      */
-    protected function validateCommonTokenDetails(): bool
+    public function validateCommonTokenDetails(): bool
     {
         $this->validateTokenStructure();
         $this->validateTokenSignature();
@@ -151,7 +151,7 @@ class OidcJwtWithClaims implements ProvidesClaims
      *
      * @throws OidcInvalidTokenException
      */
-    public function validateCommonClaims(): void
+    protected function validateCommonClaims(): void
     {
         // 1. The Issuer Identifier for the OpenID Provider (which is typically obtained during Discovery)
         // MUST exactly match the value of the iss (issuer) Claim.