Move ResourceAccess to Auth CtxFragment, delete unused field (#22)

This commit is contained in:
malkoas 2022-08-25 17:47:21 +03:00 committed by GitHub
parent 945ea9f89a
commit 2c07755475
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -104,6 +104,7 @@ struct Token {
* [1]: https://tools.ietf.org/html/rfc7519#section-4.1.7
*/
1: optional string id
2: optional set<ResourceAccess> access
}
/**
@ -448,11 +449,9 @@ struct WachterOperation {
* Имя сервиса, которому принадлежит id операции
*/
2: optional string service_name
3: optional Entity party
4: optional set<Access> access
}
struct Access {
struct ResourceAccess {
/**
* Например:
* - "claim-management"
@ -460,7 +459,7 @@ struct Access {
* - ...
*/
1: optional string id
2: optional set<EntityID> roles
2: optional set<string> roles
}