mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
@@ -4,7 +4,6 @@ import (
|
||||
"fmt"
|
||||
"strconv"
|
||||
|
||||
authnlib "github.com/grafana/authlib/authn"
|
||||
"github.com/grafana/authlib/claims"
|
||||
"k8s.io/apiserver/pkg/authentication/user"
|
||||
)
|
||||
@@ -76,8 +75,6 @@ type Requester interface {
|
||||
// GetIDToken returns a signed token representing the identity that can be forwarded to plugins and external services.
|
||||
// Will only be set when featuremgmt.FlagIdForwarding is enabled.
|
||||
GetIDToken() string
|
||||
// GetIDClaims returns the claims of the ID token.
|
||||
GetIDClaims() *authnlib.Claims[authnlib.IDTokenClaims]
|
||||
}
|
||||
|
||||
// IntIdentifier converts a typeID to an int64.
|
||||
|
||||
@@ -175,10 +175,6 @@ func (i *Identity) GetIDToken() string {
|
||||
return i.IDToken
|
||||
}
|
||||
|
||||
func (i *Identity) GetIDClaims() *authn.Claims[authn.IDTokenClaims] {
|
||||
return i.IDTokenClaims
|
||||
}
|
||||
|
||||
func (i *Identity) GetIsGrafanaAdmin() bool {
|
||||
return i.IsGrafanaAdmin != nil && *i.IsGrafanaAdmin
|
||||
}
|
||||
|
||||
@@ -323,7 +323,3 @@ func (u *SignedInUser) GetDisplayName() string {
|
||||
func (u *SignedInUser) GetIDToken() string {
|
||||
return u.IDToken
|
||||
}
|
||||
|
||||
func (u *SignedInUser) GetIDClaims() *authnlib.Claims[authnlib.IDTokenClaims] {
|
||||
return u.IDTokenClaims
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user