mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-05 10:37:23 +01:00
iam.proto: jti_replay_protection_enabled on OIDCProvider and PutOIDCProviderRequest
Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
1 parent
88b91cccba
commit
3e4306da55
2 files changed
+43
-15
No files matched your search
@@ -331,6 +331,8 @@ message OIDCProvider {
|
||||
// from it and the issuer URL.
|
||||
string account_id = 4;
|
||||
string arn = 5; // output only
|
||||
// unset means the server default (replay protection on)
|
||||
optional bool jti_replay_protection_enabled = 6;
|
||||
}
|
||||
|
||||
// PutOIDCProviderRequest creates the provider, or replaces the client IDs and
|
||||
@@ -340,6 +342,8 @@ message PutOIDCProviderRequest {
|
||||
repeated string client_ids = 2;
|
||||
repeated string thumbprints = 3;
|
||||
string account_id = 4;
|
||||
// unset keeps the stored value, or the server default on create
|
||||
optional bool jti_replay_protection_enabled = 5;
|
||||
}
|
||||
|
||||
message PutOIDCProviderResponse {
|
||||
|
||||
+39
-15
@@ -1,7 +1,7 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.36.6
|
||||
// protoc v6.33.4
|
||||
// protoc v3.21.12
|
||||
// source: iam.proto
|
||||
|
||||
package iam_pb
|
||||
@@ -2687,10 +2687,12 @@ type OIDCProvider struct {
|
||||
Thumbprints []string `protobuf:"bytes,3,rep,name=thumbprints,proto3" json:"thumbprints,omitempty"`
|
||||
// account_id scopes the provider; empty means global. The ARN is derived
|
||||
// from it and the issuer URL.
|
||||
AccountId string `protobuf:"bytes,4,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"`
|
||||
Arn string `protobuf:"bytes,5,opt,name=arn,proto3" json:"arn,omitempty"` // output only
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
AccountId string `protobuf:"bytes,4,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"`
|
||||
Arn string `protobuf:"bytes,5,opt,name=arn,proto3" json:"arn,omitempty"` // output only
|
||||
// unset means the server default (replay protection on)
|
||||
JtiReplayProtectionEnabled *bool `protobuf:"varint,6,opt,name=jti_replay_protection_enabled,json=jtiReplayProtectionEnabled,proto3,oneof" json:"jti_replay_protection_enabled,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *OIDCProvider) Reset() {
|
||||
@@ -2758,16 +2760,25 @@ func (x *OIDCProvider) GetArn() string {
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *OIDCProvider) GetJtiReplayProtectionEnabled() bool {
|
||||
if x != nil && x.JtiReplayProtectionEnabled != nil {
|
||||
return *x.JtiReplayProtectionEnabled
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
// PutOIDCProviderRequest creates the provider, or replaces the client IDs and
|
||||
// thumbprints of an existing one.
|
||||
type PutOIDCProviderRequest struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
IssuerUrl string `protobuf:"bytes,1,opt,name=issuer_url,json=issuerUrl,proto3" json:"issuer_url,omitempty"`
|
||||
ClientIds []string `protobuf:"bytes,2,rep,name=client_ids,json=clientIds,proto3" json:"client_ids,omitempty"`
|
||||
Thumbprints []string `protobuf:"bytes,3,rep,name=thumbprints,proto3" json:"thumbprints,omitempty"`
|
||||
AccountId string `protobuf:"bytes,4,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
IssuerUrl string `protobuf:"bytes,1,opt,name=issuer_url,json=issuerUrl,proto3" json:"issuer_url,omitempty"`
|
||||
ClientIds []string `protobuf:"bytes,2,rep,name=client_ids,json=clientIds,proto3" json:"client_ids,omitempty"`
|
||||
Thumbprints []string `protobuf:"bytes,3,rep,name=thumbprints,proto3" json:"thumbprints,omitempty"`
|
||||
AccountId string `protobuf:"bytes,4,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"`
|
||||
// unset keeps the stored value, or the server default on create
|
||||
JtiReplayProtectionEnabled *bool `protobuf:"varint,5,opt,name=jti_replay_protection_enabled,json=jtiReplayProtectionEnabled,proto3,oneof" json:"jti_replay_protection_enabled,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *PutOIDCProviderRequest) Reset() {
|
||||
@@ -2828,6 +2839,13 @@ func (x *PutOIDCProviderRequest) GetAccountId() string {
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *PutOIDCProviderRequest) GetJtiReplayProtectionEnabled() bool {
|
||||
if x != nil && x.JtiReplayProtectionEnabled != nil {
|
||||
return *x.JtiReplayProtectionEnabled
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
type PutOIDCProviderResponse struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Arn string `protobuf:"bytes,1,opt,name=arn,proto3" json:"arn,omitempty"`
|
||||
@@ -4039,7 +4057,7 @@ const file_iam_proto_rawDesc = "" +
|
||||
"\n" +
|
||||
"access_key\x18\x01 \x01(\tR\taccessKey\"g\n" +
|
||||
"$GetServiceAccountByAccessKeyResponse\x12?\n" +
|
||||
"\x0fservice_account\x18\x01 \x01(\v2\x16.iam_pb.ServiceAccountR\x0eserviceAccount\"\x9f\x01\n" +
|
||||
"\x0fservice_account\x18\x01 \x01(\v2\x16.iam_pb.ServiceAccountR\x0eserviceAccount\"\x89\x02\n" +
|
||||
"\fOIDCProvider\x12\x1d\n" +
|
||||
"\n" +
|
||||
"issuer_url\x18\x01 \x01(\tR\tissuerUrl\x12\x1d\n" +
|
||||
@@ -4048,7 +4066,9 @@ const file_iam_proto_rawDesc = "" +
|
||||
"\vthumbprints\x18\x03 \x03(\tR\vthumbprints\x12\x1d\n" +
|
||||
"\n" +
|
||||
"account_id\x18\x04 \x01(\tR\taccountId\x12\x10\n" +
|
||||
"\x03arn\x18\x05 \x01(\tR\x03arn\"\x97\x01\n" +
|
||||
"\x03arn\x18\x05 \x01(\tR\x03arn\x12F\n" +
|
||||
"\x1djti_replay_protection_enabled\x18\x06 \x01(\bH\x00R\x1ajtiReplayProtectionEnabled\x88\x01\x01B \n" +
|
||||
"\x1e_jti_replay_protection_enabled\"\x81\x02\n" +
|
||||
"\x16PutOIDCProviderRequest\x12\x1d\n" +
|
||||
"\n" +
|
||||
"issuer_url\x18\x01 \x01(\tR\tissuerUrl\x12\x1d\n" +
|
||||
@@ -4056,7 +4076,9 @@ const file_iam_proto_rawDesc = "" +
|
||||
"client_ids\x18\x02 \x03(\tR\tclientIds\x12 \n" +
|
||||
"\vthumbprints\x18\x03 \x03(\tR\vthumbprints\x12\x1d\n" +
|
||||
"\n" +
|
||||
"account_id\x18\x04 \x01(\tR\taccountId\"+\n" +
|
||||
"account_id\x18\x04 \x01(\tR\taccountId\x12F\n" +
|
||||
"\x1djti_replay_protection_enabled\x18\x05 \x01(\bH\x00R\x1ajtiReplayProtectionEnabled\x88\x01\x01B \n" +
|
||||
"\x1e_jti_replay_protection_enabled\"+\n" +
|
||||
"\x17PutOIDCProviderResponse\x12\x10\n" +
|
||||
"\x03arn\x18\x01 \x01(\tR\x03arn\"V\n" +
|
||||
"\x16GetOIDCProviderRequest\x12\x1d\n" +
|
||||
@@ -4340,6 +4362,8 @@ func file_iam_proto_init() {
|
||||
if File_iam_proto != nil {
|
||||
return
|
||||
}
|
||||
file_iam_proto_msgTypes[56].OneofWrappers = []any{}
|
||||
file_iam_proto_msgTypes[57].OneofWrappers = []any{}
|
||||
type x struct{}
|
||||
out := protoimpl.TypeBuilder{
|
||||
File: protoimpl.DescBuilder{
|
||||
|
||||
Reference in new issue
Block a user