Skip to content

Releases: XenitAB/go-oidc-middleware

v0.0.24

27 Jan 09:51
8196594
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.0.23...v0.0.24

v0.0.23

30 Nov 21:09
d95c754
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.0.22...v0.0.23

v0.0.22

28 Nov 21:47
4f83eb9
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.0.21...v0.0.22

v0.0.21

28 Nov 20:52
Compare
Choose a tag to compare

Full Changelog: v0.0.20...v0.0.21

v0.0.20

28 Nov 16:04
6b22f43
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.0.19...v0.0.20

v0.0.19

28 Nov 08:48
8d6c5cd
Compare
Choose a tag to compare

What's Changed

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

05 Nov 08:51
12ca6de
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.0.17...v0.0.18

v0.0.17

26 Oct 20:19
18f7a95
Compare
Choose a tag to compare

Fixed bug

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

10 Oct 21:15
1fcd6d5
Compare
Choose a tag to compare

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

07 Oct 14:18
f11d391
Compare
Choose a tag to compare

Changes

  • Update dependencies