oauth2

package
v0.0.0-...-3b69245 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 27, 2024 License: AGPL-3.0 Imports: 8 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ProviderType_name = map[int32]string{
		0:  "GOOGLE",
		1:  "FACEBOOK",
		2:  "GITHUB",
		3:  "MICROSOFT",
		4:  "TWITTER",
		5:  "APPLE",
		6:  "GITLAB",
		7:  "DISCORD",
		8:  "OIDC",
		9:  "OIDC2",
		10: "OIDC3",
		11: "INSTAGRAM",
	}
	ProviderType_value = map[string]int32{
		"GOOGLE":    0,
		"FACEBOOK":  1,
		"GITHUB":    2,
		"MICROSOFT": 3,
		"TWITTER":   4,
		"APPLE":     5,
		"GITLAB":    6,
		"DISCORD":   7,
		"OIDC":      8,
		"OIDC2":     9,
		"OIDC3":     10,
		"INSTAGRAM": 11,
	}
)

Enum value maps for ProviderType.

View Source
var (
	AuthenticateResponse_Status_name = map[int32]string{
		0: "OK",
		1: "PROVIDER_DISABLED",
		2: "ERROR_WHILE_RETRIEVING_AUTH_TOKEN",
		3: "ERROR_WHILE_FETCHING_USER_DETAILS",
		4: "UNAUTHENTICATED",
	}
	AuthenticateResponse_Status_value = map[string]int32{
		"OK":                                0,
		"PROVIDER_DISABLED":                 1,
		"ERROR_WHILE_RETRIEVING_AUTH_TOKEN": 2,
		"ERROR_WHILE_FETCHING_USER_DETAILS": 3,
		"UNAUTHENTICATED":                   4,
	}
)

Enum value maps for AuthenticateResponse_Status.

View Source
var (
	RegisterProviderForIdentityResponse_Status_name = map[int32]string{
		0: "OK",
		1: "PROVIDER_DISABLED",
		2: "ERROR_WHILE_RETRIEVING_AUTH_TOKEN",
		3: "ERROR_WHILE_FETCHING_USER_DETAILS",
		4: "ALREADY_REGISTERED",
	}
	RegisterProviderForIdentityResponse_Status_value = map[string]int32{
		"OK":                                0,
		"PROVIDER_DISABLED":                 1,
		"ERROR_WHILE_RETRIEVING_AUTH_TOKEN": 2,
		"ERROR_WHILE_FETCHING_USER_DETAILS": 3,
		"ALREADY_REGISTERED":                4,
	}
)

Enum value maps for RegisterProviderForIdentityResponse_Status.

View Source
var File_oauth2_proto protoreflect.FileDescriptor
View Source
var IAMAuthenticationOAuth2ConfigService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "native_iam_authentication_oauth2.IAMAuthenticationOAuth2ConfigService",
	HandlerType: (*IAMAuthenticationOAuth2ConfigServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "UpdateProviderConfig",
			Handler:    _IAMAuthenticationOAuth2ConfigService_UpdateProviderConfig_Handler,
		},
		{
			MethodName: "ListProviderConfigs",
			Handler:    _IAMAuthenticationOAuth2ConfigService_ListProviderConfigs_Handler,
		},
		{
			MethodName: "GetAvailableProviders",
			Handler:    _IAMAuthenticationOAuth2ConfigService_GetAvailableProviders_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "oauth2.proto",
}

IAMAuthenticationOAuth2ConfigService_ServiceDesc is the grpc.ServiceDesc for IAMAuthenticationOAuth2ConfigService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var IAMAuthenticationOAuth2Service_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "native_iam_authentication_oauth2.IAMAuthenticationOAuth2Service",
	HandlerType: (*IAMAuthenticationOAuth2ServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Authenticate",
			Handler:    _IAMAuthenticationOAuth2Service_Authenticate_Handler,
		},
		{
			MethodName: "RegisterProviderForIdentity",
			Handler:    _IAMAuthenticationOAuth2Service_RegisterProviderForIdentity_Handler,
		},
		{
			MethodName: "ForgetIdentityProvider",
			Handler:    _IAMAuthenticationOAuth2Service_ForgetIdentityProvider_Handler,
		},
		{
			MethodName: "GetRegisteredIdentityProviders",
			Handler:    _IAMAuthenticationOAuth2Service_GetRegisteredIdentityProviders_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "oauth2.proto",
}

IAMAuthenticationOAuth2Service_ServiceDesc is the grpc.ServiceDesc for IAMAuthenticationOAuth2Service service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterIAMAuthenticationOAuth2ServiceServer

func RegisterIAMAuthenticationOAuth2ServiceServer(s grpc.ServiceRegistrar, srv IAMAuthenticationOAuth2ServiceServer)

Types

type AuthenticateRequest

type AuthenticateRequest struct {
	Namespace    string       `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
	Provider     ProviderType `protobuf:"varint,2,opt,name=provider,proto3,enum=native_iam_authentication_oauth2.ProviderType" json:"provider,omitempty"`
	Code         string       `protobuf:"bytes,3,opt,name=code,proto3" json:"code,omitempty"`
	CodeVerifier string       `protobuf:"bytes,4,opt,name=codeVerifier,proto3" json:"codeVerifier,omitempty"`
	RedirectUrl  string       `protobuf:"bytes,5,opt,name=redirectUrl,proto3" json:"redirectUrl,omitempty"`
	// contains filtered or unexported fields
}

func (*AuthenticateRequest) Descriptor deprecated

func (*AuthenticateRequest) Descriptor() ([]byte, []int)

Deprecated: Use AuthenticateRequest.ProtoReflect.Descriptor instead.

func (*AuthenticateRequest) GetCode

func (x *AuthenticateRequest) GetCode() string

func (*AuthenticateRequest) GetCodeVerifier

func (x *AuthenticateRequest) GetCodeVerifier() string

func (*AuthenticateRequest) GetNamespace

func (x *AuthenticateRequest) GetNamespace() string

func (*AuthenticateRequest) GetProvider

func (x *AuthenticateRequest) GetProvider() ProviderType

func (*AuthenticateRequest) GetRedirectUrl

func (x *AuthenticateRequest) GetRedirectUrl() string

func (*AuthenticateRequest) ProtoMessage

func (*AuthenticateRequest) ProtoMessage()

func (*AuthenticateRequest) ProtoReflect

func (x *AuthenticateRequest) ProtoReflect() protoreflect.Message

func (*AuthenticateRequest) Reset

func (x *AuthenticateRequest) Reset()

func (*AuthenticateRequest) String

func (x *AuthenticateRequest) String() string

type AuthenticateResponse

type AuthenticateResponse struct {
	Status      AuthenticateResponse_Status `` /* 132-byte string literal not displayed */
	Identity    string                      `protobuf:"bytes,2,opt,name=identity,proto3" json:"identity,omitempty"`
	UserDetails *ProviderUserDetails        `protobuf:"bytes,3,opt,name=userDetails,proto3" json:"userDetails,omitempty"`
	// contains filtered or unexported fields
}

func (*AuthenticateResponse) Descriptor deprecated

func (*AuthenticateResponse) Descriptor() ([]byte, []int)

Deprecated: Use AuthenticateResponse.ProtoReflect.Descriptor instead.

func (*AuthenticateResponse) GetIdentity

func (x *AuthenticateResponse) GetIdentity() string

func (*AuthenticateResponse) GetStatus

func (*AuthenticateResponse) GetUserDetails

func (x *AuthenticateResponse) GetUserDetails() *ProviderUserDetails

func (*AuthenticateResponse) ProtoMessage

func (*AuthenticateResponse) ProtoMessage()

func (*AuthenticateResponse) ProtoReflect

func (x *AuthenticateResponse) ProtoReflect() protoreflect.Message

func (*AuthenticateResponse) Reset

func (x *AuthenticateResponse) Reset()

func (*AuthenticateResponse) String

func (x *AuthenticateResponse) String() string

type AuthenticateResponse_Status

type AuthenticateResponse_Status int32
const (
	AuthenticateResponse_OK                                AuthenticateResponse_Status = 0
	AuthenticateResponse_PROVIDER_DISABLED                 AuthenticateResponse_Status = 1
	AuthenticateResponse_ERROR_WHILE_RETRIEVING_AUTH_TOKEN AuthenticateResponse_Status = 2
	AuthenticateResponse_ERROR_WHILE_FETCHING_USER_DETAILS AuthenticateResponse_Status = 3
	// Provider is OK, but cant find registered identity
	AuthenticateResponse_UNAUTHENTICATED AuthenticateResponse_Status = 4
)

func (AuthenticateResponse_Status) Descriptor

func (AuthenticateResponse_Status) Enum

func (AuthenticateResponse_Status) EnumDescriptor deprecated

func (AuthenticateResponse_Status) EnumDescriptor() ([]byte, []int)

Deprecated: Use AuthenticateResponse_Status.Descriptor instead.

func (AuthenticateResponse_Status) Number

func (AuthenticateResponse_Status) String

func (AuthenticateResponse_Status) Type

type ForgetIdentityProviderRequest

type ForgetIdentityProviderRequest struct {
	Namespace string       `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
	Identity  string       `protobuf:"bytes,2,opt,name=identity,proto3" json:"identity,omitempty"`
	Provider  ProviderType `protobuf:"varint,3,opt,name=provider,proto3,enum=native_iam_authentication_oauth2.ProviderType" json:"provider,omitempty"`
	// contains filtered or unexported fields
}

func (*ForgetIdentityProviderRequest) Descriptor deprecated

func (*ForgetIdentityProviderRequest) Descriptor() ([]byte, []int)

Deprecated: Use ForgetIdentityProviderRequest.ProtoReflect.Descriptor instead.

func (*ForgetIdentityProviderRequest) GetIdentity

func (x *ForgetIdentityProviderRequest) GetIdentity() string

func (*ForgetIdentityProviderRequest) GetNamespace

func (x *ForgetIdentityProviderRequest) GetNamespace() string

func (*ForgetIdentityProviderRequest) GetProvider

func (*ForgetIdentityProviderRequest) ProtoMessage

func (*ForgetIdentityProviderRequest) ProtoMessage()

func (*ForgetIdentityProviderRequest) ProtoReflect

func (*ForgetIdentityProviderRequest) Reset

func (x *ForgetIdentityProviderRequest) Reset()

func (*ForgetIdentityProviderRequest) String

type ForgetIdentityProviderResponse

type ForgetIdentityProviderResponse struct {
	// contains filtered or unexported fields
}

func (*ForgetIdentityProviderResponse) Descriptor deprecated

func (*ForgetIdentityProviderResponse) Descriptor() ([]byte, []int)

Deprecated: Use ForgetIdentityProviderResponse.ProtoReflect.Descriptor instead.

func (*ForgetIdentityProviderResponse) ProtoMessage

func (*ForgetIdentityProviderResponse) ProtoMessage()

func (*ForgetIdentityProviderResponse) ProtoReflect

func (*ForgetIdentityProviderResponse) Reset

func (x *ForgetIdentityProviderResponse) Reset()

func (*ForgetIdentityProviderResponse) String

type GetAvailableProvidersRequest

type GetAvailableProvidersRequest struct {
	Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
	// contains filtered or unexported fields
}

func (*GetAvailableProvidersRequest) Descriptor deprecated

func (*GetAvailableProvidersRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetAvailableProvidersRequest.ProtoReflect.Descriptor instead.

func (*GetAvailableProvidersRequest) GetNamespace

func (x *GetAvailableProvidersRequest) GetNamespace() string

func (*GetAvailableProvidersRequest) ProtoMessage

func (*GetAvailableProvidersRequest) ProtoMessage()

func (*GetAvailableProvidersRequest) ProtoReflect

func (*GetAvailableProvidersRequest) Reset

func (x *GetAvailableProvidersRequest) Reset()

func (*GetAvailableProvidersRequest) String

type GetAvailableProvidersResponse

type GetAvailableProvidersResponse struct {
	Providers []ProviderType `` /* 130-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*GetAvailableProvidersResponse) Descriptor deprecated

func (*GetAvailableProvidersResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetAvailableProvidersResponse.ProtoReflect.Descriptor instead.

func (*GetAvailableProvidersResponse) GetProviders

func (x *GetAvailableProvidersResponse) GetProviders() []ProviderType

func (*GetAvailableProvidersResponse) ProtoMessage

func (*GetAvailableProvidersResponse) ProtoMessage()

func (*GetAvailableProvidersResponse) ProtoReflect

func (*GetAvailableProvidersResponse) Reset

func (x *GetAvailableProvidersResponse) Reset()

func (*GetAvailableProvidersResponse) String

type GetRegisteredIdentityProvidersRequest

type GetRegisteredIdentityProvidersRequest struct {
	Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
	Identity  string `protobuf:"bytes,2,opt,name=identity,proto3" json:"identity,omitempty"`
	// contains filtered or unexported fields
}

func (*GetRegisteredIdentityProvidersRequest) Descriptor deprecated

func (*GetRegisteredIdentityProvidersRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetRegisteredIdentityProvidersRequest.ProtoReflect.Descriptor instead.

func (*GetRegisteredIdentityProvidersRequest) GetIdentity

func (*GetRegisteredIdentityProvidersRequest) GetNamespace

func (*GetRegisteredIdentityProvidersRequest) ProtoMessage

func (*GetRegisteredIdentityProvidersRequest) ProtoMessage()

func (*GetRegisteredIdentityProvidersRequest) ProtoReflect

func (*GetRegisteredIdentityProvidersRequest) Reset

func (*GetRegisteredIdentityProvidersRequest) String

type GetRegisteredIdentityProvidersResponse

type GetRegisteredIdentityProvidersResponse struct {
	Providers []*GetRegisteredIdentityProvidersResponse_RegisteredProvider `protobuf:"bytes,1,rep,name=providers,proto3" json:"providers,omitempty"`
	// contains filtered or unexported fields
}

func (*GetRegisteredIdentityProvidersResponse) Descriptor deprecated

func (*GetRegisteredIdentityProvidersResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetRegisteredIdentityProvidersResponse.ProtoReflect.Descriptor instead.

func (*GetRegisteredIdentityProvidersResponse) GetProviders

func (*GetRegisteredIdentityProvidersResponse) ProtoMessage

func (*GetRegisteredIdentityProvidersResponse) ProtoReflect

func (*GetRegisteredIdentityProvidersResponse) Reset

func (*GetRegisteredIdentityProvidersResponse) String

type GetRegisteredIdentityProvidersResponse_RegisteredProvider

type GetRegisteredIdentityProvidersResponse_RegisteredProvider struct {
	Provider    ProviderType         `protobuf:"varint,1,opt,name=provider,proto3,enum=native_iam_authentication_oauth2.ProviderType" json:"provider,omitempty"`
	UserDetails *ProviderUserDetails `protobuf:"bytes,2,opt,name=userDetails,proto3" json:"userDetails,omitempty"`
	// contains filtered or unexported fields
}

func (*GetRegisteredIdentityProvidersResponse_RegisteredProvider) Descriptor deprecated

Deprecated: Use GetRegisteredIdentityProvidersResponse_RegisteredProvider.ProtoReflect.Descriptor instead.

func (*GetRegisteredIdentityProvidersResponse_RegisteredProvider) GetProvider

func (*GetRegisteredIdentityProvidersResponse_RegisteredProvider) GetUserDetails

func (*GetRegisteredIdentityProvidersResponse_RegisteredProvider) ProtoMessage

func (*GetRegisteredIdentityProvidersResponse_RegisteredProvider) ProtoReflect

func (*GetRegisteredIdentityProvidersResponse_RegisteredProvider) Reset

func (*GetRegisteredIdentityProvidersResponse_RegisteredProvider) String

type IAMAuthenticationOAuth2ConfigServiceClient

type IAMAuthenticationOAuth2ConfigServiceClient interface {
	// Updates OAuth2 provider configuration. If configuration does not exist, then it is created.
	UpdateProviderConfig(ctx context.Context, in *UpdateProviderConfigRequest, opts ...grpc.CallOption) (*UpdateProviderConfigResponse, error)
	// Lists all OAuth2 provider configurations
	ListProviderConfigs(ctx context.Context, in *ListProviderConfigsRequest, opts ...grpc.CallOption) (*ListProviderConfigsResponse, error)
	// Lists all available (configured and enabled) OAuth2 providers
	GetAvailableProviders(ctx context.Context, in *GetAvailableProvidersRequest, opts ...grpc.CallOption) (*GetAvailableProvidersResponse, error)
}

IAMAuthenticationOAuth2ConfigServiceClient is the client API for IAMAuthenticationOAuth2ConfigService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type IAMAuthenticationOAuth2ConfigServiceServer

type IAMAuthenticationOAuth2ConfigServiceServer interface {
	// Updates OAuth2 provider configuration. If configuration does not exist, then it is created.
	UpdateProviderConfig(context.Context, *UpdateProviderConfigRequest) (*UpdateProviderConfigResponse, error)
	// Lists all OAuth2 provider configurations
	ListProviderConfigs(context.Context, *ListProviderConfigsRequest) (*ListProviderConfigsResponse, error)
	// Lists all available (configured and enabled) OAuth2 providers
	GetAvailableProviders(context.Context, *GetAvailableProvidersRequest) (*GetAvailableProvidersResponse, error)
	// contains filtered or unexported methods
}

IAMAuthenticationOAuth2ConfigServiceServer is the server API for IAMAuthenticationOAuth2ConfigService service. All implementations must embed UnimplementedIAMAuthenticationOAuth2ConfigServiceServer for forward compatibility

type IAMAuthenticationOAuth2ServiceClient

type IAMAuthenticationOAuth2ServiceClient interface {
	// Authenticates identity using OAuth2 provider
	Authenticate(ctx context.Context, in *AuthenticateRequest, opts ...grpc.CallOption) (*AuthenticateResponse, error)
	// Registers identity using OAuth2 provider. After registration, identity can be authenticated using Authenticate method with this provider.
	RegisterProviderForIdentity(ctx context.Context, in *RegisterProviderForIdentityRequest, opts ...grpc.CallOption) (*RegisterProviderForIdentityResponse, error)
	// Forgets identity provider. After forgetting, identity can not be authenticated using Authenticate method with this provider.
	ForgetIdentityProvider(ctx context.Context, in *ForgetIdentityProviderRequest, opts ...grpc.CallOption) (*ForgetIdentityProviderResponse, error)
	// Lists all registered OAuth2 providers for identity
	GetRegisteredIdentityProviders(ctx context.Context, in *GetRegisteredIdentityProvidersRequest, opts ...grpc.CallOption) (*GetRegisteredIdentityProvidersResponse, error)
}

IAMAuthenticationOAuth2ServiceClient is the client API for IAMAuthenticationOAuth2Service service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type IAMAuthenticationOAuth2ServiceServer

type IAMAuthenticationOAuth2ServiceServer interface {
	// Authenticates identity using OAuth2 provider
	Authenticate(context.Context, *AuthenticateRequest) (*AuthenticateResponse, error)
	// Registers identity using OAuth2 provider. After registration, identity can be authenticated using Authenticate method with this provider.
	RegisterProviderForIdentity(context.Context, *RegisterProviderForIdentityRequest) (*RegisterProviderForIdentityResponse, error)
	// Forgets identity provider. After forgetting, identity can not be authenticated using Authenticate method with this provider.
	ForgetIdentityProvider(context.Context, *ForgetIdentityProviderRequest) (*ForgetIdentityProviderResponse, error)
	// Lists all registered OAuth2 providers for identity
	GetRegisteredIdentityProviders(context.Context, *GetRegisteredIdentityProvidersRequest) (*GetRegisteredIdentityProvidersResponse, error)
	// contains filtered or unexported methods
}

IAMAuthenticationOAuth2ServiceServer is the server API for IAMAuthenticationOAuth2Service service. All implementations must embed UnimplementedIAMAuthenticationOAuth2ServiceServer for forward compatibility

type ListProviderConfigsRequest

type ListProviderConfigsRequest struct {
	Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
	// contains filtered or unexported fields
}

func (*ListProviderConfigsRequest) Descriptor deprecated

func (*ListProviderConfigsRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListProviderConfigsRequest.ProtoReflect.Descriptor instead.

func (*ListProviderConfigsRequest) GetNamespace

func (x *ListProviderConfigsRequest) GetNamespace() string

func (*ListProviderConfigsRequest) ProtoMessage

func (*ListProviderConfigsRequest) ProtoMessage()

func (*ListProviderConfigsRequest) ProtoReflect

func (*ListProviderConfigsRequest) Reset

func (x *ListProviderConfigsRequest) Reset()

func (*ListProviderConfigsRequest) String

func (x *ListProviderConfigsRequest) String() string

type ListProviderConfigsResponse

type ListProviderConfigsResponse struct {
	Configs []*ProviderConfig `protobuf:"bytes,1,rep,name=configs,proto3" json:"configs,omitempty"`
	// contains filtered or unexported fields
}

func (*ListProviderConfigsResponse) Descriptor deprecated

func (*ListProviderConfigsResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListProviderConfigsResponse.ProtoReflect.Descriptor instead.

func (*ListProviderConfigsResponse) GetConfigs

func (x *ListProviderConfigsResponse) GetConfigs() []*ProviderConfig

func (*ListProviderConfigsResponse) ProtoMessage

func (*ListProviderConfigsResponse) ProtoMessage()

func (*ListProviderConfigsResponse) ProtoReflect

func (*ListProviderConfigsResponse) Reset

func (x *ListProviderConfigsResponse) Reset()

func (*ListProviderConfigsResponse) String

func (x *ListProviderConfigsResponse) String() string

type ProviderConfig

type ProviderConfig struct {
	Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
	// The OAuth2 provider type
	Type ProviderType `protobuf:"varint,2,opt,name=type,proto3,enum=native_iam_authentication_oauth2.ProviderType" json:"type,omitempty"`
	// If provider is enabled or not. If provider is disable, then it is not possible to use it for authentication
	Enabled bool `protobuf:"varint,3,opt,name=enabled,proto3" json:"enabled,omitempty"`
	// The OAuth2 client id
	ClientId string `protobuf:"bytes,4,opt,name=clientId,proto3" json:"clientId,omitempty"`
	// The OAuth2 client secret. It is stored as an ecrypted value. The encryption is done by system_vault service.
	ClientSecret string `protobuf:"bytes,5,opt,name=clientSecret,proto3" json:"clientSecret,omitempty"`
	// The OAuth2 authorization url
	AuthUrl string `protobuf:"bytes,6,opt,name=authUrl,proto3" json:"authUrl,omitempty"`
	// The OAuth2 token url
	TokenUrl string `protobuf:"bytes,7,opt,name=tokenUrl,proto3" json:"tokenUrl,omitempty"`
	// The OAuth2 user api url
	UserApiUrl string `protobuf:"bytes,8,opt,name=userApiUrl,proto3" json:"userApiUrl,omitempty"`
	// contains filtered or unexported fields
}

func (*ProviderConfig) Descriptor deprecated

func (*ProviderConfig) Descriptor() ([]byte, []int)

Deprecated: Use ProviderConfig.ProtoReflect.Descriptor instead.

func (*ProviderConfig) GetAuthUrl

func (x *ProviderConfig) GetAuthUrl() string

func (*ProviderConfig) GetClientId

func (x *ProviderConfig) GetClientId() string

func (*ProviderConfig) GetClientSecret

func (x *ProviderConfig) GetClientSecret() string

func (*ProviderConfig) GetEnabled

func (x *ProviderConfig) GetEnabled() bool

func (*ProviderConfig) GetNamespace

func (x *ProviderConfig) GetNamespace() string

func (*ProviderConfig) GetTokenUrl

func (x *ProviderConfig) GetTokenUrl() string

func (*ProviderConfig) GetType

func (x *ProviderConfig) GetType() ProviderType

func (*ProviderConfig) GetUserApiUrl

func (x *ProviderConfig) GetUserApiUrl() string

func (*ProviderConfig) ProtoMessage

func (*ProviderConfig) ProtoMessage()

func (*ProviderConfig) ProtoReflect

func (x *ProviderConfig) ProtoReflect() protoreflect.Message

func (*ProviderConfig) Reset

func (x *ProviderConfig) Reset()

func (*ProviderConfig) String

func (x *ProviderConfig) String() string

type ProviderType

type ProviderType int32
const (
	ProviderType_GOOGLE    ProviderType = 0
	ProviderType_FACEBOOK  ProviderType = 1
	ProviderType_GITHUB    ProviderType = 2
	ProviderType_MICROSOFT ProviderType = 3
	ProviderType_TWITTER   ProviderType = 4
	ProviderType_APPLE     ProviderType = 5
	ProviderType_GITLAB    ProviderType = 6
	ProviderType_DISCORD   ProviderType = 7
	ProviderType_OIDC      ProviderType = 8
	ProviderType_OIDC2     ProviderType = 9
	ProviderType_OIDC3     ProviderType = 10
	ProviderType_INSTAGRAM ProviderType = 11
)

func (ProviderType) Descriptor

func (ProviderType) Enum

func (x ProviderType) Enum() *ProviderType

func (ProviderType) EnumDescriptor deprecated

func (ProviderType) EnumDescriptor() ([]byte, []int)

Deprecated: Use ProviderType.Descriptor instead.

func (ProviderType) Number

func (ProviderType) String

func (x ProviderType) String() string

func (ProviderType) Type

type ProviderUserDetails

type ProviderUserDetails struct {
	Id        string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Name      string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Username  string `protobuf:"bytes,3,opt,name=username,proto3" json:"username,omitempty"`
	Email     string `protobuf:"bytes,4,opt,name=email,proto3" json:"email,omitempty"`
	AvatarUrl string `protobuf:"bytes,5,opt,name=avatarUrl,proto3" json:"avatarUrl,omitempty"`
	// contains filtered or unexported fields
}

func (*ProviderUserDetails) Descriptor deprecated

func (*ProviderUserDetails) Descriptor() ([]byte, []int)

Deprecated: Use ProviderUserDetails.ProtoReflect.Descriptor instead.

func (*ProviderUserDetails) GetAvatarUrl

func (x *ProviderUserDetails) GetAvatarUrl() string

func (*ProviderUserDetails) GetEmail

func (x *ProviderUserDetails) GetEmail() string

func (*ProviderUserDetails) GetId

func (x *ProviderUserDetails) GetId() string

func (*ProviderUserDetails) GetName

func (x *ProviderUserDetails) GetName() string

func (*ProviderUserDetails) GetUsername

func (x *ProviderUserDetails) GetUsername() string

func (*ProviderUserDetails) ProtoMessage

func (*ProviderUserDetails) ProtoMessage()

func (*ProviderUserDetails) ProtoReflect

func (x *ProviderUserDetails) ProtoReflect() protoreflect.Message

func (*ProviderUserDetails) Reset

func (x *ProviderUserDetails) Reset()

func (*ProviderUserDetails) String

func (x *ProviderUserDetails) String() string

type RegisterProviderForIdentityRequest

type RegisterProviderForIdentityRequest struct {
	Namespace    string       `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
	Identity     string       `protobuf:"bytes,2,opt,name=identity,proto3" json:"identity,omitempty"`
	Provider     ProviderType `protobuf:"varint,3,opt,name=provider,proto3,enum=native_iam_authentication_oauth2.ProviderType" json:"provider,omitempty"`
	Code         string       `protobuf:"bytes,4,opt,name=code,proto3" json:"code,omitempty"`
	CodeVerifier string       `protobuf:"bytes,5,opt,name=codeVerifier,proto3" json:"codeVerifier,omitempty"`
	RedirectUrl  string       `protobuf:"bytes,6,opt,name=redirectUrl,proto3" json:"redirectUrl,omitempty"`
	// contains filtered or unexported fields
}

func (*RegisterProviderForIdentityRequest) Descriptor deprecated

func (*RegisterProviderForIdentityRequest) Descriptor() ([]byte, []int)

Deprecated: Use RegisterProviderForIdentityRequest.ProtoReflect.Descriptor instead.

func (*RegisterProviderForIdentityRequest) GetCode

func (*RegisterProviderForIdentityRequest) GetCodeVerifier

func (x *RegisterProviderForIdentityRequest) GetCodeVerifier() string

func (*RegisterProviderForIdentityRequest) GetIdentity

func (x *RegisterProviderForIdentityRequest) GetIdentity() string

func (*RegisterProviderForIdentityRequest) GetNamespace

func (x *RegisterProviderForIdentityRequest) GetNamespace() string

func (*RegisterProviderForIdentityRequest) GetProvider

func (*RegisterProviderForIdentityRequest) GetRedirectUrl

func (x *RegisterProviderForIdentityRequest) GetRedirectUrl() string

func (*RegisterProviderForIdentityRequest) ProtoMessage

func (*RegisterProviderForIdentityRequest) ProtoMessage()

func (*RegisterProviderForIdentityRequest) ProtoReflect

func (*RegisterProviderForIdentityRequest) Reset

func (*RegisterProviderForIdentityRequest) String

type RegisterProviderForIdentityResponse

type RegisterProviderForIdentityResponse struct {
	Status      RegisterProviderForIdentityResponse_Status `` /* 147-byte string literal not displayed */
	UserDetails *ProviderUserDetails                       `protobuf:"bytes,3,opt,name=userDetails,proto3" json:"userDetails,omitempty"`
	// contains filtered or unexported fields
}

func (*RegisterProviderForIdentityResponse) Descriptor deprecated

func (*RegisterProviderForIdentityResponse) Descriptor() ([]byte, []int)

Deprecated: Use RegisterProviderForIdentityResponse.ProtoReflect.Descriptor instead.

func (*RegisterProviderForIdentityResponse) GetStatus

func (*RegisterProviderForIdentityResponse) GetUserDetails

func (*RegisterProviderForIdentityResponse) ProtoMessage

func (*RegisterProviderForIdentityResponse) ProtoMessage()

func (*RegisterProviderForIdentityResponse) ProtoReflect

func (*RegisterProviderForIdentityResponse) Reset

func (*RegisterProviderForIdentityResponse) String

type RegisterProviderForIdentityResponse_Status

type RegisterProviderForIdentityResponse_Status int32
const (
	RegisterProviderForIdentityResponse_OK                                RegisterProviderForIdentityResponse_Status = 0
	RegisterProviderForIdentityResponse_PROVIDER_DISABLED                 RegisterProviderForIdentityResponse_Status = 1
	RegisterProviderForIdentityResponse_ERROR_WHILE_RETRIEVING_AUTH_TOKEN RegisterProviderForIdentityResponse_Status = 2
	RegisterProviderForIdentityResponse_ERROR_WHILE_FETCHING_USER_DETAILS RegisterProviderForIdentityResponse_Status = 3
	RegisterProviderForIdentityResponse_ALREADY_REGISTERED                RegisterProviderForIdentityResponse_Status = 4
)

func (RegisterProviderForIdentityResponse_Status) Descriptor

func (RegisterProviderForIdentityResponse_Status) Enum

func (RegisterProviderForIdentityResponse_Status) EnumDescriptor deprecated

func (RegisterProviderForIdentityResponse_Status) EnumDescriptor() ([]byte, []int)

Deprecated: Use RegisterProviderForIdentityResponse_Status.Descriptor instead.

func (RegisterProviderForIdentityResponse_Status) Number

func (RegisterProviderForIdentityResponse_Status) String

func (RegisterProviderForIdentityResponse_Status) Type

type UnimplementedIAMAuthenticationOAuth2ConfigServiceServer

type UnimplementedIAMAuthenticationOAuth2ConfigServiceServer struct {
}

UnimplementedIAMAuthenticationOAuth2ConfigServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedIAMAuthenticationOAuth2ConfigServiceServer) GetAvailableProviders

func (UnimplementedIAMAuthenticationOAuth2ConfigServiceServer) ListProviderConfigs

func (UnimplementedIAMAuthenticationOAuth2ConfigServiceServer) UpdateProviderConfig

type UnimplementedIAMAuthenticationOAuth2ServiceServer

type UnimplementedIAMAuthenticationOAuth2ServiceServer struct {
}

UnimplementedIAMAuthenticationOAuth2ServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedIAMAuthenticationOAuth2ServiceServer) Authenticate

func (UnimplementedIAMAuthenticationOAuth2ServiceServer) ForgetIdentityProvider

type UnsafeIAMAuthenticationOAuth2ConfigServiceServer

type UnsafeIAMAuthenticationOAuth2ConfigServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeIAMAuthenticationOAuth2ConfigServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to IAMAuthenticationOAuth2ConfigServiceServer will result in compilation errors.

type UnsafeIAMAuthenticationOAuth2ServiceServer

type UnsafeIAMAuthenticationOAuth2ServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeIAMAuthenticationOAuth2ServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to IAMAuthenticationOAuth2ServiceServer will result in compilation errors.

type UpdateProviderConfigRequest

type UpdateProviderConfigRequest struct {
	Config *ProviderConfig `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateProviderConfigRequest) Descriptor deprecated

func (*UpdateProviderConfigRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateProviderConfigRequest.ProtoReflect.Descriptor instead.

func (*UpdateProviderConfigRequest) GetConfig

func (*UpdateProviderConfigRequest) ProtoMessage

func (*UpdateProviderConfigRequest) ProtoMessage()

func (*UpdateProviderConfigRequest) ProtoReflect

func (*UpdateProviderConfigRequest) Reset

func (x *UpdateProviderConfigRequest) Reset()

func (*UpdateProviderConfigRequest) String

func (x *UpdateProviderConfigRequest) String() string

type UpdateProviderConfigResponse

type UpdateProviderConfigResponse struct {
	// contains filtered or unexported fields
}

func (*UpdateProviderConfigResponse) Descriptor deprecated

func (*UpdateProviderConfigResponse) Descriptor() ([]byte, []int)

Deprecated: Use UpdateProviderConfigResponse.ProtoReflect.Descriptor instead.

func (*UpdateProviderConfigResponse) ProtoMessage

func (*UpdateProviderConfigResponse) ProtoMessage()

func (*UpdateProviderConfigResponse) ProtoReflect

func (*UpdateProviderConfigResponse) Reset

func (x *UpdateProviderConfigResponse) Reset()

func (*UpdateProviderConfigResponse) String

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL