Skip to content
This repository has been archived by the owner on Apr 22, 2024. It is now read-only.

Commit

Permalink
api change
Browse files Browse the repository at this point in the history
Signed-off-by: huabing zhao <[email protected]>
  • Loading branch information
zhaohuabing committed Feb 20, 2024
1 parent f281f16 commit 4674174
Showing 1 changed file with 23 additions and 4 deletions.
27 changes: 23 additions & 4 deletions config/v1/oidc/config.proto
Original file line number Diff line number Diff line change
Expand Up @@ -130,10 +130,29 @@ message OIDCConfig {
// Required.
string client_id = 5 [(validate.rules).string.min_len = 1];

// The OIDC client secret assigned to the filter to be used in the
// [Authentication Request](https://openid.net/specs/openid-connect-core-1_0.html#AuthRequest).
// Required.
string client_secret = 6 [(validate.rules).string.min_len = 1];
// This message defines a reference to a Kubernetes Secret resource.
message SecretReference {
// The namespace of the referenced Secret, if not set, default to "default" namespace.
string namespace = 1;

// The name of the referenced Secret.
string name = 2 [(validate.rules).string.min_len = 1];
}

oneof client_secret_config {
// The OIDC client secret assigned to the filter to be used in the
// [Authentication Request](https://openid.net/specs/openid-connect-core-1_0.html#AuthRequest).
// This field keeps the client secret in plain text. Recommend to use `client_secret_ref` instead
// when running in a Kubernetes cluster.
string client_secret = 6;

// The Kubernetes secret that contains the OIDC client secret assigned to the filter to be used in the
// [Authentication Request](https://openid.net/specs/openid-connect-core-1_0.html#AuthRequest).
//
// This is an Opaque secret. The client secret should be stored in the key "client-secret".
// This filed is only valid when running in a Kubernetes cluster.
SecretReference client_secret_ref = 20;
}

// Additional scopes passed to the OIDC Provider in the
// [Authentication Request](https://openid.net/specs/openid-connect-core-1_0.html#AuthRequest).
Expand Down

0 comments on commit 4674174

Please sign in to comment.