MCPcopy Create free account
hub / github.com/clouditor/clouditor / AuthorizationStrategyJWT

Struct AuthorizationStrategyJWT

service/authorization.go:62–65  ·  view source on GitHub ↗

AuthorizationStrategyJWT is an AuthorizationStrategy that expects a list of certification target IDs to be in a specific JWT claim key.

Source from the content-addressed store, hash-verified

60// AuthorizationStrategyJWT is an AuthorizationStrategy that expects a list of certification target IDs to be in a specific JWT
61// claim key.
62type AuthorizationStrategyJWT struct {
63 CertificationTargetsKey string
64 AllowAllKey string
65}
66
67// CheckAccess checks whether the current request can be fulfilled using the current access strategy.
68func (a *AuthorizationStrategyJWT) CheckAccess(ctx context.Context, _ RequestType, req api.CertificationTargetRequest) bool {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected