mirror of
https://github.com/pomerium/pomerium.git
synced 2025-07-09 04:48:13 +02:00
* directory: add explicit RefreshUser endpoint for faster sync * add test * implement azure * update api call * add test for azure User * implement github * implement AccessToken, gitlab * implement okta * implement onelogin * fix test * fix inconsistent test * implement auth0
30 lines
565 B
Protocol Buffer
30 lines
565 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package directory;
|
|
option go_package = "github.com/pomerium/pomerium/pkg/grpc/directory";
|
|
|
|
import "google/protobuf/empty.proto";
|
|
|
|
message User {
|
|
string version = 1;
|
|
string id = 2;
|
|
repeated string group_ids = 3;
|
|
string display_name = 4;
|
|
string email = 5;
|
|
}
|
|
|
|
message Group {
|
|
string version = 1;
|
|
string id = 2;
|
|
string name = 3;
|
|
string email = 4;
|
|
}
|
|
|
|
message RefreshUserRequest {
|
|
string user_id = 1;
|
|
string access_token = 2;
|
|
}
|
|
|
|
service DirectoryService {
|
|
rpc RefreshUser(RefreshUserRequest) returns (google.protobuf.Empty);
|
|
}
|