Add token/userinfo claims to account read output (#1419)
This is very useful when trying to write managed groups filters as you can directly look at the structure of the claims for the accounts you're trying to filter. The output of the claims in text format on the CLI currently leaves something to be desired. I started revamping some of the formatting functions and it quickly got very fragile. Fundamentally at this point we're likely better off -- now that we have a good idea what our output format/standards are like -- rewriting the formatting code. I'll take that as a tasker as I have a lot of ideas...
This commit is contained in:
1 parent
d4fc2efa53
commit
528d54b4ad
16 files changed
+326
-161
No files matched your search
@@ -74,4 +74,10 @@ message OidcAccountAttributes {
|
||||
|
||||
// Output only. email is a string that maps to the OIDC email claim.
|
||||
string email = 110;
|
||||
|
||||
// Output only. token_claims are the marshaled claims from the token.
|
||||
google.protobuf.Struct token_claims = 120;
|
||||
|
||||
// Output only. userinfo_claims are the marshaled claims from userinfo.
|
||||
google.protobuf.Struct userinfo_claims = 130;
|
||||
}
|
||||
@@ -7,7 +7,6 @@ option go_package = "github.com/hashicorp/boundary/internal/gen/controller/api/s
|
||||
import "protoc-gen-openapiv2/options/annotations.proto";
|
||||
import "google/api/annotations.proto";
|
||||
import "google/protobuf/field_mask.proto";
|
||||
import "google/protobuf/wrappers.proto";
|
||||
import "controller/api/resources/managedgroups/v1/managed_group.proto";
|
||||
|
||||
service ManagedGroupService {
|
||||
|
||||
Reference in new issue
Block a user