mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-29 02:42:24 -05:00
[chore] migrate oauth2 -> codeberg (#3857)
This commit is contained in:
parent
49c12636c6
commit
8488ac9286
65 changed files with 1677 additions and 1221 deletions
4
vendor/golang.org/x/oauth2/pkce.go
generated
vendored
4
vendor/golang.org/x/oauth2/pkce.go
generated
vendored
|
|
@ -21,7 +21,7 @@ const (
|
|||
//
|
||||
// A fresh verifier should be generated for each authorization.
|
||||
// S256ChallengeOption(verifier) should then be passed to Config.AuthCodeURL
|
||||
// (or Config.DeviceAccess) and VerifierOption(verifier) to Config.Exchange
|
||||
// (or Config.DeviceAuth) and VerifierOption(verifier) to Config.Exchange
|
||||
// (or Config.DeviceAccessToken).
|
||||
func GenerateVerifier() string {
|
||||
// "RECOMMENDED that the output of a suitable random number generator be
|
||||
|
|
@ -51,7 +51,7 @@ func S256ChallengeFromVerifier(verifier string) string {
|
|||
}
|
||||
|
||||
// S256ChallengeOption derives a PKCE code challenge derived from verifier with
|
||||
// method S256. It should be passed to Config.AuthCodeURL or Config.DeviceAccess
|
||||
// method S256. It should be passed to Config.AuthCodeURL or Config.DeviceAuth
|
||||
// only.
|
||||
func S256ChallengeOption(verifier string) AuthCodeOption {
|
||||
return challengeOption{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue