Documentation
¶
Index ¶
- Constants
- func MakeCookieExplicit(authenticationId string, signer motmedelCryptoInterfaces.NamedSigner, ...) string
- func MakeDbscProof(challenge string, extraClaims ...map[string]any) (string, []byte)
- func MakeStandardCookie(authenticationId string, signer motmedelCryptoInterfaces.NamedSigner) string
- func SetUp() (*authorizer_request_parser.Parser, *motmedelCryptoEddsa.Method, *sql.DB)
Constants ¶
View Source
const ( AuthenticationId = "test-authentication-id" Issuer = "test-issuer" Audience = "test-audience" SessionId = "test-session-id" RegisteredDomain = "example.com" )
Variables ¶
This section is empty.
Functions ¶
func MakeCookieExplicit ¶
func MakeCookieExplicit( authenticationId string, signer motmedelCryptoInterfaces.NamedSigner, authenticationMethods []string, exp, nbf time.Time, ) string
func MakeDbscProof ¶
MakeDbscProof mints a device bound session proof of the shape a browser sends: the public key carried in the JWT header as "jwk", and the challenge as the only payload claim. It returns the serialised token together with the DER encoded public key the server derives from it.
func MakeStandardCookie ¶
func MakeStandardCookie(authenticationId string, signer motmedelCryptoInterfaces.NamedSigner) string
func SetUp ¶
func SetUp() (*authorizer_request_parser.Parser, *motmedelCryptoEddsa.Method, *sql.DB)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.