CognitoIdValidator

com.malliina.web.CognitoIdValidator
class CognitoIdValidator(keys: Seq[KeyConf], issuer: Issuer, val clientIds: Seq[ClientId]) extends CognitoValidator[IdToken, CognitoUser]

Attributes

Graph
Supertypes
class CognitoValidator[IdToken, CognitoUser]
trait ClaimKeys
class Object
trait Matchable
class Any
Show all

Members list

Value members

Constructors

def this(keys: Seq[KeyConf], issuer: Issuer, clientId: ClientId)

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: IdToken, 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

Concrete fields

val clientIds: Seq[ClientId]

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