gofmt (#1662)
parent
1773e88643
commit
a5f28a4544
|
@ -6,6 +6,7 @@ package models
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"sort"
|
"sort"
|
||||||
|
|
||||||
"code.gitea.io/gitea/modules/auth/oauth2"
|
"code.gitea.io/gitea/modules/auth/oauth2"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -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
|
// 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
|
// key is used to map the OAuth2Provider
|
||||||
// value is the mapping as defined for 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,
|
"github": OAuth2Providers["github"].CustomURLMapping,
|
||||||
"gitlab": OAuth2Providers["gitlab"].CustomURLMapping,
|
"gitlab": OAuth2Providers["gitlab"].CustomURLMapping,
|
||||||
}
|
}
|
||||||
|
@ -119,4 +120,3 @@ func wrapOpenIDConnectInitializeError(err error, providerName string, oAuth2Conf
|
||||||
}
|
}
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue