go-oauth2 / oauth2

OAuth 2.0 server library for the Go programming language.
https://pkg.go.dev/github.com/go-oauth2/oauth2/v4
MIT License
3.31k stars 563 forks source link

Any interest in adapting a PR? #181

Closed tsmethurst closed 3 years ago

tsmethurst commented 3 years ago

I just made a release of a forked version of this library that I'm using in a project:

https://github.com/superseriousbusiness/oauth2/releases/tag/v4.3.0-SSB

Basically, it changes some structs into interfaces to allow library users to implement their own Client and ClientStores that use database rather than in-memory storage.

Any interest in me making a PR of this back to here?

It would solve the following:

tsmethurst commented 3 years ago

This is how it looks to implement these interfaces from a library-user point of view:

https://github.com/superseriousbusiness/gotosocial/blob/main/internal/oauth/tokenstore.go

https://github.com/superseriousbusiness/gotosocial/blob/main/internal/oauth/clientstore.go