OpenIdJwtValidator

soidc.core.OpenIdJwtValidator
See theOpenIdJwtValidator companion object
final class OpenIdJwtValidator[F[_], H, C](config: Config, client: HttpClient[F], state: Ref[F, State], clock: Clock[F])(using x$5: StandardClaimsRead[C], x$6: StandardHeaderRead[H], x$7: MonadThrow[F], x$8: ByteDecoder[OpenIdConfig], x$9: ByteDecoder[JWKSet]) extends JwtValidator[F, H, C]

Attributes

Companion
object
Graph
Supertypes
trait JwtValidator[F, H, C]
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def checkLastUpdateDelay(issuer: Uri, min: FiniteDuration): F[Either[FailureReason, Unit]]
def create: JwtValidator[F, H, C]
def create(issuer: Uri): F[JwtValidator[F, H, C]]
def fetchJWKSet(issuerUri: Uri): F[JWKSet]
def fetchJWKSetGuarded(issuer: Uri): EitherT[F, FailureReason, JWKSet]
def findJWKSet(issuerUri: Uri): F[JWKSet]
def getJWKSet(uri: Uri): F[JWKSet]
def getOpenIdConfig(uri: Uri): F[OpenIdConfig]
override def toString(): String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Any
def validate(jws: JWSDecoded[H, C]): F[Result]

Inherited methods

infix def ++(next: JwtValidator[F, H, C])(using Monad[F]): JwtValidator[F, H, C]

Run this validator and then next and combine their results.

Run this validator and then next and combine their results.

Attributes

Inherited from:
JwtValidator
def andThen(next: Result => JwtValidator[F, H, C])(using Monad[F]): JwtValidator[F, H, C]

Run this validator and then the result of next and combine their results.

Run this validator and then the result of next and combine their results.

Attributes

Inherited from:
JwtValidator
def forIssuer(f: String => Boolean)(using sc: StandardClaimsRead[C], F: Applicative[F]): JwtValidator[F, H, C]

Scopes this validator to only apply if an issuer exists in the claim and it matches the given function.

Scopes this validator to only apply if an issuer exists in the claim and it matches the given function.

Attributes

Inherited from:
JwtValidator
def invalidToNotApplicable(using Monad[F]): JwtValidator[F, H, C]

Converts an invalid result to a not-applicable result.

Converts an invalid result to a not-applicable result.

Attributes

Inherited from:
JwtValidator
infix def orElse(next: => JwtValidator[F, H, C])(using Monad[F]): JwtValidator[F, H, C]

If this validator returns a "not applicable" result, the next validator is tried.

If this validator returns a "not applicable" result, the next validator is tried.

Attributes

Inherited from:
JwtValidator
infix def orElseF(next: => F[JwtValidator[F, H, C]])(using Monad[F]): JwtValidator[F, H, C]

If this validator returns a "not applicable" result, the next validator is tried.

If this validator returns a "not applicable" result, the next validator is tried.

Attributes

Inherited from:
JwtValidator
def scoped(enable: (JWSDecoded[H, C]) => Boolean)(using Applicative[F]): JwtValidator[F, H, C]

Return a not-applicable result if the result of enable is false. Otherwise run this validator.

Return a not-applicable result if the result of enable is false. Otherwise run this validator.

Attributes

Inherited from:
JwtValidator
def toDecodingValidator(using Applicative[F]): JwtDecodingValidator[F, H, C]

Attributes

Inherited from:
JwtValidator
def toDecryptingValidator(key: JWK)(using Applicative[F]): JwtDecryptingValidator[F, H, C]

Attributes

Inherited from:
JwtValidator