Documentation ¶
Index ¶
Constants ¶
View Source
const (
GOOGLE_ID_TOKEN_KEY string = "X-GOOGLE-ID-TOKEN"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GoogleIDTokenVerifier ¶
type GoogleIDTokenVerifier struct {
// contains filtered or unexported fields
}
func NewGoogleIDTokenVerifier ¶
func NewGoogleIDTokenVerifier() *GoogleIDTokenVerifier
type GoogleOauth ¶
type GoogleOauth struct {
// contains filtered or unexported fields
}
func NewGoogleOauth ¶
func NewGoogleOauth(verifier IDTokenVerifier) GoogleOauth
func (GoogleOauth) Authenticate ¶
Authenticates the user using the ID Token received from Google.
func (GoogleOauth) Name ¶
func (g GoogleOauth) Name() string
func (GoogleOauth) SetLogger ¶
func (g GoogleOauth) SetLogger(l log.Logger)
func (GoogleOauth) Stats ¶
func (g GoogleOauth) Stats() stats.Metrics
func (GoogleOauth) Verify ¶
func (GoogleOauth) Verify(ctx context.Context, data auth.AuthRequest) error
Verify the provided AAD in the transaction data with the expected AAD Transaction data is expected to be in the following format:
pk || cipher length || aad length || cipher || aad || nonce - pk is expected to be 16 bytes - cipher length and aad length are uint64 encoded in big endian - nonce is expected to be 5 bytes
type IDTokenVerifier ¶
type OpenIDClaims ¶
Click to show internal directories.
Click to hide internal directories.