mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
IDForwarding: Always forward id tokens to plugins (#81041)
* Always forward id tokens to plugins
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user