LiberalValidator

com.malliina.web.LiberalValidator
class LiberalValidator(conf: KeyConf, issuer: Issuer) extends StaticTokenValidator[AccessToken, Verified]

Accepts any claims, provides user as-is.

Attributes

Graph
Supertypes
class StaticTokenValidator[AccessToken, Verified]
trait ClaimKeys
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

override protected def toUser(v: Verified): Either[JWTError, Verified]

Attributes

Definition Classes
override protected def validateClaims(parsed: ParsedJWT, now: Instant): Either[JWTError, ParsedJWT]

Attributes

Definition Classes

Inherited methods

def buildVerifier(conf: KeyConf): RSASSAVerifier

Attributes

Inherited from:
TokenValidator
def checkClaim(key: String, expected: String, parsed: ParsedJWT): Either[JWTError, ParsedJWT]

Attributes

Inherited from:
TokenValidator
def checkContains(key: String, expecteds: Seq[String], parsed: ParsedJWT): Either[JWTError, Seq[String]]

Attributes

Inherited from:
TokenValidator
protected def isSignatureValid(unverified: SignedJWT, verifier: RSASSAVerifier): Boolean

Attributes

Inherited from:
TokenValidator
protected def parse(token: TokenValue): Either[JWTError, ParsedJWT]

Attributes

Inherited from:
TokenValidator
def validate(token: AccessToken, now: Instant): Either[JWTError, U]

Attributes

Inherited from:
StaticTokenValidator
def validate(token: TokenValue, keys: Seq[KeyConf], now: Instant): Either[JWTError, Verified]

Attributes

Inherited from:
TokenValidator
protected def verify(parsed: ParsedJWT, keys: Seq[KeyConf], now: Instant): Either[JWTError, Verified]

Attributes

Inherited from:
TokenValidator

Inherited fields

val Aud: String

Attributes

Inherited from:
ClaimKeys
val Exp: String

Attributes

Inherited from:
ClaimKeys
val IssuerKey: String

Attributes

Inherited from:
ClaimKeys
val Kid: String

Attributes

Inherited from:
ClaimKeys
val NotBefore: String

Attributes

Inherited from:
ClaimKeys