oauth2
oauth2 copied to clipboard
OAuth 2.0 server library for the Go programming language.
``` cd example/client go run client.go ``` And then use browser to access `http://localhost:9094/?token={token_from_login_firebase}`
Does this library support authentication via google and facebook? I can't find any documentation on this.
when use `refresh api` after `generate token api` within 1 second, the new token will lose efficacy. the source code as follow of `RefreshAccessToken()` in `manager.go`: ``` if err :=...
from the doc: > RawURLEncoding is the unpadded alternate base64 encoding defined in [RFC 4648](https://rfc-editor.org/rfc/rfc4648.html). It is typically used in URLs and file names. This is the same as URLEncoding...
any plans to support device code auth flow on server side ?
Currently there are different functions for removing token: `RemoveByCode(ctx context.Context, code string) error` `RemoveByAccess(ctx context.Context, code string) error` `RemoveByRefresh(ctx context.Context, code string) error` which all of them under the hood...
Looking at [the `ClientInfo` interface](https://github.com/go-oauth2/oauth2/blob/master/model.go#L9), there's a `GetUserID()` method. How could that be populated after a call to [`ClientStore.GetByID`](https://github.com/go-oauth2/oauth2/blob/master/store.go#L9)? I'm not 100% certain how all of this ties together but...
Many types in the library have poor documentation. This is a request for more comments that are meaningful to very casual OAuth users. Example ```go // TokenInfo the token information...
I'm looking at adding Casbin to provide RBAC to our API endpoints, and the current Go driver only supports Basic Auth. I'm trying to write my own, but for the...
3 issues relating to the redirect_uri: 1. When an invalid redirect_uri is detected, the framework is still redirecting to the invalid uri with the error message in the url. The...