summaryrefslogtreecommitdiffstats
path: root/models/oauth2.go
diff options
context:
space:
mode:
authorEthan Koenig <etk39@cornell.edu>2017-05-04 01:54:56 -0400
committerLunny Xiao <xiaolunwen@gmail.com>2017-05-04 13:54:56 +0800
commita5f28a4544e51c81c793518e5231a2c2a91ebac6 (patch)
treed02657b36b7d3db899d883f6149df44e89455720 /models/oauth2.go
parent1773e88643a2df7e7efbe86ec424409b45a4d576 (diff)
downloadgitea-a5f28a4544e51c81c793518e5231a2c2a91ebac6.tar.gz
gitea-a5f28a4544e51c81c793518e5231a2c2a91ebac6.zip
gofmt (#1662)
Diffstat (limited to 'models/oauth2.go')
-rw-r--r--models/oauth2.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/models/oauth2.go b/models/oauth2.go
index 9de64a0587..158f52b963 100644
--- a/models/oauth2.go
+++ b/models/oauth2.go
@@ -6,15 +6,16 @@ package models
import (
"sort"
+
"code.gitea.io/gitea/modules/auth/oauth2"
)
// OAuth2Provider describes the display values of a single OAuth2 provider
type OAuth2Provider struct {
- Name string
- DisplayName string
- Image string
- CustomURLMapping *oauth2.CustomURLMapping
+ Name string
+ DisplayName string
+ Image string
+ CustomURLMapping *oauth2.CustomURLMapping
}
// OAuth2Providers contains the map of registered OAuth2 providers in Gitea (based on goth)
@@ -47,7 +48,7 @@ var OAuth2Providers = map[string]OAuth2Provider{
// OAuth2DefaultCustomURLMappings contains the map of default URL's for OAuth2 providers that are allowed to have custom urls
// key is used to map the OAuth2Provider
// value is the mapping as defined for the OAuth2Provider
-var OAuth2DefaultCustomURLMappings = map[string]*oauth2.CustomURLMapping {
+var OAuth2DefaultCustomURLMappings = map[string]*oauth2.CustomURLMapping{
"github": OAuth2Providers["github"].CustomURLMapping,
"gitlab": OAuth2Providers["gitlab"].CustomURLMapping,
}
@@ -119,4 +120,3 @@ func wrapOpenIDConnectInitializeError(err error, providerName string, oAuth2Conf
}
return err
}
-