MCPcopy Index your code
hub / github.com/CovenantSQL/CovenantSQL / OAuthEnabled

Method OAuthEnabled

cmd/cql-proxy/auth/admin.go:84–86  ·  view source on GitHub ↗

OAuthEnabled returns if oauth is enabled for administration.

()

Source from the content-addressed store, hash-verified

82
83// OAuthEnabled returns if oauth is enabled for administration.
84func (a *AdminAuth) OAuthEnabled() bool {
85 return a.cfg != nil && a.cfg.OAuthEnabled
86}
87
88// AuthURL returns the oauth auth url for github oauth authentication.
89func (a *AdminAuth) AuthURL(state string, clientID string, callback string) (realState string, authURL string) {

Callers 3

AuthURLMethod · 0.95
HandleLoginMethod · 0.95
adminOAuthAuthorizeFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected