github XenitAB/go-oidc-middleware v0.0.6

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

BREAKING CHANGE:

The library has moved from using a struct as options to using functional options.

Now the "github.com/xenitab/go-oidc-middleware/options" package needs to be imported and used like this:

oidcHandler := oidchttp.New(h,
	options.WithIssuer(cfg.Issuer),
	options.WithRequiredTokenType("JWT"),
	options.WithRequiredAudience(cfg.Audience),
	options.WithFallbackSignatureAlgorithm(cfg.FallbackSignatureAlgorithm),
	options.WithRequiredClaims(map[string]interface{}{
		"tid": cfg.TenantID,
	}),
)

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

NewReleases is sending notifications on new releases.