1 parent
7062bc70f0
commit
be10cc4b42
62 files changed
+440
-438
No files matched your search
@@ -1,19 +1,19 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.26.0
|
||||
// protoc v3.12.4
|
||||
// protoc v3.15.5
|
||||
// source: controller/api/resources/authmethods/v1/auth_method.proto
|
||||
|
||||
package authmethods
|
||||
|
||||
import (
|
||||
_struct "github.com/golang/protobuf/ptypes/struct"
|
||||
timestamp "github.com/golang/protobuf/ptypes/timestamp"
|
||||
wrappers "github.com/golang/protobuf/ptypes/wrappers"
|
||||
scopes "github.com/hashicorp/boundary/internal/gen/controller/api/resources/scopes"
|
||||
_ "github.com/hashicorp/boundary/internal/gen/controller/protooptions"
|
||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
structpb "google.golang.org/protobuf/types/known/structpb"
|
||||
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
|
||||
wrapperspb "google.golang.org/protobuf/types/known/wrapperspb"
|
||||
reflect "reflect"
|
||||
sync "sync"
|
||||
)
|
||||
@@ -38,27 +38,27 @@ type AuthMethod struct {
|
||||
// Output only. Scope information for this Auth method.
|
||||
Scope *scopes.ScopeInfo `protobuf:"bytes,30,opt,name=scope,proto3" json:"scope,omitempty"`
|
||||
// Optional name for identification purposes.
|
||||
Name *wrappers.StringValue `protobuf:"bytes,40,opt,name=name,proto3" json:"name,omitempty"`
|
||||
Name *wrapperspb.StringValue `protobuf:"bytes,40,opt,name=name,proto3" json:"name,omitempty"`
|
||||
// Optional user-set description for identification purposes.
|
||||
Description *wrappers.StringValue `protobuf:"bytes,50,opt,name=description,proto3" json:"description,omitempty"`
|
||||
Description *wrapperspb.StringValue `protobuf:"bytes,50,opt,name=description,proto3" json:"description,omitempty"`
|
||||
// Output only. The time this resource was created.
|
||||
CreatedTime *timestamp.Timestamp `protobuf:"bytes,60,opt,name=created_time,proto3" json:"created_time,omitempty"`
|
||||
CreatedTime *timestamppb.Timestamp `protobuf:"bytes,60,opt,name=created_time,proto3" json:"created_time,omitempty"`
|
||||
// Output only. The time this resource was last updated.
|
||||
UpdatedTime *timestamp.Timestamp `protobuf:"bytes,70,opt,name=updated_time,proto3" json:"updated_time,omitempty"`
|
||||
UpdatedTime *timestamppb.Timestamp `protobuf:"bytes,70,opt,name=updated_time,proto3" json:"updated_time,omitempty"`
|
||||
// Version is used in mutation requests, after the initial creation, to ensure this resource has not changed.
|
||||
// The mutation will fail if the version does not match the latest known good version.
|
||||
Version uint32 `protobuf:"varint,80,opt,name=version,proto3" json:"version,omitempty"`
|
||||
// The Auth Method type.
|
||||
Type string `protobuf:"bytes,90,opt,name=type,proto3" json:"type,omitempty"`
|
||||
// The attributes that are applicable for the specific Auth Method type.
|
||||
Attributes *_struct.Struct `protobuf:"bytes,100,opt,name=attributes,proto3" json:"attributes,omitempty"`
|
||||
Attributes *structpb.Struct `protobuf:"bytes,100,opt,name=attributes,proto3" json:"attributes,omitempty"`
|
||||
// Output only. Whether this auth method is the primary auth method for it's scope.
|
||||
// To change this value update the primary_auth_method_id field on the scope.
|
||||
IsPrimary bool `protobuf:"varint,110,opt,name=is_primary,proto3" json:"is_primary,omitempty"`
|
||||
// Output only. The available actions on this resource for this user.
|
||||
AuthorizedActions []string `protobuf:"bytes,300,rep,name=authorized_actions,proto3" json:"authorized_actions,omitempty"`
|
||||
// Output only. The authorized actions for the scope's collections.
|
||||
AuthorizedCollectionActions map[string]*_struct.ListValue `protobuf:"bytes,310,rep,name=authorized_collection_actions,proto3" json:"authorized_collection_actions,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
||||
AuthorizedCollectionActions map[string]*structpb.ListValue `protobuf:"bytes,310,rep,name=authorized_collection_actions,proto3" json:"authorized_collection_actions,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
||||
}
|
||||
|
||||
func (x *AuthMethod) Reset() {
|
||||
@@ -114,28 +114,28 @@ func (x *AuthMethod) GetScope() *scopes.ScopeInfo {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *AuthMethod) GetName() *wrappers.StringValue {
|
||||
func (x *AuthMethod) GetName() *wrapperspb.StringValue {
|
||||
if x != nil {
|
||||
return x.Name
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *AuthMethod) GetDescription() *wrappers.StringValue {
|
||||
func (x *AuthMethod) GetDescription() *wrapperspb.StringValue {
|
||||
if x != nil {
|
||||
return x.Description
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *AuthMethod) GetCreatedTime() *timestamp.Timestamp {
|
||||
func (x *AuthMethod) GetCreatedTime() *timestamppb.Timestamp {
|
||||
if x != nil {
|
||||
return x.CreatedTime
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *AuthMethod) GetUpdatedTime() *timestamp.Timestamp {
|
||||
func (x *AuthMethod) GetUpdatedTime() *timestamppb.Timestamp {
|
||||
if x != nil {
|
||||
return x.UpdatedTime
|
||||
}
|
||||
@@ -156,7 +156,7 @@ func (x *AuthMethod) GetType() string {
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *AuthMethod) GetAttributes() *_struct.Struct {
|
||||
func (x *AuthMethod) GetAttributes() *structpb.Struct {
|
||||
if x != nil {
|
||||
return x.Attributes
|
||||
}
|
||||
@@ -177,7 +177,7 @@ func (x *AuthMethod) GetAuthorizedActions() []string {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *AuthMethod) GetAuthorizedCollectionActions() map[string]*_struct.ListValue {
|
||||
func (x *AuthMethod) GetAuthorizedCollectionActions() map[string]*structpb.ListValue {
|
||||
if x != nil {
|
||||
return x.AuthorizedCollectionActions
|
||||
}
|
||||
@@ -255,11 +255,11 @@ type OidcAuthMethodAttributes struct {
|
||||
// strip off ".well-known/openid-configuration" if present. This will be
|
||||
// used for configuration discovery as well as for validation of the "iss"
|
||||
// claim.
|
||||
Issuer *wrappers.StringValue `protobuf:"bytes,20,opt,name=issuer,proto3" json:"issuer,omitempty"`
|
||||
Issuer *wrapperspb.StringValue `protobuf:"bytes,20,opt,name=issuer,proto3" json:"issuer,omitempty"`
|
||||
// An OAuth 2.0 Client Identifier valid at the Authorization Server.
|
||||
ClientId *wrappers.StringValue `protobuf:"bytes,30,opt,name=client_id,proto3" json:"client_id,omitempty"`
|
||||
ClientId *wrapperspb.StringValue `protobuf:"bytes,30,opt,name=client_id,proto3" json:"client_id,omitempty"`
|
||||
// Input only. The client's secret.
|
||||
ClientSecret *wrappers.StringValue `protobuf:"bytes,40,opt,name=client_secret,proto3" json:"client_secret,omitempty"`
|
||||
ClientSecret *wrapperspb.StringValue `protobuf:"bytes,40,opt,name=client_secret,proto3" json:"client_secret,omitempty"`
|
||||
// Output only. The HMAC'd value of the clients secret to indicate whether
|
||||
// the client secret has changed.
|
||||
ClientSecretHmac string `protobuf:"bytes,50,opt,name=client_secret_hmac,proto3" json:"client_secret_hmac,omitempty"`
|
||||
@@ -267,13 +267,13 @@ type OidcAuthMethodAttributes struct {
|
||||
// a maximum acceptable time in seconds since the user's last authentication
|
||||
// before requiring the user to reauthenticate. 0 indicates an immediate
|
||||
// need to reauthenticate.
|
||||
MaxAge *wrappers.UInt32Value `protobuf:"bytes,60,opt,name=max_age,proto3" json:"max_age,omitempty"`
|
||||
MaxAge *wrapperspb.UInt32Value `protobuf:"bytes,60,opt,name=max_age,proto3" json:"max_age,omitempty"`
|
||||
// The signing algorithms allowed for the auth method.
|
||||
SigningAlgorithms []string `protobuf:"bytes,70,rep,name=signing_algorithms,proto3" json:"signing_algorithms,omitempty"`
|
||||
// The prefix that should be used for any URLs needed during the
|
||||
// authentication flow. This includes the callback URL, the token retrieval
|
||||
// URL, and the redirection URL used by the OIDC Authorization Server.
|
||||
ApiUrlPrefix *wrappers.StringValue `protobuf:"bytes,80,opt,name=api_url_prefix,proto3" json:"api_url_prefix,omitempty"`
|
||||
ApiUrlPrefix *wrapperspb.StringValue `protobuf:"bytes,80,opt,name=api_url_prefix,proto3" json:"api_url_prefix,omitempty"`
|
||||
// Output only. The callback URL that should be configured on the
|
||||
// Authorization Server to use during the authentication flow.
|
||||
CallbackUrl string `protobuf:"bytes,90,opt,name=callback_url,proto3" json:"callback_url,omitempty"`
|
||||
@@ -339,21 +339,21 @@ func (x *OidcAuthMethodAttributes) GetState() string {
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *OidcAuthMethodAttributes) GetIssuer() *wrappers.StringValue {
|
||||
func (x *OidcAuthMethodAttributes) GetIssuer() *wrapperspb.StringValue {
|
||||
if x != nil {
|
||||
return x.Issuer
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *OidcAuthMethodAttributes) GetClientId() *wrappers.StringValue {
|
||||
func (x *OidcAuthMethodAttributes) GetClientId() *wrapperspb.StringValue {
|
||||
if x != nil {
|
||||
return x.ClientId
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *OidcAuthMethodAttributes) GetClientSecret() *wrappers.StringValue {
|
||||
func (x *OidcAuthMethodAttributes) GetClientSecret() *wrapperspb.StringValue {
|
||||
if x != nil {
|
||||
return x.ClientSecret
|
||||
}
|
||||
@@ -367,7 +367,7 @@ func (x *OidcAuthMethodAttributes) GetClientSecretHmac() string {
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *OidcAuthMethodAttributes) GetMaxAge() *wrappers.UInt32Value {
|
||||
func (x *OidcAuthMethodAttributes) GetMaxAge() *wrapperspb.UInt32Value {
|
||||
if x != nil {
|
||||
return x.MaxAge
|
||||
}
|
||||
@@ -381,7 +381,7 @@ func (x *OidcAuthMethodAttributes) GetSigningAlgorithms() []string {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *OidcAuthMethodAttributes) GetApiUrlPrefix() *wrappers.StringValue {
|
||||
func (x *OidcAuthMethodAttributes) GetApiUrlPrefix() *wrapperspb.StringValue {
|
||||
if x != nil {
|
||||
return x.ApiUrlPrefix
|
||||
}
|
||||
@@ -935,13 +935,13 @@ var file_controller_api_resources_authmethods_v1_auth_method_proto_goTypes = []i
|
||||
(*OidcAuthMethodAuthenticateCallbackResponse)(nil), // 5: controller.api.resources.authmethods.v1.OidcAuthMethodAuthenticateCallbackResponse
|
||||
(*OidcAuthMethodAuthenticateTokenRequest)(nil), // 6: controller.api.resources.authmethods.v1.OidcAuthMethodAuthenticateTokenRequest
|
||||
(*OidcAuthMethodAuthenticateTokenResponse)(nil), // 7: controller.api.resources.authmethods.v1.OidcAuthMethodAuthenticateTokenResponse
|
||||
nil, // 8: controller.api.resources.authmethods.v1.AuthMethod.AuthorizedCollectionActionsEntry
|
||||
(*scopes.ScopeInfo)(nil), // 9: controller.api.resources.scopes.v1.ScopeInfo
|
||||
(*wrappers.StringValue)(nil), // 10: google.protobuf.StringValue
|
||||
(*timestamp.Timestamp)(nil), // 11: google.protobuf.Timestamp
|
||||
(*_struct.Struct)(nil), // 12: google.protobuf.Struct
|
||||
(*wrappers.UInt32Value)(nil), // 13: google.protobuf.UInt32Value
|
||||
(*_struct.ListValue)(nil), // 14: google.protobuf.ListValue
|
||||
nil, // 8: controller.api.resources.authmethods.v1.AuthMethod.AuthorizedCollectionActionsEntry
|
||||
(*scopes.ScopeInfo)(nil), // 9: controller.api.resources.scopes.v1.ScopeInfo
|
||||
(*wrapperspb.StringValue)(nil), // 10: google.protobuf.StringValue
|
||||
(*timestamppb.Timestamp)(nil), // 11: google.protobuf.Timestamp
|
||||
(*structpb.Struct)(nil), // 12: google.protobuf.Struct
|
||||
(*wrapperspb.UInt32Value)(nil), // 13: google.protobuf.UInt32Value
|
||||
(*structpb.ListValue)(nil), // 14: google.protobuf.ListValue
|
||||
}
|
||||
var file_controller_api_resources_authmethods_v1_auth_method_proto_depIdxs = []int32{
|
||||
9, // 0: controller.api.resources.authmethods.v1.AuthMethod.scope:type_name -> controller.api.resources.scopes.v1.ScopeInfo
|
||||
|
||||
Reference in new issue
Block a user