AuthorizationStrategyJWT is an AuthorizationStrategy that expects a list of certification target IDs to be in a specific JWT claim key.
| 60 | // AuthorizationStrategyJWT is an AuthorizationStrategy that expects a list of certification target IDs to be in a specific JWT |
| 61 | // claim key. |
| 62 | type 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. |
| 68 | func (a *AuthorizationStrategyJWT) CheckAccess(ctx context.Context, _ RequestType, req api.CertificationTargetRequest) bool { |
nothing calls this directly
no outgoing calls
no test coverage detected