Skip to content

Commit

Permalink
Automated Code Change
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 646069001
Change-Id: I2592a1a1dbc42960ec7e20308a096fe5510ad8d8
  • Loading branch information
Google Cloud Healthcare Team authored and copybara-github committed Jun 24, 2024
1 parent ac901e3 commit 9abbb6c
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 6 deletions.
15 changes: 11 additions & 4 deletions proto/common/v1/common.proto
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ syntax = "proto3";
package common;

import "google/protobuf/timestamp.proto";
import "storage/datapol/annotations/proto/semantic_annotations.proto";

option go_package = "github.com/GoogleCloudPlatform/healthcare-federated-access-services/proto/common/v1";

Expand Down Expand Up @@ -148,8 +149,8 @@ message CliState {
bytes encrypted_secret = 9;
bytes encrypted_code = 10;
string secret = 11;
string access_token = 12;
string refresh_token = 13;
string access_token = 12 [(datapol.semantic_type) = ST_ACCOUNT_CREDENTIAL];
string refresh_token = 13 [(datapol.semantic_type) = ST_ACCOUNT_CREDENTIAL];
string state = 14;
google.protobuf.Timestamp accepted_at = 15;
map<string, string> user_profile = 16;
Expand Down Expand Up @@ -193,10 +194,16 @@ message OidcTokenResponse {
string name = 1;
string email = 2;
}
string access_token = 1 [json_name = "access_token"];
string access_token = 1 [
json_name = "access_token",
(datapol.semantic_type) = ST_ACCOUNT_CREDENTIAL
];
string token_type = 2 [json_name = "token_type"];
int32 expires_in = 3 [json_name = "expires_in"];
string refresh_token = 4 [json_name = "refresh_token"];
string refresh_token = 4 [
json_name = "refresh_token",
(datapol.semantic_type) = ST_ACCOUNT_CREDENTIAL
];
string id_token = 5 [json_name = "id_token"];
string scope = 6;
string uid = 7;
Expand Down
11 changes: 9 additions & 2 deletions proto/common/v1/oauthclient.proto
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ syntax = "proto3";
package common;

import "google/rpc/status.proto";
import "storage/datapol/annotations/proto/semantic_annotations.proto";

option go_package = "github.com/GoogleCloudPlatform/healthcare-federated-access-services/proto/common/v1";

Expand Down Expand Up @@ -56,7 +57,10 @@ message ClientState {

message ClientResponse {
Client client = 1;
string client_secret = 2 [json_name = "client_secret"];
string client_secret = 2 [
json_name = "client_secret",
(datapol.semantic_type) = ST_SECURITY_MATERIAL
];
}

message ConfigModification {
Expand All @@ -78,5 +82,8 @@ message ConfigClientRequest {

message ConfigClientResponse {
Client client = 1;
string client_secret = 2 [json_name = "client_secret"];
string client_secret = 2 [
json_name = "client_secret",
(datapol.semantic_type) = ST_SECURITY_MATERIAL
];
}

0 comments on commit 9abbb6c

Please sign in to comment.