authorize: implement allowed_idp_claims (#1542)

* add arbitrary claims to session

* add support for maps

* update flattened claims

* fix eol

* fix trailing whitespace

* fix tests
This commit is contained in:
Caleb Doxsey 2020-10-23 14:05:37 -06:00 committed by GitHub
parent 2a97e92d50
commit 153e438eb6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
24 changed files with 1369 additions and 743 deletions

View file

@ -3,15 +3,20 @@ syntax = "proto3";
package user;
option go_package = "github.com/pomerium/pomerium/pkg/grpc/user";
import "google/protobuf/any.proto";
import "google/protobuf/timestamp.proto";
import "google/protobuf/struct.proto";
message Claim {
string key = 1;
repeated string values = 2;
}
message User {
string version = 1;
string id = 2;
string name = 3;
string email = 4;
map<string, google.protobuf.Any> claims = 8;
map<string, google.protobuf.ListValue> claims = 9;
}
message ServiceAccount {