Releases: XenitAB/go-oidc-middleware
v0.0.24
v0.0.23
What's Changed
- Fix test coverage in coveralls by @simongottschlag in #113
- OpenID Provider to be used with tests by @simongottschlag in #114
Full Changelog: v0.0.22...v0.0.23
v0.0.22
What's Changed
- Expose ParseToken and GetTokenString by @simongottschlag in #100
Full Changelog: v0.0.21...v0.0.22
v0.0.21
Full Changelog: v0.0.20...v0.0.21
v0.0.20
What's Changed
- create tags on release by @simongottschlag in #111
- fix createRef by @simongottschlag in #112
Full Changelog: v0.0.19...v0.0.20
v0.0.19
What's Changed
- Bump github.com/lestrrat-go/jwx from 1.2.9 to 1.2.10 by @dependabot in #95
- Move packages into separate modules by @simongottschlag in #110
Most likely a breaking change
The PR #110 moves the different routers into their own separate packages. This means a lot of logic needs to be updated to make sure the tooling around (like coverage) works as expected.
This is most likely a breaking change and when released, and will probably force other modules/programs that use this library to update on their side. I have never done this, which means I'm not sure.
Sorry for that, but I will try to get it working and please create an issue if you see any obvious problems.
This fixes #98
Full Changelog: v0.0.18...v0.0.19
v0.0.18
What's Changed
- Bump github.com/gofiber/fiber/v2 from 2.20.2 to 2.21.0 by @dependabot in #86
- Bump github.com/gofiber/fiber/v2 from 2.20.2 to 2.21.0 in /examples by @dependabot in #87
- Bump github.com/zclconf/go-cty from 1.9.1 to 1.10.0 by @dependabot in #89
- Bump github.com/go-chi/chi/v5 from 5.0.4 to 5.0.5 by @dependabot in #85
- bump deps by @simongottschlag in #93
Full Changelog: v0.0.17...v0.0.18
v0.0.17
Fixed bug
- Resolve issue with nested claims by @simongottschlag in #84
What's Changed
- Bump github.com/gofiber/fiber/v2 from 2.20.1 to 2.20.2 in /examples by @dependabot in #76
- Bump github.com/gofiber/fiber/v2 from 2.20.1 to 2.20.2 by @dependabot in #77
- Bump github.com/lestrrat-go/jwx from 1.2.7 to 1.2.8 by @dependabot in #80
- Bump github.com/lestrrat-go/jwx from 1.2.8 to 1.2.9 by @dependabot in #81
- Resolve issue with nested claims by @simongottschlag in #84
- Bump goreleaser/goreleaser-action from 2.7.0 to 2.8.0 by @dependabot in #78
- Bump github.com/cristalhq/aconfig from 0.16.6 to 0.16.7 in /examples by @dependabot in #79
Full Changelog: v0.0.16...v0.0.17
v0.0.16
Changes
- Add ability to use custom error handler (#75)
Additional information
It is possible to add a custom function to handle errors. It will not be possible to change anything using it, but you will be able to add logic for logging as an example.
errorHandler := func(description options.ErrorDescription, err error) {
fmt.Printf("Description: %s\tError: %v\n", description, err)
}
oidcHandler := oidcgin.New(
options.WithIssuer(cfg.Issuer),
options.WithFallbackSignatureAlgorithm(cfg.FallbackSignatureAlgorithm),
options.WithRequiredClaims(map[string]interface{}{
"cid": cfg.ClientID,
}),
options.WithErrorHandler(errorHandler),
)
v0.0.15
Changes
- Update dependencies