Skip to content

Commit 2c01d72

Browse files
Google APIscopybara-github
authored andcommitted
feat: add oauth fields for IapSettings
PiperOrigin-RevId: 883439941
1 parent e1443bf commit 2c01d72

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

google/cloud/iap/v1/service.proto

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2025 Google LLC
1+
// Copyright 2026 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -484,6 +484,23 @@ message OAuthSettings {
484484
// since access behavior is managed by IAM policies.
485485
google.protobuf.StringValue login_hint = 2;
486486

487+
// Optional. OAuth 2.0 client ID used in the OAuth flow.
488+
// This allows for client sharing. The risks of client sharing
489+
// are outlined here:
490+
// https://cloud.google.com/iap/docs/sharing-oauth-clients#risks.
491+
google.protobuf.StringValue client_id = 3
492+
[(google.api.field_behavior) = OPTIONAL];
493+
494+
// Optional. Input only. OAuth secret paired with client ID.
495+
google.protobuf.StringValue client_secret = 4 [
496+
(google.api.field_behavior) = INPUT_ONLY,
497+
(google.api.field_behavior) = OPTIONAL
498+
];
499+
500+
// Output only. OAuth secret SHA256 paired with client ID.
501+
google.protobuf.StringValue client_secret_sha256 = 6
502+
[(google.api.field_behavior) = OUTPUT_ONLY];
503+
487504
// Optional. List of client ids allowed to use IAP programmatically.
488505
repeated string programmatic_clients = 5
489506
[(google.api.field_behavior) = OPTIONAL];

0 commit comments

Comments
 (0)