github XenitAB/go-oidc-middleware v0.0.10

latest releases: oidcgin/v0.0.32, oidcechojwt/v0.0.32, oidchttp/v0.0.32...
3 years ago

Breaking change

Token string options have been changed to make it easier to configure extraction of multiple headers.

Example:

oidcHandler := oidcgin.New(
	options.WithIssuer(cfg.Issuer),
	options.WithFallbackSignatureAlgorithm(cfg.FallbackSignatureAlgorithm),
	options.WithRequiredClaims(map[string]interface{}{
		"cid": cfg.ClientID,
	}),
	options.WithTokenString(
		options.WithTokenStringHeaderName("Authorization"),
		options.WithTokenStringTokenPrefix("Bearer "),
	),
	options.WithTokenString(
		options.WithTokenStringHeaderName("Sec-WebSocket-Protocol"),
		options.WithTokenStringTokenPrefix("base64url.bearer.authorization.k8s.io."),
		options.WithTokenStringListSeparator(","),
	),
)

Don't miss a new go-oidc-middleware release

NewReleases is sending notifications on new releases.