2015-03-30 21:30:27 +02:00
|
|
|
package providers
|
|
|
|
|
|
|
|
import (
|
|
|
|
"net/url"
|
|
|
|
)
|
|
|
|
|
2018-12-20 12:37:59 +02:00
|
|
|
// ProviderData contains information required to configure all implementations
|
|
|
|
// of OAuth2 providers
|
2015-03-30 21:30:27 +02:00
|
|
|
type ProviderData struct {
|
2015-11-09 10:28:34 +02: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 21:30:27 +02:00
|
|
|
}
|
|
|
|
|
2018-12-20 12:37:59 +02:00
|
|
|
// Data returns the ProviderData
|
2015-03-30 21:30:27 +02:00
|
|
|
func (p *ProviderData) Data() *ProviderData { return p }
|