mirror of
https://github.com/grafana/grafana.git
synced 2025-08-03 06:22:13 +08:00
Auth: Add authentication config frontend routes to api.go (#66931)
* Add auth config frontend routes to api.go * Remove SAML related endpoints * Fix routes * Enable authconfig for Enterprise, Cloud Pro and Advanced * Fix * Update public/app/routes/routes.tsx Co-authored-by: Alexander Zobnin <alexanderzobnin@gmail.com> --------- Co-authored-by: Alexander Zobnin <alexanderzobnin@gmail.com>
This commit is contained in:
@ -224,6 +224,10 @@ func (hs *HTTPServer) registerRoutes() {
|
||||
r.Get("/user/auth-tokens/rotate", routing.Wrap(hs.RotateUserAuthTokenRedirect))
|
||||
}
|
||||
|
||||
if hs.License.FeatureEnabled("saml") && hs.Features.IsEnabled(featuremgmt.FlagAuthenticationConfigUI) {
|
||||
r.Get("/admin/authentication/", authorize(reqGrafanaAdmin, ac.EvalPermission(ac.ActionSettingsRead, ac.ScopeSettingsAll)), hs.Index)
|
||||
}
|
||||
|
||||
// authed api
|
||||
r.Group("/api", func(apiRoute routing.RouteRegister) {
|
||||
// user (signed in)
|
||||
|
Reference in New Issue
Block a user