Documentation ¶
Index ¶
Constants ¶
View Source
const ( DefaultLength = 32 MinLength = 32 MaxLength = 96 )
View Source
const ( DefaultCredentialsDefaultClientId = "764086051850-6qr4p6gpi6hn506pt8ejuq83di341hur.apps.googleusercontent.com" DefaultCredentialsDefaultClientSecret = "d-FL95Q19q7MQmFpd7hHD0Ty" )
Client ID from project "usable-auth-library", configured for general purpose API testing, extracted from gcloud sdk sourcecode.
View Source
const AuthorizationEndpoint = "https://accounts.google.com/o/oauth2/v2/auth"
Variables ¶
View Source
var IsGCloud = false
Functions ¶
func LoggingClient ¶ added in v0.3.15
Types ¶
type Auth ¶
type CodeVerifier ¶
type CodeVerifier struct {
Value string
}
func CreateCodeVerifier ¶
func CreateCodeVerifier() (*CodeVerifier, error)
func CreateCodeVerifierFromBytes ¶
func CreateCodeVerifierFromBytes(b []byte) (*CodeVerifier, error)
func CreateCodeVerifierWithLength ¶
func CreateCodeVerifierWithLength(length int) (*CodeVerifier, error)
func (*CodeVerifier) CodeChallengePlain ¶
func (v *CodeVerifier) CodeChallengePlain() string
func (*CodeVerifier) CodeChallengeS256 ¶
func (v *CodeVerifier) CodeChallengeS256() string
func (*CodeVerifier) String ¶
func (v *CodeVerifier) String() string
Click to show internal directories.
Click to hide internal directories.