2015-03-30 19:30:27 +00:00
|
|
|
package providers
|
|
|
|
|
|
|
|
import (
|
|
|
|
"net/url"
|
|
|
|
)
|
|
|
|
|
2018-12-20 10:37:59 +00:00
|
|
|
// ProviderData contains information required to configure all implementations
|
|
|
|
// of OAuth2 providers
|
2015-03-30 19:30:27 +00:00
|
|
|
type ProviderData struct {
|
2015-11-09 08:28:34 +00:00
|
|
|
ProviderName string
|
|
|
|
ClientID string
|
|
|
|
ClientSecret string
|
|
|
|
LoginURL *url.URL
|
|
|
|
RedeemURL *url.URL
|
|
|
|
ProfileURL *url.URL
|
|
|
|
ProtectedResource *url.URL
|
|
|
|
ValidateURL *url.URL
|
|
|
|
Scope string
|
|
|
|
ApprovalPrompt string
|
2015-03-30 19:30:27 +00:00
|
|
|
}
|
|
|
|
|
2018-12-20 10:37:59 +00:00
|
|
|
// Data returns the ProviderData
|
2015-03-30 19:30:27 +00:00
|
|
|
func (p *ProviderData) Data() *ProviderData { return p }
|