oauth2_proxy/providers/provider_data.go
Ed Bardsley 33045a792b Add a flag to set the value of "approval_prompt".
By setting this to "force", certain providers, like Google,
will interject an additional prompt on every new session. With other values,
like "auto", this prompt is not forced upon the user.
2015-07-31 00:43:47 -07:00

20 lines
344 B
Go

package providers
import (
"net/url"
)
type ProviderData struct {
ProviderName string
ClientID string
ClientSecret string
LoginUrl *url.URL
RedeemUrl *url.URL
ProfileUrl *url.URL
ValidateUrl *url.URL
Scope string
ApprovalPrompt string
}
func (p *ProviderData) Data() *ProviderData { return p }