IDForwarding: Always forward id tokens to plugins (#81041)

* Always forward id tokens to plugins
This commit is contained in:
Karl Persson
2024-01-23 12:12:32 +01:00
committed by GitHub
parent 5b6a4e880b
commit 147bf01745
4 changed files with 6 additions and 60 deletions

View File

@@ -6,7 +6,6 @@ import (
"github.com/go-jose/go-jose/v3/jwt"
"github.com/grafana/grafana/pkg/services/auth/identity"
"github.com/grafana/grafana/pkg/services/datasources"
)
type IDService interface {
@@ -22,9 +21,3 @@ type IDClaims struct {
jwt.Claims
AuthenticatedBy string `json:"authenticatedBy,omitempty"`
}
const settingsKey = "forwardGrafanaIdToken"
func IsIDForwardingEnabledForDataSource(ds *datasources.DataSource) bool {
return ds.JsonData != nil && ds.JsonData.Get(settingsKey).MustBool()
}