Download Latest Version v0.49.0 source code.zip (1.7 MB)
Email in envelope

Get an email when there's a new version of fosite

Home / v0.47.0
Name Modified Size InfoDownloads / Week
Parent folder
README.md 2024-07-16 2.1 kB
v0.47.0 source code.tar.gz 2024-07-16 1.6 MB
v0.47.0 source code.zip 2024-07-16 1.7 MB
Totals: 3 Items   3.3 MB 0

BREAKING CHANGES: Going forward, please instantiate the HMACSHAStrategy using oauth2.NewHMACSHAStrategy():

:::patch
-var hmacshaStrategy = oauth2.HMACSHAStrategy{
-   Enigma: &hmac.HMACStrategy{Config: &fosite.Config{GlobalSecret: []byte("foobarfoobarfoobarfoobarfoobarfoobarfoobarfoobar")}},
-   Config: &fosite.Config{
-       AccessTokenLifespan:   time.Hour * 24,
-       AuthorizeCodeLifespan: time.Hour * 24,
-   },
-}

+var hmacshaStrategy = oauth2.NewHMACSHAStrategy(
+   &hmac.HMACStrategy{Config: &fosite.Config{GlobalSecret: []byte("foobarfoobarfoobarfoobarfoobarfoobarfoobarfoobar")}},
+   &fosite.Config{
+       AccessTokenLifespan:   time.Hour * 24,
+       AuthorizeCodeLifespan: time.Hour * 24,
+   },
+)

What's Changed

New Contributors

Full Changelog: https://github.com/ory/fosite/compare/v0.46.1...v0.47.0

Source: README.md, updated 2024-07-16