MCPcopy Create free account
hub / github.com/crewjam/saml / DefaultSessionCodec

Function DefaultSessionCodec

samlsp/new.go:38–46  ·  view source on GitHub ↗

DefaultSessionCodec returns the default SessionCodec for the provided options, a JWTSessionCodec configured to issue signed tokens.

(opts Options)

Source from the content-addressed store, hash-verified

36// DefaultSessionCodec returns the default SessionCodec for the provided options,
37// a JWTSessionCodec configured to issue signed tokens.
38func DefaultSessionCodec(opts Options) JWTSessionCodec {
39 return JWTSessionCodec{
40 SigningMethod: defaultJWTSigningMethod,
41 Audience: opts.URL.String(),
42 Issuer: opts.URL.String(),
43 MaxAge: defaultSessionMaxAge,
44 Key: opts.Key,
45 }
46}
47
48// DefaultSessionProvider returns the default SessionProvider for the provided options,
49// a CookieSessionProvider configured to store sessions in a cookie.

Callers 2

TestCookieSameSiteFunction · 0.85
DefaultSessionProviderFunction · 0.85

Calls 1

StringMethod · 0.80

Tested by 1

TestCookieSameSiteFunction · 0.68