Open olehbozhok opened 1 week ago
Looks good.
It looks like it has sense to cache only when CEDARLING_JWT_VALIDATION has value Enabled
But we have no implementation to this.
Only for Disabled. And in this case, all we do it is decoding base64 and parsing JSON
In the current sparKV
implementation, we store data in string. So using the cache we also need to parse JSON.
So using cache for Disabled value has no sense...
Is your feature request related to a problem? Please describe. To make the authorization request we need:
Describe the solution you'd like
Create the
JWT service
instance that allows to decode claims without validating JWTInsert
JWT service
toAuthz
during initializationadd basic
Request
struct based on the linkaccess token
fieldAdd in
Authz
methodpub fn is_authorized(&self, input: Request)
create function to create
Workload
entity.Probably we need to add implementation to cache token information to not decode it each time
Additional context