OAuthEnabled returns if oauth is enabled for administration.
()
| 82 | |
| 83 | // OAuthEnabled returns if oauth is enabled for administration. |
| 84 | func (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. |
| 89 | func (a *AdminAuth) AuthURL(state string, clientID string, callback string) (realState string, authURL string) { |
no outgoing calls
no test coverage detected