Open oliverpool opened 2 years ago
If you want to champion this then I'm all for it. Just improves Authboss in general so I think that's great. I don't have any experience with OpenID Connect but it does seem quite popular.
I have created an external module to experiment on this: https://pkg.go.dev/git.sr.ht/~oliverpool/goath
It seems to work fine in my case, but I would really appreciate a review!
import "git.sr.ht/~oliverpool/goath/goauthboss"
// ...
ab = authboss.New()
goauthboss.Init(ab, map[string]goath.Provider{
"oidc": &coreos.OIDC{...},
}, store)
In there, I also did the cleanup that I suggested here: https://github.com/volatiletech/authboss/issues/333#issuecomment-1034989236
OpenID Connect seems like an easier way to offer login than oauth2.
If you think that this is a good idea, I could try to add it as a subpackage
github.com/volatiletech/authboss/v3/oauth2/oidc
.Here is my current implementation (based on https://github.com/caos/oidc):