Allow users to use a generic oauth that conforms to the github style.

Enables users to set their own link text.
This commit is contained in:
Kevin Fitzpatrick
2016-04-12 17:54:45 -07:00
parent 603e5fe0bf
commit b4646b6c3a
5 changed files with 29 additions and 4 deletions

View File

@@ -11,8 +11,9 @@ type OAuthInfo struct {
}
type OAuther struct {
GitHub, Google, Twitter bool
OAuthInfos map[string]*OAuthInfo
GitHub, Google, Twitter, Generic bool
OAuthInfos map[string]*OAuthInfo
OAuthProviderName string
}
var OAuthService *OAuther