Documentation ¶
Index ¶
- Constants
- Variables
- type Google
- func (p Google) GetAuthorizationURL(ctx context.Context, deps oauthrelyingparty.Dependencies, ...) (string, error)
- func (Google) GetJSONSchema() map[string]interface{}
- func (Google) GetUserProfile(ctx context.Context, deps oauthrelyingparty.Dependencies, ...) (authInfo oauthrelyingparty.UserProfile, err error)
- func (Google) ProviderID(cfg oauthrelyingparty.ProviderConfig) oauthrelyingparty.ProviderID
- func (Google) SetDefaults(cfg oauthrelyingparty.ProviderConfig)
Constants ¶
View Source
const Type = liboauthrelyingparty.TypeGoogle
Variables ¶
View Source
var Schema = validation.NewSimpleSchema(`
{
"type": "object",
"properties": {
"type": { "type": "string" },
"client_id": { "type": "string", "minLength": 1 },
"claims": {
"type": "object",
"additionalProperties": false,
"properties": {
"email": {
"type": "object",
"additionalProperties": false,
"properties": {
"assume_verified": { "type": "boolean" },
"required": { "type": "boolean" }
}
}
}
}
},
"required": ["type", "client_id"]
}
`)
Functions ¶
This section is empty.
Types ¶
type Google ¶
type Google struct{}
func (Google) GetAuthorizationURL ¶
func (p Google) GetAuthorizationURL(ctx context.Context, deps oauthrelyingparty.Dependencies, param oauthrelyingparty.GetAuthorizationURLOptions) (string, error)
func (Google) GetJSONSchema ¶
func (Google) GetUserProfile ¶
func (Google) GetUserProfile(ctx context.Context, deps oauthrelyingparty.Dependencies, param oauthrelyingparty.GetUserProfileOptions) (authInfo oauthrelyingparty.UserProfile, err error)
func (Google) ProviderID ¶
func (Google) ProviderID(cfg oauthrelyingparty.ProviderConfig) oauthrelyingparty.ProviderID
func (Google) SetDefaults ¶
func (Google) SetDefaults(cfg oauthrelyingparty.ProviderConfig)
Click to show internal directories.
Click to hide internal directories.