Documentation ¶
Index ¶
- Variables
- func OauthErrAccessDenied() errors.Error
- func OauthErrInvalidAccessToken() errors.Error
- func OauthErrInvalidClient() errors.Error
- func OauthErrInvalidGrant() errors.Error
- func OauthErrInvalidRequest() errors.Error
- func OauthErrInvalidResetPwd() errors.Error
- func OauthErrInvalidScope() errors.Error
- func OauthErrInvalidUserOrPwd() errors.Error
- func OauthErrServerError() errors.Error
- func OauthErrUnauthorizedClient() errors.Error
- func OauthErrUnknown() errors.Error
- func OauthErrUnsupportedGrantType() errors.Error
- func OauthErrUnsupportedResponseType() errors.Error
- func OauthUnsupportedProviderType() errors.Error
- func RegisterOauthHTTPServer(container *go_restful.Container, srv OauthHTTPServer)
- func RegisterOauthServer(s grpc.ServiceRegistrar, srv OauthServer)
- type AuthenticateResponse
- func (*AuthenticateResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AuthenticateResponse) GetAuthType() string
- func (x *AuthenticateResponse) GetAvatar() string
- func (x *AuthenticateResponse) GetExpiresIn() int64
- func (x *AuthenticateResponse) GetExternalId() string
- func (x *AuthenticateResponse) GetNickName() string
- func (x *AuthenticateResponse) GetTenantId() string
- func (x *AuthenticateResponse) GetUserId() string
- func (x *AuthenticateResponse) GetUsername() string
- func (*AuthenticateResponse) ProtoMessage()
- func (x *AuthenticateResponse) ProtoReflect() protoreflect.Message
- func (x *AuthenticateResponse) Reset()
- func (x *AuthenticateResponse) String() string
- type AuthorizeRequest
- func (*AuthorizeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AuthorizeRequest) GetPassword() string
- func (x *AuthorizeRequest) GetRedirectUri() string
- func (x *AuthorizeRequest) GetResponseType() string
- func (x *AuthorizeRequest) GetState() string
- func (x *AuthorizeRequest) GetTenantId() string
- func (x *AuthorizeRequest) GetUsername() string
- func (*AuthorizeRequest) ProtoMessage()
- func (x *AuthorizeRequest) ProtoReflect() protoreflect.Message
- func (x *AuthorizeRequest) Reset()
- func (x *AuthorizeRequest) String() string
- type AuthorizeResponse
- type Error
- type GetIdentityProviderRequest
- func (*GetIdentityProviderRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetIdentityProviderRequest) GetTenantId() string
- func (*GetIdentityProviderRequest) ProtoMessage()
- func (x *GetIdentityProviderRequest) ProtoReflect() protoreflect.Message
- func (x *GetIdentityProviderRequest) Reset()
- func (x *GetIdentityProviderRequest) String() string
- type GetIdentityProviderResponse
- func (*GetIdentityProviderResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetIdentityProviderResponse) GetConfig() []byte
- func (x *GetIdentityProviderResponse) GetType() string
- func (*GetIdentityProviderResponse) ProtoMessage()
- func (x *GetIdentityProviderResponse) ProtoReflect() protoreflect.Message
- func (x *GetIdentityProviderResponse) Reset()
- func (x *GetIdentityProviderResponse) String() string
- type IdProviderRegisterRequest
- func (*IdProviderRegisterRequest) Descriptor() ([]byte, []int)deprecated
- func (x *IdProviderRegisterRequest) GetBody() *IdProviderRegisterRequestBody
- func (x *IdProviderRegisterRequest) GetTenantId() string
- func (*IdProviderRegisterRequest) ProtoMessage()
- func (x *IdProviderRegisterRequest) ProtoReflect() protoreflect.Message
- func (x *IdProviderRegisterRequest) Reset()
- func (x *IdProviderRegisterRequest) String() string
- type IdProviderRegisterRequestBody
- func (*IdProviderRegisterRequestBody) Descriptor() ([]byte, []int)deprecated
- func (x *IdProviderRegisterRequestBody) GetConfig() []byte
- func (x *IdProviderRegisterRequestBody) GetType() string
- func (*IdProviderRegisterRequestBody) ProtoMessage()
- func (x *IdProviderRegisterRequestBody) ProtoReflect() protoreflect.Message
- func (x *IdProviderRegisterRequestBody) Reset()
- func (x *IdProviderRegisterRequestBody) String() string
- type IdProviderRegisterResponse
- func (*IdProviderRegisterResponse) Descriptor() ([]byte, []int)deprecated
- func (x *IdProviderRegisterResponse) GetRegistered() bool
- func (*IdProviderRegisterResponse) ProtoMessage()
- func (x *IdProviderRegisterResponse) ProtoReflect() protoreflect.Message
- func (x *IdProviderRegisterResponse) Reset()
- func (x *IdProviderRegisterResponse) String() string
- type IdProviderTemplateRequest
- func (*IdProviderTemplateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *IdProviderTemplateRequest) GetType() string
- func (*IdProviderTemplateRequest) ProtoMessage()
- func (x *IdProviderTemplateRequest) ProtoReflect() protoreflect.Message
- func (x *IdProviderTemplateRequest) Reset()
- func (x *IdProviderTemplateRequest) String() string
- type IdProviderTemplateResponse
- func (*IdProviderTemplateResponse) Descriptor() ([]byte, []int)deprecated
- func (x *IdProviderTemplateResponse) GetConfig() []byte
- func (*IdProviderTemplateResponse) ProtoMessage()
- func (x *IdProviderTemplateResponse) ProtoReflect() protoreflect.Message
- func (x *IdProviderTemplateResponse) Reset()
- func (x *IdProviderTemplateResponse) String() string
- type OIDCEndpoint
- func (*OIDCEndpoint) Descriptor() ([]byte, []int)deprecated
- func (x *OIDCEndpoint) GetAuthUrl() string
- func (x *OIDCEndpoint) GetEndSessionUrl() string
- func (x *OIDCEndpoint) GetJwksurl() string
- func (x *OIDCEndpoint) GetTokenUrl() string
- func (x *OIDCEndpoint) GetUserInfoUrl() string
- func (*OIDCEndpoint) ProtoMessage()
- func (x *OIDCEndpoint) ProtoReflect() protoreflect.Message
- func (x *OIDCEndpoint) Reset()
- func (x *OIDCEndpoint) String() string
- type OIDCRegisterBody
- func (*OIDCRegisterBody) Descriptor() ([]byte, []int)deprecated
- func (x *OIDCRegisterBody) GetClientId() string
- func (x *OIDCRegisterBody) GetClientSecret() string
- func (x *OIDCRegisterBody) GetEmailKey() string
- func (x *OIDCRegisterBody) GetEndpoint() *OIDCEndpoint
- func (x *OIDCRegisterBody) GetGetUserInfo() bool
- func (x *OIDCRegisterBody) GetInsecureSkipVerify() bool
- func (x *OIDCRegisterBody) GetIssuer() string
- func (x *OIDCRegisterBody) GetPreferredUsernameKey() string
- func (x *OIDCRegisterBody) GetRedirectUrl() string
- func (x *OIDCRegisterBody) GetScopes() []string
- func (x *OIDCRegisterBody) GetTenantId() string
- func (*OIDCRegisterBody) ProtoMessage()
- func (x *OIDCRegisterBody) ProtoReflect() protoreflect.Message
- func (x *OIDCRegisterBody) Reset()
- func (x *OIDCRegisterBody) String() string
- type OIDCRegisterRequest
- func (*OIDCRegisterRequest) Descriptor() ([]byte, []int)deprecated
- func (x *OIDCRegisterRequest) GetBody() *OIDCRegisterBody
- func (*OIDCRegisterRequest) ProtoMessage()
- func (x *OIDCRegisterRequest) ProtoReflect() protoreflect.Message
- func (x *OIDCRegisterRequest) Reset()
- func (x *OIDCRegisterRequest) String() string
- type OIDCRegisterResponse
- func (*OIDCRegisterResponse) Descriptor() ([]byte, []int)deprecated
- func (x *OIDCRegisterResponse) GetOk() bool
- func (*OIDCRegisterResponse) ProtoMessage()
- func (x *OIDCRegisterResponse) ProtoReflect() protoreflect.Message
- func (x *OIDCRegisterResponse) Reset()
- func (x *OIDCRegisterResponse) String() string
- type OauthClient
- type OauthHTTPHandler
- func (h *OauthHTTPHandler) Authenticate(req *go_restful.Request, resp *go_restful.Response)
- func (h *OauthHTTPHandler) Authorize(req *go_restful.Request, resp *go_restful.Response)
- func (h *OauthHTTPHandler) GetIdentityProvider(req *go_restful.Request, resp *go_restful.Response)
- func (h *OauthHTTPHandler) IdentityProviderRegister(req *go_restful.Request, resp *go_restful.Response)
- func (h *OauthHTTPHandler) IdentityProviderTemplate(req *go_restful.Request, resp *go_restful.Response)
- func (h *OauthHTTPHandler) OIDCRegister(req *go_restful.Request, resp *go_restful.Response)
- func (h *OauthHTTPHandler) ResetPassword(req *go_restful.Request, resp *go_restful.Response)
- func (h *OauthHTTPHandler) Token(req *go_restful.Request, resp *go_restful.Response)
- func (h *OauthHTTPHandler) TokenRevoke(req *go_restful.Request, resp *go_restful.Response)
- func (h *OauthHTTPHandler) UpdatePassword(req *go_restful.Request, resp *go_restful.Response)
- type OauthHTTPServer
- type OauthServer
- type ResetPasswordBody
- func (*ResetPasswordBody) Descriptor() ([]byte, []int)deprecated
- func (x *ResetPasswordBody) GetNewPassword() string
- func (x *ResetPasswordBody) GetResetKey() string
- func (*ResetPasswordBody) ProtoMessage()
- func (x *ResetPasswordBody) ProtoReflect() protoreflect.Message
- func (x *ResetPasswordBody) Reset()
- func (x *ResetPasswordBody) String() string
- type ResetPasswordRequest
- func (*ResetPasswordRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ResetPasswordRequest) GetBody() *ResetPasswordBody
- func (*ResetPasswordRequest) ProtoMessage()
- func (x *ResetPasswordRequest) ProtoReflect() protoreflect.Message
- func (x *ResetPasswordRequest) Reset()
- func (x *ResetPasswordRequest) String() string
- type ResetPasswordResponse
- func (*ResetPasswordResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ResetPasswordResponse) GetHasReset() bool
- func (x *ResetPasswordResponse) GetTenantId() string
- func (x *ResetPasswordResponse) GetUsername() string
- func (*ResetPasswordResponse) ProtoMessage()
- func (x *ResetPasswordResponse) ProtoReflect() protoreflect.Message
- func (x *ResetPasswordResponse) Reset()
- func (x *ResetPasswordResponse) String() string
- type TokenRequest
- func (*TokenRequest) Descriptor() ([]byte, []int)deprecated
- func (x *TokenRequest) GetCode() string
- func (x *TokenRequest) GetDisableRedirect() bool
- func (x *TokenRequest) GetGrantType() string
- func (x *TokenRequest) GetPassword() string
- func (x *TokenRequest) GetRedirectUri() string
- func (x *TokenRequest) GetRefreshToken() string
- func (x *TokenRequest) GetTenantId() string
- func (x *TokenRequest) GetUsername() string
- func (*TokenRequest) ProtoMessage()
- func (x *TokenRequest) ProtoReflect() protoreflect.Message
- func (x *TokenRequest) Reset()
- func (x *TokenRequest) String() string
- type TokenResponse
- func (*TokenResponse) Descriptor() ([]byte, []int)deprecated
- func (x *TokenResponse) GetAccessToken() string
- func (x *TokenResponse) GetExpiresIn() int64
- func (x *TokenResponse) GetRedirectUrl() string
- func (x *TokenResponse) GetRefreshToken() string
- func (x *TokenResponse) GetTokenType() string
- func (*TokenResponse) ProtoMessage()
- func (x *TokenResponse) ProtoReflect() protoreflect.Message
- func (x *TokenResponse) Reset()
- func (x *TokenResponse) String() string
- type TokenRevokeBody
- type TokenRevokeRequest
- func (*TokenRevokeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *TokenRevokeRequest) GetBody() *TokenRevokeBody
- func (*TokenRevokeRequest) ProtoMessage()
- func (x *TokenRevokeRequest) ProtoReflect() protoreflect.Message
- func (x *TokenRevokeRequest) Reset()
- func (x *TokenRevokeRequest) String() string
- type TokenRevokeResponse
- func (*TokenRevokeResponse) Descriptor() ([]byte, []int)deprecated
- func (x *TokenRevokeResponse) GetRevoked() bool
- func (x *TokenRevokeResponse) GetTenantId() string
- func (*TokenRevokeResponse) ProtoMessage()
- func (x *TokenRevokeResponse) ProtoReflect() protoreflect.Message
- func (x *TokenRevokeResponse) Reset()
- func (x *TokenRevokeResponse) String() string
- type UnimplementedOauthServer
- func (UnimplementedOauthServer) Authenticate(context.Context, *emptypb.Empty) (*AuthenticateResponse, error)
- func (UnimplementedOauthServer) Authorize(context.Context, *AuthorizeRequest) (*AuthorizeResponse, error)
- func (UnimplementedOauthServer) GetIdentityProvider(context.Context, *GetIdentityProviderRequest) (*GetIdentityProviderResponse, error)
- func (UnimplementedOauthServer) IdentityProviderRegister(context.Context, *IdProviderRegisterRequest) (*IdProviderRegisterResponse, error)
- func (UnimplementedOauthServer) IdentityProviderTemplate(context.Context, *IdProviderTemplateRequest) (*IdProviderTemplateResponse, error)
- func (UnimplementedOauthServer) OIDCRegister(context.Context, *OIDCRegisterRequest) (*OIDCRegisterResponse, error)
- func (UnimplementedOauthServer) ResetPassword(context.Context, *ResetPasswordRequest) (*ResetPasswordResponse, error)
- func (UnimplementedOauthServer) Token(context.Context, *TokenRequest) (*TokenResponse, error)
- func (UnimplementedOauthServer) TokenRevoke(context.Context, *TokenRevokeRequest) (*TokenRevokeResponse, error)
- func (UnimplementedOauthServer) UpdatePassword(context.Context, *UpdatePasswordRequest) (*UpdatePasswordResponse, error)
- type UnsafeOauthServer
- type UpdatePasswordBody
- func (*UpdatePasswordBody) Descriptor() ([]byte, []int)deprecated
- func (x *UpdatePasswordBody) GetNewPassword() string
- func (x *UpdatePasswordBody) GetRefreshToken() string
- func (*UpdatePasswordBody) ProtoMessage()
- func (x *UpdatePasswordBody) ProtoReflect() protoreflect.Message
- func (x *UpdatePasswordBody) Reset()
- func (x *UpdatePasswordBody) String() string
- type UpdatePasswordRequest
- func (*UpdatePasswordRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdatePasswordRequest) GetBody() *UpdatePasswordBody
- func (*UpdatePasswordRequest) ProtoMessage()
- func (x *UpdatePasswordRequest) ProtoReflect() protoreflect.Message
- func (x *UpdatePasswordRequest) Reset()
- func (x *UpdatePasswordRequest) String() string
- type UpdatePasswordResponse
- func (*UpdatePasswordResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UpdatePasswordResponse) GetTenantId() string
- func (*UpdatePasswordResponse) ProtoMessage()
- func (x *UpdatePasswordResponse) ProtoReflect() protoreflect.Message
- func (x *UpdatePasswordResponse) Reset()
- func (x *UpdatePasswordResponse) String() string
Constants ¶
This section is empty.
Variables ¶
var ( Error_name = map[int32]string{ 0: "OAUTH_ERR_UNKNOWN", 1: "OAUTH_ERR_INVALID_REQUEST", 2: "OAUTH_ERR_UNAUTHORIZED_CLIENT", 3: "OAUTH_ERR_ACCESS_DENIED", 4: "OAUTH_ERR_UNSUPPORTED_RESPONSE_TYPE", 5: "OAUTH_ERR_INVALID_SCOPE", 6: "OAUTH_ERR_SERVER_ERROR", 7: "OAUTH_ERR_INVALID_CLIENT", 8: "OAUTH_ERR_INVALID_GRANT", 9: "OAUTH_ERR_UNSUPPORTED_GRANT_TYPE", 10: "OAUTH_ERR_INVALID_ACCESS_TOKEN", 11: "OAUTH_ERR_INVALID_RESET_PWD", 12: "OAUTH_ERR_INVALID_USER_OR_PWD", 13: "OAUTH_UNSUPPORTED_PROVIDER_TYPE", } Error_value = map[string]int32{ "OAUTH_ERR_UNKNOWN": 0, "OAUTH_ERR_INVALID_REQUEST": 1, "OAUTH_ERR_UNAUTHORIZED_CLIENT": 2, "OAUTH_ERR_ACCESS_DENIED": 3, "OAUTH_ERR_UNSUPPORTED_RESPONSE_TYPE": 4, "OAUTH_ERR_INVALID_SCOPE": 5, "OAUTH_ERR_SERVER_ERROR": 6, "OAUTH_ERR_INVALID_CLIENT": 7, "OAUTH_ERR_INVALID_GRANT": 8, "OAUTH_ERR_UNSUPPORTED_GRANT_TYPE": 9, "OAUTH_ERR_INVALID_ACCESS_TOKEN": 10, "OAUTH_ERR_INVALID_RESET_PWD": 11, "OAUTH_ERR_INVALID_USER_OR_PWD": 12, "OAUTH_UNSUPPORTED_PROVIDER_TYPE": 13, } )
Enum value maps for Error.
var File_api_security_oauth_v1_error_proto protoreflect.FileDescriptor
var File_api_security_oauth_v1_oauth_proto protoreflect.FileDescriptor
var Oauth_ServiceDesc = grpc.ServiceDesc{ ServiceName: "io.tkeel.security.api.oauth.v1.Oauth", HandlerType: (*OauthServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Authorize", Handler: _Oauth_Authorize_Handler, }, { MethodName: "Token", Handler: _Oauth_Token_Handler, }, { MethodName: "Authenticate", Handler: _Oauth_Authenticate_Handler, }, { MethodName: "ResetPassword", Handler: _Oauth_ResetPassword_Handler, }, { MethodName: "UpdatePassword", Handler: _Oauth_UpdatePassword_Handler, }, { MethodName: "OIDCRegister", Handler: _Oauth_OIDCRegister_Handler, }, { MethodName: "TokenRevoke", Handler: _Oauth_TokenRevoke_Handler, }, { MethodName: "IdentityProviderTemplate", Handler: _Oauth_IdentityProviderTemplate_Handler, }, { MethodName: "IdentityProviderRegister", Handler: _Oauth_IdentityProviderRegister_Handler, }, { MethodName: "GetIdentityProvider", Handler: _Oauth_GetIdentityProvider_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/security_oauth/v1/oauth.proto", }
Oauth_ServiceDesc is the grpc.ServiceDesc for Oauth service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func OauthErrAccessDenied ¶
func OauthErrInvalidClient ¶
func OauthErrInvalidGrant ¶
func OauthErrInvalidRequest ¶
func OauthErrInvalidResetPwd ¶ added in v1.0.0
func OauthErrInvalidScope ¶
func OauthErrInvalidUserOrPwd ¶ added in v1.0.0
func OauthErrServerError ¶
func OauthErrUnknown ¶
func OauthUnsupportedProviderType ¶ added in v1.0.0
func RegisterOauthHTTPServer ¶
func RegisterOauthHTTPServer(container *go_restful.Container, srv OauthHTTPServer)
func RegisterOauthServer ¶
func RegisterOauthServer(s grpc.ServiceRegistrar, srv OauthServer)
Types ¶
type AuthenticateResponse ¶
type AuthenticateResponse struct { ExpiresIn int64 `protobuf:"varint,1,opt,name=expires_in,json=expiresIn,proto3" json:"expires_in,omitempty"` UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` Username string `protobuf:"bytes,3,opt,name=username,proto3" json:"username,omitempty"` ExternalId string `protobuf:"bytes,4,opt,name=external_id,json=externalId,proto3" json:"external_id,omitempty"` NickName string `protobuf:"bytes,5,opt,name=nick_name,json=nickName,proto3" json:"nick_name,omitempty"` Avatar string `protobuf:"bytes,6,opt,name=avatar,proto3" json:"avatar,omitempty"` TenantId string `protobuf:"bytes,7,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"` AuthType string `protobuf:"bytes,8,opt,name=auth_type,json=authType,proto3" json:"auth_type,omitempty"` // contains filtered or unexported fields }
func (*AuthenticateResponse) Descriptor
deprecated
func (*AuthenticateResponse) Descriptor() ([]byte, []int)
Deprecated: Use AuthenticateResponse.ProtoReflect.Descriptor instead.
func (*AuthenticateResponse) GetAuthType ¶ added in v1.0.0
func (x *AuthenticateResponse) GetAuthType() string
func (*AuthenticateResponse) GetAvatar ¶
func (x *AuthenticateResponse) GetAvatar() string
func (*AuthenticateResponse) GetExpiresIn ¶
func (x *AuthenticateResponse) GetExpiresIn() int64
func (*AuthenticateResponse) GetExternalId ¶
func (x *AuthenticateResponse) GetExternalId() string
func (*AuthenticateResponse) GetNickName ¶
func (x *AuthenticateResponse) GetNickName() string
func (*AuthenticateResponse) GetTenantId ¶
func (x *AuthenticateResponse) GetTenantId() string
func (*AuthenticateResponse) GetUserId ¶
func (x *AuthenticateResponse) GetUserId() string
func (*AuthenticateResponse) GetUsername ¶
func (x *AuthenticateResponse) GetUsername() string
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 AuthorizeRequest ¶
type AuthorizeRequest struct { TenantId string `protobuf:"bytes,1,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"` ResponseType string `protobuf:"bytes,2,opt,name=response_type,json=responseType,proto3" json:"response_type,omitempty"` Username string `protobuf:"bytes,3,opt,name=username,proto3" json:"username,omitempty"` Password string `protobuf:"bytes,4,opt,name=password,proto3" json:"password,omitempty"` RedirectUri string `protobuf:"bytes,5,opt,name=redirect_uri,json=redirectUri,proto3" json:"redirect_uri,omitempty"` State string `protobuf:"bytes,6,opt,name=state,proto3" json:"state,omitempty"` // contains filtered or unexported fields }
func (*AuthorizeRequest) Descriptor
deprecated
func (*AuthorizeRequest) Descriptor() ([]byte, []int)
Deprecated: Use AuthorizeRequest.ProtoReflect.Descriptor instead.
func (*AuthorizeRequest) GetPassword ¶
func (x *AuthorizeRequest) GetPassword() string
func (*AuthorizeRequest) GetRedirectUri ¶
func (x *AuthorizeRequest) GetRedirectUri() string
func (*AuthorizeRequest) GetResponseType ¶
func (x *AuthorizeRequest) GetResponseType() string
func (*AuthorizeRequest) GetState ¶
func (x *AuthorizeRequest) GetState() string
func (*AuthorizeRequest) GetTenantId ¶
func (x *AuthorizeRequest) GetTenantId() string
func (*AuthorizeRequest) GetUsername ¶
func (x *AuthorizeRequest) GetUsername() string
func (*AuthorizeRequest) ProtoMessage ¶
func (*AuthorizeRequest) ProtoMessage()
func (*AuthorizeRequest) ProtoReflect ¶
func (x *AuthorizeRequest) ProtoReflect() protoreflect.Message
func (*AuthorizeRequest) Reset ¶
func (x *AuthorizeRequest) Reset()
func (*AuthorizeRequest) String ¶
func (x *AuthorizeRequest) String() string
type AuthorizeResponse ¶
type AuthorizeResponse struct { Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` // contains filtered or unexported fields }
func (*AuthorizeResponse) Descriptor
deprecated
func (*AuthorizeResponse) Descriptor() ([]byte, []int)
Deprecated: Use AuthorizeResponse.ProtoReflect.Descriptor instead.
func (*AuthorizeResponse) GetCode ¶
func (x *AuthorizeResponse) GetCode() string
func (*AuthorizeResponse) ProtoMessage ¶
func (*AuthorizeResponse) ProtoMessage()
func (*AuthorizeResponse) ProtoReflect ¶
func (x *AuthorizeResponse) ProtoReflect() protoreflect.Message
func (*AuthorizeResponse) Reset ¶
func (x *AuthorizeResponse) Reset()
func (*AuthorizeResponse) String ¶
func (x *AuthorizeResponse) String() string
type Error ¶
type Error int32
@plugins=protoc-gen-go-errors 错误
const ( // @msg=未知类型 // @code=UNKNOWN Error_OAUTH_ERR_UNKNOWN Error = 0 // @msg=无效请求 // @code=INVALID_ARGUMENT Error_OAUTH_ERR_INVALID_REQUEST Error = 1 // 400 // @msg=未授权 // @code=INVALID_ARGUMENT Error_OAUTH_ERR_UNAUTHORIZED_CLIENT Error = 2 // 401 // @msg=限制访问 // @code=INVALID_ARGUMENT Error_OAUTH_ERR_ACCESS_DENIED Error = 3 // 403 // @msg=不支持的授权返回类型 // @code=INVALID_ARGUMENT Error_OAUTH_ERR_UNSUPPORTED_RESPONSE_TYPE Error = 4 // 401 // @msg=无效范围 // @code=INVALID_ARGUMENT Error_OAUTH_ERR_INVALID_SCOPE Error = 5 // 400 // @msg=服务错误 // @code=INTERNAL Error_OAUTH_ERR_SERVER_ERROR Error = 6 // 500 // @msg=无效客户端 // @code=PERMISSION_DENIED Error_OAUTH_ERR_INVALID_CLIENT Error = 7 // 401 // @msg=无效授权 // @code=INTERNAL Error_OAUTH_ERR_INVALID_GRANT Error = 8 // 401 // @msg=不支持的授予类型 // @code=INVALID_ARGUMENT Error_OAUTH_ERR_UNSUPPORTED_GRANT_TYPE Error = 9 // 401 // @msg=不支持的授予类型 // @code=INVALID_ARGUMENT Error_OAUTH_ERR_INVALID_ACCESS_TOKEN Error = 10 // 401 // @msg=重置密码链接无效 // @code=INVALID_ARGUMENT Error_OAUTH_ERR_INVALID_RESET_PWD Error = 11 // 401 // @msg=用户名密码错误 // @code=INVALID_ARGUMENT Error_OAUTH_ERR_INVALID_USER_OR_PWD Error = 12 // 401 // @msg=不支持的第三方认证协议类型 // @code=INVALID_ARGUMENT Error_OAUTH_UNSUPPORTED_PROVIDER_TYPE Error = 13 // 401 )
func (Error) Descriptor ¶
func (Error) Descriptor() protoreflect.EnumDescriptor
func (Error) EnumDescriptor
deprecated
func (Error) Number ¶
func (x Error) Number() protoreflect.EnumNumber
func (Error) Type ¶
func (Error) Type() protoreflect.EnumType
type GetIdentityProviderRequest ¶ added in v1.0.0
type GetIdentityProviderRequest struct { TenantId string `protobuf:"bytes,1,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"` // contains filtered or unexported fields }
IdentityProviderConfig request.
func (*GetIdentityProviderRequest) Descriptor
deprecated
added in
v1.0.0
func (*GetIdentityProviderRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetIdentityProviderRequest.ProtoReflect.Descriptor instead.
func (*GetIdentityProviderRequest) GetTenantId ¶ added in v1.0.0
func (x *GetIdentityProviderRequest) GetTenantId() string
func (*GetIdentityProviderRequest) ProtoMessage ¶ added in v1.0.0
func (*GetIdentityProviderRequest) ProtoMessage()
func (*GetIdentityProviderRequest) ProtoReflect ¶ added in v1.0.0
func (x *GetIdentityProviderRequest) ProtoReflect() protoreflect.Message
func (*GetIdentityProviderRequest) Reset ¶ added in v1.0.0
func (x *GetIdentityProviderRequest) Reset()
func (*GetIdentityProviderRequest) String ¶ added in v1.0.0
func (x *GetIdentityProviderRequest) String() string
type GetIdentityProviderResponse ¶ added in v1.0.0
type GetIdentityProviderResponse struct { Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` Config []byte `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"` // contains filtered or unexported fields }
func (*GetIdentityProviderResponse) Descriptor
deprecated
added in
v1.0.0
func (*GetIdentityProviderResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetIdentityProviderResponse.ProtoReflect.Descriptor instead.
func (*GetIdentityProviderResponse) GetConfig ¶ added in v1.0.0
func (x *GetIdentityProviderResponse) GetConfig() []byte
func (*GetIdentityProviderResponse) GetType ¶ added in v1.0.0
func (x *GetIdentityProviderResponse) GetType() string
func (*GetIdentityProviderResponse) ProtoMessage ¶ added in v1.0.0
func (*GetIdentityProviderResponse) ProtoMessage()
func (*GetIdentityProviderResponse) ProtoReflect ¶ added in v1.0.0
func (x *GetIdentityProviderResponse) ProtoReflect() protoreflect.Message
func (*GetIdentityProviderResponse) Reset ¶ added in v1.0.0
func (x *GetIdentityProviderResponse) Reset()
func (*GetIdentityProviderResponse) String ¶ added in v1.0.0
func (x *GetIdentityProviderResponse) String() string
type IdProviderRegisterRequest ¶ added in v1.0.0
type IdProviderRegisterRequest struct { TenantId string `protobuf:"bytes,1,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"` Body *IdProviderRegisterRequestBody `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"` // contains filtered or unexported fields }
IdentityProviderConfig request.
func (*IdProviderRegisterRequest) Descriptor
deprecated
added in
v1.0.0
func (*IdProviderRegisterRequest) Descriptor() ([]byte, []int)
Deprecated: Use IdProviderRegisterRequest.ProtoReflect.Descriptor instead.
func (*IdProviderRegisterRequest) GetBody ¶ added in v1.0.0
func (x *IdProviderRegisterRequest) GetBody() *IdProviderRegisterRequestBody
func (*IdProviderRegisterRequest) GetTenantId ¶ added in v1.0.0
func (x *IdProviderRegisterRequest) GetTenantId() string
func (*IdProviderRegisterRequest) ProtoMessage ¶ added in v1.0.0
func (*IdProviderRegisterRequest) ProtoMessage()
func (*IdProviderRegisterRequest) ProtoReflect ¶ added in v1.0.0
func (x *IdProviderRegisterRequest) ProtoReflect() protoreflect.Message
func (*IdProviderRegisterRequest) Reset ¶ added in v1.0.0
func (x *IdProviderRegisterRequest) Reset()
func (*IdProviderRegisterRequest) String ¶ added in v1.0.0
func (x *IdProviderRegisterRequest) String() string
type IdProviderRegisterRequestBody ¶ added in v1.0.0
type IdProviderRegisterRequestBody struct { Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` Config []byte `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"` // contains filtered or unexported fields }
IdentityProviderConfig request.
func (*IdProviderRegisterRequestBody) Descriptor
deprecated
added in
v1.0.0
func (*IdProviderRegisterRequestBody) Descriptor() ([]byte, []int)
Deprecated: Use IdProviderRegisterRequestBody.ProtoReflect.Descriptor instead.
func (*IdProviderRegisterRequestBody) GetConfig ¶ added in v1.0.0
func (x *IdProviderRegisterRequestBody) GetConfig() []byte
func (*IdProviderRegisterRequestBody) GetType ¶ added in v1.0.0
func (x *IdProviderRegisterRequestBody) GetType() string
func (*IdProviderRegisterRequestBody) ProtoMessage ¶ added in v1.0.0
func (*IdProviderRegisterRequestBody) ProtoMessage()
func (*IdProviderRegisterRequestBody) ProtoReflect ¶ added in v1.0.0
func (x *IdProviderRegisterRequestBody) ProtoReflect() protoreflect.Message
func (*IdProviderRegisterRequestBody) Reset ¶ added in v1.0.0
func (x *IdProviderRegisterRequestBody) Reset()
func (*IdProviderRegisterRequestBody) String ¶ added in v1.0.0
func (x *IdProviderRegisterRequestBody) String() string
type IdProviderRegisterResponse ¶ added in v1.0.0
type IdProviderRegisterResponse struct { Registered bool `protobuf:"varint,1,opt,name=registered,proto3" json:"registered,omitempty"` // contains filtered or unexported fields }
IdentityProviderConfig request.
func (*IdProviderRegisterResponse) Descriptor
deprecated
added in
v1.0.0
func (*IdProviderRegisterResponse) Descriptor() ([]byte, []int)
Deprecated: Use IdProviderRegisterResponse.ProtoReflect.Descriptor instead.
func (*IdProviderRegisterResponse) GetRegistered ¶ added in v1.0.0
func (x *IdProviderRegisterResponse) GetRegistered() bool
func (*IdProviderRegisterResponse) ProtoMessage ¶ added in v1.0.0
func (*IdProviderRegisterResponse) ProtoMessage()
func (*IdProviderRegisterResponse) ProtoReflect ¶ added in v1.0.0
func (x *IdProviderRegisterResponse) ProtoReflect() protoreflect.Message
func (*IdProviderRegisterResponse) Reset ¶ added in v1.0.0
func (x *IdProviderRegisterResponse) Reset()
func (*IdProviderRegisterResponse) String ¶ added in v1.0.0
func (x *IdProviderRegisterResponse) String() string
type IdProviderTemplateRequest ¶ added in v1.0.0
type IdProviderTemplateRequest struct { Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` // contains filtered or unexported fields }
IdentityProviderConfig request.
func (*IdProviderTemplateRequest) Descriptor
deprecated
added in
v1.0.0
func (*IdProviderTemplateRequest) Descriptor() ([]byte, []int)
Deprecated: Use IdProviderTemplateRequest.ProtoReflect.Descriptor instead.
func (*IdProviderTemplateRequest) GetType ¶ added in v1.0.0
func (x *IdProviderTemplateRequest) GetType() string
func (*IdProviderTemplateRequest) ProtoMessage ¶ added in v1.0.0
func (*IdProviderTemplateRequest) ProtoMessage()
func (*IdProviderTemplateRequest) ProtoReflect ¶ added in v1.0.0
func (x *IdProviderTemplateRequest) ProtoReflect() protoreflect.Message
func (*IdProviderTemplateRequest) Reset ¶ added in v1.0.0
func (x *IdProviderTemplateRequest) Reset()
func (*IdProviderTemplateRequest) String ¶ added in v1.0.0
func (x *IdProviderTemplateRequest) String() string
type IdProviderTemplateResponse ¶ added in v1.0.0
type IdProviderTemplateResponse struct { Config []byte `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"` // contains filtered or unexported fields }
IdentityProviderConfig response.
func (*IdProviderTemplateResponse) Descriptor
deprecated
added in
v1.0.0
func (*IdProviderTemplateResponse) Descriptor() ([]byte, []int)
Deprecated: Use IdProviderTemplateResponse.ProtoReflect.Descriptor instead.
func (*IdProviderTemplateResponse) GetConfig ¶ added in v1.0.0
func (x *IdProviderTemplateResponse) GetConfig() []byte
func (*IdProviderTemplateResponse) ProtoMessage ¶ added in v1.0.0
func (*IdProviderTemplateResponse) ProtoMessage()
func (*IdProviderTemplateResponse) ProtoReflect ¶ added in v1.0.0
func (x *IdProviderTemplateResponse) ProtoReflect() protoreflect.Message
func (*IdProviderTemplateResponse) Reset ¶ added in v1.0.0
func (x *IdProviderTemplateResponse) Reset()
func (*IdProviderTemplateResponse) String ¶ added in v1.0.0
func (x *IdProviderTemplateResponse) String() string
type OIDCEndpoint ¶
type OIDCEndpoint struct { AuthUrl string `protobuf:"bytes,1,opt,name=auth_url,json=authUrl,proto3" json:"auth_url,omitempty"` TokenUrl string `protobuf:"bytes,2,opt,name=token_url,json=tokenUrl,proto3" json:"token_url,omitempty"` UserInfoUrl string `protobuf:"bytes,3,opt,name=user_info_url,json=userInfoUrl,proto3" json:"user_info_url,omitempty"` Jwksurl string `protobuf:"bytes,4,opt,name=jwksurl,proto3" json:"jwksurl,omitempty"` EndSessionUrl string `protobuf:"bytes,5,opt,name=end_session_url,json=endSessionUrl,proto3" json:"end_session_url,omitempty"` // contains filtered or unexported fields }
func (*OIDCEndpoint) Descriptor
deprecated
func (*OIDCEndpoint) Descriptor() ([]byte, []int)
Deprecated: Use OIDCEndpoint.ProtoReflect.Descriptor instead.
func (*OIDCEndpoint) GetAuthUrl ¶
func (x *OIDCEndpoint) GetAuthUrl() string
func (*OIDCEndpoint) GetEndSessionUrl ¶
func (x *OIDCEndpoint) GetEndSessionUrl() string
func (*OIDCEndpoint) GetJwksurl ¶
func (x *OIDCEndpoint) GetJwksurl() string
func (*OIDCEndpoint) GetTokenUrl ¶
func (x *OIDCEndpoint) GetTokenUrl() string
func (*OIDCEndpoint) GetUserInfoUrl ¶
func (x *OIDCEndpoint) GetUserInfoUrl() string
func (*OIDCEndpoint) ProtoMessage ¶
func (*OIDCEndpoint) ProtoMessage()
func (*OIDCEndpoint) ProtoReflect ¶
func (x *OIDCEndpoint) ProtoReflect() protoreflect.Message
func (*OIDCEndpoint) Reset ¶
func (x *OIDCEndpoint) Reset()
func (*OIDCEndpoint) String ¶
func (x *OIDCEndpoint) String() string
type OIDCRegisterBody ¶
type OIDCRegisterBody struct { Issuer string `protobuf:"bytes,1,opt,name=issuer,proto3" json:"issuer,omitempty"` ClientId string `protobuf:"bytes,2,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` ClientSecret string `protobuf:"bytes,3,opt,name=client_secret,json=clientSecret,proto3" json:"client_secret,omitempty"` RedirectUrl string `protobuf:"bytes,4,opt,name=redirect_url,json=redirectUrl,proto3" json:"redirect_url,omitempty"` Scopes []string `protobuf:"bytes,5,rep,name=scopes,proto3" json:"scopes,omitempty"` GetUserInfo bool `protobuf:"varint,6,opt,name=get_user_info,json=getUserInfo,proto3" json:"get_user_info,omitempty"` InsecureSkipVerify bool `protobuf:"varint,7,opt,name=insecure_skip_verify,json=insecureSkipVerify,proto3" json:"insecure_skip_verify,omitempty"` EmailKey string `protobuf:"bytes,8,opt,name=email_key,json=emailKey,proto3" json:"email_key,omitempty"` PreferredUsernameKey string `protobuf:"bytes,9,opt,name=preferred_username_key,json=preferredUsernameKey,proto3" json:"preferred_username_key,omitempty"` Endpoint *OIDCEndpoint `protobuf:"bytes,10,opt,name=endpoint,proto3" json:"endpoint,omitempty"` TenantId string `protobuf:"bytes,11,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"` // contains filtered or unexported fields }
func (*OIDCRegisterBody) Descriptor
deprecated
func (*OIDCRegisterBody) Descriptor() ([]byte, []int)
Deprecated: Use OIDCRegisterBody.ProtoReflect.Descriptor instead.
func (*OIDCRegisterBody) GetClientId ¶
func (x *OIDCRegisterBody) GetClientId() string
func (*OIDCRegisterBody) GetClientSecret ¶
func (x *OIDCRegisterBody) GetClientSecret() string
func (*OIDCRegisterBody) GetEmailKey ¶
func (x *OIDCRegisterBody) GetEmailKey() string
func (*OIDCRegisterBody) GetEndpoint ¶
func (x *OIDCRegisterBody) GetEndpoint() *OIDCEndpoint
func (*OIDCRegisterBody) GetGetUserInfo ¶
func (x *OIDCRegisterBody) GetGetUserInfo() bool
func (*OIDCRegisterBody) GetInsecureSkipVerify ¶
func (x *OIDCRegisterBody) GetInsecureSkipVerify() bool
func (*OIDCRegisterBody) GetIssuer ¶
func (x *OIDCRegisterBody) GetIssuer() string
func (*OIDCRegisterBody) GetPreferredUsernameKey ¶
func (x *OIDCRegisterBody) GetPreferredUsernameKey() string
func (*OIDCRegisterBody) GetRedirectUrl ¶
func (x *OIDCRegisterBody) GetRedirectUrl() string
func (*OIDCRegisterBody) GetScopes ¶
func (x *OIDCRegisterBody) GetScopes() []string
func (*OIDCRegisterBody) GetTenantId ¶
func (x *OIDCRegisterBody) GetTenantId() string
func (*OIDCRegisterBody) ProtoMessage ¶
func (*OIDCRegisterBody) ProtoMessage()
func (*OIDCRegisterBody) ProtoReflect ¶
func (x *OIDCRegisterBody) ProtoReflect() protoreflect.Message
func (*OIDCRegisterBody) Reset ¶
func (x *OIDCRegisterBody) Reset()
func (*OIDCRegisterBody) String ¶
func (x *OIDCRegisterBody) String() string
type OIDCRegisterRequest ¶
type OIDCRegisterRequest struct { Body *OIDCRegisterBody `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"` // contains filtered or unexported fields }
func (*OIDCRegisterRequest) Descriptor
deprecated
func (*OIDCRegisterRequest) Descriptor() ([]byte, []int)
Deprecated: Use OIDCRegisterRequest.ProtoReflect.Descriptor instead.
func (*OIDCRegisterRequest) GetBody ¶
func (x *OIDCRegisterRequest) GetBody() *OIDCRegisterBody
func (*OIDCRegisterRequest) ProtoMessage ¶
func (*OIDCRegisterRequest) ProtoMessage()
func (*OIDCRegisterRequest) ProtoReflect ¶
func (x *OIDCRegisterRequest) ProtoReflect() protoreflect.Message
func (*OIDCRegisterRequest) Reset ¶
func (x *OIDCRegisterRequest) Reset()
func (*OIDCRegisterRequest) String ¶
func (x *OIDCRegisterRequest) String() string
type OIDCRegisterResponse ¶
type OIDCRegisterResponse struct { Ok bool `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"` // contains filtered or unexported fields }
func (*OIDCRegisterResponse) Descriptor
deprecated
func (*OIDCRegisterResponse) Descriptor() ([]byte, []int)
Deprecated: Use OIDCRegisterResponse.ProtoReflect.Descriptor instead.
func (*OIDCRegisterResponse) GetOk ¶
func (x *OIDCRegisterResponse) GetOk() bool
func (*OIDCRegisterResponse) ProtoMessage ¶
func (*OIDCRegisterResponse) ProtoMessage()
func (*OIDCRegisterResponse) ProtoReflect ¶
func (x *OIDCRegisterResponse) ProtoReflect() protoreflect.Message
func (*OIDCRegisterResponse) Reset ¶
func (x *OIDCRegisterResponse) Reset()
func (*OIDCRegisterResponse) String ¶
func (x *OIDCRegisterResponse) String() string
type OauthClient ¶
type OauthClient interface { Authorize(ctx context.Context, in *AuthorizeRequest, opts ...grpc.CallOption) (*AuthorizeResponse, error) Token(ctx context.Context, in *TokenRequest, opts ...grpc.CallOption) (*TokenResponse, error) Authenticate(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*AuthenticateResponse, error) ResetPassword(ctx context.Context, in *ResetPasswordRequest, opts ...grpc.CallOption) (*ResetPasswordResponse, error) UpdatePassword(ctx context.Context, in *UpdatePasswordRequest, opts ...grpc.CallOption) (*UpdatePasswordResponse, error) OIDCRegister(ctx context.Context, in *OIDCRegisterRequest, opts ...grpc.CallOption) (*OIDCRegisterResponse, error) TokenRevoke(ctx context.Context, in *TokenRevokeRequest, opts ...grpc.CallOption) (*TokenRevokeResponse, error) // Identity provider config IdentityProviderTemplate(ctx context.Context, in *IdProviderTemplateRequest, opts ...grpc.CallOption) (*IdProviderTemplateResponse, error) // Identity provider register IdentityProviderRegister(ctx context.Context, in *IdProviderRegisterRequest, opts ...grpc.CallOption) (*IdProviderRegisterResponse, error) // Get Identity provider GetIdentityProvider(ctx context.Context, in *GetIdentityProviderRequest, opts ...grpc.CallOption) (*GetIdentityProviderResponse, error) }
OauthClient is the client API for Oauth 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.
func NewOauthClient ¶
func NewOauthClient(cc grpc.ClientConnInterface) OauthClient
type OauthHTTPHandler ¶
type OauthHTTPHandler struct {
// contains filtered or unexported fields
}
func (*OauthHTTPHandler) Authenticate ¶
func (h *OauthHTTPHandler) Authenticate(req *go_restful.Request, resp *go_restful.Response)
func (*OauthHTTPHandler) Authorize ¶
func (h *OauthHTTPHandler) Authorize(req *go_restful.Request, resp *go_restful.Response)
func (*OauthHTTPHandler) GetIdentityProvider ¶ added in v1.0.0
func (h *OauthHTTPHandler) GetIdentityProvider(req *go_restful.Request, resp *go_restful.Response)
func (*OauthHTTPHandler) IdentityProviderRegister ¶ added in v1.0.0
func (h *OauthHTTPHandler) IdentityProviderRegister(req *go_restful.Request, resp *go_restful.Response)
func (*OauthHTTPHandler) IdentityProviderTemplate ¶ added in v1.0.0
func (h *OauthHTTPHandler) IdentityProviderTemplate(req *go_restful.Request, resp *go_restful.Response)
func (*OauthHTTPHandler) OIDCRegister ¶
func (h *OauthHTTPHandler) OIDCRegister(req *go_restful.Request, resp *go_restful.Response)
func (*OauthHTTPHandler) ResetPassword ¶
func (h *OauthHTTPHandler) ResetPassword(req *go_restful.Request, resp *go_restful.Response)
func (*OauthHTTPHandler) Token ¶
func (h *OauthHTTPHandler) Token(req *go_restful.Request, resp *go_restful.Response)
func (*OauthHTTPHandler) TokenRevoke ¶
func (h *OauthHTTPHandler) TokenRevoke(req *go_restful.Request, resp *go_restful.Response)
func (*OauthHTTPHandler) UpdatePassword ¶
func (h *OauthHTTPHandler) UpdatePassword(req *go_restful.Request, resp *go_restful.Response)
type OauthHTTPServer ¶
type OauthHTTPServer interface { Authenticate(context.Context, *emptypb.Empty) (*AuthenticateResponse, error) Authorize(context.Context, *AuthorizeRequest) (*AuthorizeResponse, error) GetIdentityProvider(context.Context, *GetIdentityProviderRequest) (*GetIdentityProviderResponse, error) IdentityProviderRegister(context.Context, *IdProviderRegisterRequest) (*IdProviderRegisterResponse, error) IdentityProviderTemplate(context.Context, *IdProviderTemplateRequest) (*IdProviderTemplateResponse, error) OIDCRegister(context.Context, *OIDCRegisterRequest) (*OIDCRegisterResponse, error) ResetPassword(context.Context, *ResetPasswordRequest) (*ResetPasswordResponse, error) Token(context.Context, *TokenRequest) (*TokenResponse, error) TokenRevoke(context.Context, *TokenRevokeRequest) (*TokenRevokeResponse, error) UpdatePassword(context.Context, *UpdatePasswordRequest) (*UpdatePasswordResponse, error) }
type OauthServer ¶
type OauthServer interface { Authorize(context.Context, *AuthorizeRequest) (*AuthorizeResponse, error) Token(context.Context, *TokenRequest) (*TokenResponse, error) Authenticate(context.Context, *emptypb.Empty) (*AuthenticateResponse, error) ResetPassword(context.Context, *ResetPasswordRequest) (*ResetPasswordResponse, error) UpdatePassword(context.Context, *UpdatePasswordRequest) (*UpdatePasswordResponse, error) OIDCRegister(context.Context, *OIDCRegisterRequest) (*OIDCRegisterResponse, error) TokenRevoke(context.Context, *TokenRevokeRequest) (*TokenRevokeResponse, error) // Identity provider config IdentityProviderTemplate(context.Context, *IdProviderTemplateRequest) (*IdProviderTemplateResponse, error) // Identity provider register IdentityProviderRegister(context.Context, *IdProviderRegisterRequest) (*IdProviderRegisterResponse, error) // Get Identity provider GetIdentityProvider(context.Context, *GetIdentityProviderRequest) (*GetIdentityProviderResponse, error) // contains filtered or unexported methods }
OauthServer is the server API for Oauth service. All implementations must embed UnimplementedOauthServer for forward compatibility
type ResetPasswordBody ¶
type ResetPasswordBody struct { NewPassword string `protobuf:"bytes,1,opt,name=new_password,json=newPassword,proto3" json:"new_password,omitempty"` ResetKey string `protobuf:"bytes,2,opt,name=reset_key,json=resetKey,proto3" json:"reset_key,omitempty"` // contains filtered or unexported fields }
func (*ResetPasswordBody) Descriptor
deprecated
func (*ResetPasswordBody) Descriptor() ([]byte, []int)
Deprecated: Use ResetPasswordBody.ProtoReflect.Descriptor instead.
func (*ResetPasswordBody) GetNewPassword ¶
func (x *ResetPasswordBody) GetNewPassword() string
func (*ResetPasswordBody) GetResetKey ¶
func (x *ResetPasswordBody) GetResetKey() string
func (*ResetPasswordBody) ProtoMessage ¶
func (*ResetPasswordBody) ProtoMessage()
func (*ResetPasswordBody) ProtoReflect ¶
func (x *ResetPasswordBody) ProtoReflect() protoreflect.Message
func (*ResetPasswordBody) Reset ¶
func (x *ResetPasswordBody) Reset()
func (*ResetPasswordBody) String ¶
func (x *ResetPasswordBody) String() string
type ResetPasswordRequest ¶
type ResetPasswordRequest struct { Body *ResetPasswordBody `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"` // contains filtered or unexported fields }
func (*ResetPasswordRequest) Descriptor
deprecated
func (*ResetPasswordRequest) Descriptor() ([]byte, []int)
Deprecated: Use ResetPasswordRequest.ProtoReflect.Descriptor instead.
func (*ResetPasswordRequest) GetBody ¶
func (x *ResetPasswordRequest) GetBody() *ResetPasswordBody
func (*ResetPasswordRequest) ProtoMessage ¶
func (*ResetPasswordRequest) ProtoMessage()
func (*ResetPasswordRequest) ProtoReflect ¶
func (x *ResetPasswordRequest) ProtoReflect() protoreflect.Message
func (*ResetPasswordRequest) Reset ¶
func (x *ResetPasswordRequest) Reset()
func (*ResetPasswordRequest) String ¶
func (x *ResetPasswordRequest) String() string
type ResetPasswordResponse ¶
type ResetPasswordResponse struct { TenantId string `protobuf:"bytes,1,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"` HasReset bool `protobuf:"varint,2,opt,name=has_reset,json=hasReset,proto3" json:"has_reset,omitempty"` Username string `protobuf:"bytes,3,opt,name=username,proto3" json:"username,omitempty"` // contains filtered or unexported fields }
func (*ResetPasswordResponse) Descriptor
deprecated
func (*ResetPasswordResponse) Descriptor() ([]byte, []int)
Deprecated: Use ResetPasswordResponse.ProtoReflect.Descriptor instead.
func (*ResetPasswordResponse) GetHasReset ¶
func (x *ResetPasswordResponse) GetHasReset() bool
func (*ResetPasswordResponse) GetTenantId ¶
func (x *ResetPasswordResponse) GetTenantId() string
func (*ResetPasswordResponse) GetUsername ¶
func (x *ResetPasswordResponse) GetUsername() string
func (*ResetPasswordResponse) ProtoMessage ¶
func (*ResetPasswordResponse) ProtoMessage()
func (*ResetPasswordResponse) ProtoReflect ¶
func (x *ResetPasswordResponse) ProtoReflect() protoreflect.Message
func (*ResetPasswordResponse) Reset ¶
func (x *ResetPasswordResponse) Reset()
func (*ResetPasswordResponse) String ¶
func (x *ResetPasswordResponse) String() string
type TokenRequest ¶
type TokenRequest struct { TenantId string `protobuf:"bytes,1,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"` GrantType string `protobuf:"bytes,2,opt,name=grant_type,json=grantType,proto3" json:"grant_type,omitempty"` Code string `protobuf:"bytes,3,opt,name=code,proto3" json:"code,omitempty"` RedirectUri string `protobuf:"bytes,4,opt,name=redirect_uri,json=redirectUri,proto3" json:"redirect_uri,omitempty"` Username string `protobuf:"bytes,5,opt,name=username,proto3" json:"username,omitempty"` Password string `protobuf:"bytes,6,opt,name=password,proto3" json:"password,omitempty"` RefreshToken string `protobuf:"bytes,7,opt,name=refresh_token,json=refreshToken,proto3" json:"refresh_token,omitempty"` DisableRedirect bool `protobuf:"varint,8,opt,name=disable_redirect,json=disableRedirect,proto3" json:"disable_redirect,omitempty"` // contains filtered or unexported fields }
func (*TokenRequest) Descriptor
deprecated
func (*TokenRequest) Descriptor() ([]byte, []int)
Deprecated: Use TokenRequest.ProtoReflect.Descriptor instead.
func (*TokenRequest) GetCode ¶
func (x *TokenRequest) GetCode() string
func (*TokenRequest) GetDisableRedirect ¶ added in v1.0.0
func (x *TokenRequest) GetDisableRedirect() bool
func (*TokenRequest) GetGrantType ¶
func (x *TokenRequest) GetGrantType() string
func (*TokenRequest) GetPassword ¶
func (x *TokenRequest) GetPassword() string
func (*TokenRequest) GetRedirectUri ¶
func (x *TokenRequest) GetRedirectUri() string
func (*TokenRequest) GetRefreshToken ¶
func (x *TokenRequest) GetRefreshToken() string
func (*TokenRequest) GetTenantId ¶
func (x *TokenRequest) GetTenantId() string
func (*TokenRequest) GetUsername ¶
func (x *TokenRequest) GetUsername() string
func (*TokenRequest) ProtoMessage ¶
func (*TokenRequest) ProtoMessage()
func (*TokenRequest) ProtoReflect ¶
func (x *TokenRequest) ProtoReflect() protoreflect.Message
func (*TokenRequest) Reset ¶
func (x *TokenRequest) Reset()
func (*TokenRequest) String ¶
func (x *TokenRequest) String() string
type TokenResponse ¶
type TokenResponse struct { AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"` RefreshToken string `protobuf:"bytes,2,opt,name=refresh_token,json=refreshToken,proto3" json:"refresh_token,omitempty"` ExpiresIn int64 `protobuf:"varint,3,opt,name=expires_in,json=expiresIn,proto3" json:"expires_in,omitempty"` TokenType string `protobuf:"bytes,4,opt,name=token_type,json=tokenType,proto3" json:"token_type,omitempty"` RedirectUrl string `protobuf:"bytes,5,opt,name=redirect_url,json=redirectUrl,proto3" json:"redirect_url,omitempty"` // contains filtered or unexported fields }
func (*TokenResponse) Descriptor
deprecated
func (*TokenResponse) Descriptor() ([]byte, []int)
Deprecated: Use TokenResponse.ProtoReflect.Descriptor instead.
func (*TokenResponse) GetAccessToken ¶
func (x *TokenResponse) GetAccessToken() string
func (*TokenResponse) GetExpiresIn ¶
func (x *TokenResponse) GetExpiresIn() int64
func (*TokenResponse) GetRedirectUrl ¶
func (x *TokenResponse) GetRedirectUrl() string
func (*TokenResponse) GetRefreshToken ¶
func (x *TokenResponse) GetRefreshToken() string
func (*TokenResponse) GetTokenType ¶
func (x *TokenResponse) GetTokenType() string
func (*TokenResponse) ProtoMessage ¶
func (*TokenResponse) ProtoMessage()
func (*TokenResponse) ProtoReflect ¶
func (x *TokenResponse) ProtoReflect() protoreflect.Message
func (*TokenResponse) Reset ¶
func (x *TokenResponse) Reset()
func (*TokenResponse) String ¶
func (x *TokenResponse) String() string
type TokenRevokeBody ¶
type TokenRevokeBody struct { RefreshToken string `protobuf:"bytes,1,opt,name=refresh_token,json=refreshToken,proto3" json:"refresh_token,omitempty"` // contains filtered or unexported fields }
func (*TokenRevokeBody) Descriptor
deprecated
func (*TokenRevokeBody) Descriptor() ([]byte, []int)
Deprecated: Use TokenRevokeBody.ProtoReflect.Descriptor instead.
func (*TokenRevokeBody) GetRefreshToken ¶
func (x *TokenRevokeBody) GetRefreshToken() string
func (*TokenRevokeBody) ProtoMessage ¶
func (*TokenRevokeBody) ProtoMessage()
func (*TokenRevokeBody) ProtoReflect ¶
func (x *TokenRevokeBody) ProtoReflect() protoreflect.Message
func (*TokenRevokeBody) Reset ¶
func (x *TokenRevokeBody) Reset()
func (*TokenRevokeBody) String ¶
func (x *TokenRevokeBody) String() string
type TokenRevokeRequest ¶
type TokenRevokeRequest struct { Body *TokenRevokeBody `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"` // contains filtered or unexported fields }
func (*TokenRevokeRequest) Descriptor
deprecated
func (*TokenRevokeRequest) Descriptor() ([]byte, []int)
Deprecated: Use TokenRevokeRequest.ProtoReflect.Descriptor instead.
func (*TokenRevokeRequest) GetBody ¶
func (x *TokenRevokeRequest) GetBody() *TokenRevokeBody
func (*TokenRevokeRequest) ProtoMessage ¶
func (*TokenRevokeRequest) ProtoMessage()
func (*TokenRevokeRequest) ProtoReflect ¶
func (x *TokenRevokeRequest) ProtoReflect() protoreflect.Message
func (*TokenRevokeRequest) Reset ¶
func (x *TokenRevokeRequest) Reset()
func (*TokenRevokeRequest) String ¶
func (x *TokenRevokeRequest) String() string
type TokenRevokeResponse ¶
type TokenRevokeResponse struct { TenantId string `protobuf:"bytes,1,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"` Revoked bool `protobuf:"varint,2,opt,name=revoked,proto3" json:"revoked,omitempty"` // contains filtered or unexported fields }
func (*TokenRevokeResponse) Descriptor
deprecated
func (*TokenRevokeResponse) Descriptor() ([]byte, []int)
Deprecated: Use TokenRevokeResponse.ProtoReflect.Descriptor instead.
func (*TokenRevokeResponse) GetRevoked ¶
func (x *TokenRevokeResponse) GetRevoked() bool
func (*TokenRevokeResponse) GetTenantId ¶
func (x *TokenRevokeResponse) GetTenantId() string
func (*TokenRevokeResponse) ProtoMessage ¶
func (*TokenRevokeResponse) ProtoMessage()
func (*TokenRevokeResponse) ProtoReflect ¶
func (x *TokenRevokeResponse) ProtoReflect() protoreflect.Message
func (*TokenRevokeResponse) Reset ¶
func (x *TokenRevokeResponse) Reset()
func (*TokenRevokeResponse) String ¶
func (x *TokenRevokeResponse) String() string
type UnimplementedOauthServer ¶
type UnimplementedOauthServer struct { }
UnimplementedOauthServer must be embedded to have forward compatible implementations.
func (UnimplementedOauthServer) Authenticate ¶
func (UnimplementedOauthServer) Authenticate(context.Context, *emptypb.Empty) (*AuthenticateResponse, error)
func (UnimplementedOauthServer) Authorize ¶
func (UnimplementedOauthServer) Authorize(context.Context, *AuthorizeRequest) (*AuthorizeResponse, error)
func (UnimplementedOauthServer) GetIdentityProvider ¶ added in v1.0.0
func (UnimplementedOauthServer) GetIdentityProvider(context.Context, *GetIdentityProviderRequest) (*GetIdentityProviderResponse, error)
func (UnimplementedOauthServer) IdentityProviderRegister ¶ added in v1.0.0
func (UnimplementedOauthServer) IdentityProviderRegister(context.Context, *IdProviderRegisterRequest) (*IdProviderRegisterResponse, error)
func (UnimplementedOauthServer) IdentityProviderTemplate ¶ added in v1.0.0
func (UnimplementedOauthServer) IdentityProviderTemplate(context.Context, *IdProviderTemplateRequest) (*IdProviderTemplateResponse, error)
func (UnimplementedOauthServer) OIDCRegister ¶
func (UnimplementedOauthServer) OIDCRegister(context.Context, *OIDCRegisterRequest) (*OIDCRegisterResponse, error)
func (UnimplementedOauthServer) ResetPassword ¶
func (UnimplementedOauthServer) ResetPassword(context.Context, *ResetPasswordRequest) (*ResetPasswordResponse, error)
func (UnimplementedOauthServer) Token ¶
func (UnimplementedOauthServer) Token(context.Context, *TokenRequest) (*TokenResponse, error)
func (UnimplementedOauthServer) TokenRevoke ¶
func (UnimplementedOauthServer) TokenRevoke(context.Context, *TokenRevokeRequest) (*TokenRevokeResponse, error)
func (UnimplementedOauthServer) UpdatePassword ¶
func (UnimplementedOauthServer) UpdatePassword(context.Context, *UpdatePasswordRequest) (*UpdatePasswordResponse, error)
type UnsafeOauthServer ¶
type UnsafeOauthServer interface {
// contains filtered or unexported methods
}
UnsafeOauthServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to OauthServer will result in compilation errors.
type UpdatePasswordBody ¶
type UpdatePasswordBody struct { NewPassword string `protobuf:"bytes,1,opt,name=new_password,json=newPassword,proto3" json:"new_password,omitempty"` RefreshToken string `protobuf:"bytes,2,opt,name=refresh_token,json=refreshToken,proto3" json:"refresh_token,omitempty"` // contains filtered or unexported fields }
func (*UpdatePasswordBody) Descriptor
deprecated
func (*UpdatePasswordBody) Descriptor() ([]byte, []int)
Deprecated: Use UpdatePasswordBody.ProtoReflect.Descriptor instead.
func (*UpdatePasswordBody) GetNewPassword ¶
func (x *UpdatePasswordBody) GetNewPassword() string
func (*UpdatePasswordBody) GetRefreshToken ¶
func (x *UpdatePasswordBody) GetRefreshToken() string
func (*UpdatePasswordBody) ProtoMessage ¶
func (*UpdatePasswordBody) ProtoMessage()
func (*UpdatePasswordBody) ProtoReflect ¶
func (x *UpdatePasswordBody) ProtoReflect() protoreflect.Message
func (*UpdatePasswordBody) Reset ¶
func (x *UpdatePasswordBody) Reset()
func (*UpdatePasswordBody) String ¶
func (x *UpdatePasswordBody) String() string
type UpdatePasswordRequest ¶
type UpdatePasswordRequest struct { Body *UpdatePasswordBody `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"` // contains filtered or unexported fields }
func (*UpdatePasswordRequest) Descriptor
deprecated
func (*UpdatePasswordRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdatePasswordRequest.ProtoReflect.Descriptor instead.
func (*UpdatePasswordRequest) GetBody ¶
func (x *UpdatePasswordRequest) GetBody() *UpdatePasswordBody
func (*UpdatePasswordRequest) ProtoMessage ¶
func (*UpdatePasswordRequest) ProtoMessage()
func (*UpdatePasswordRequest) ProtoReflect ¶
func (x *UpdatePasswordRequest) ProtoReflect() protoreflect.Message
func (*UpdatePasswordRequest) Reset ¶
func (x *UpdatePasswordRequest) Reset()
func (*UpdatePasswordRequest) String ¶
func (x *UpdatePasswordRequest) String() string
type UpdatePasswordResponse ¶
type UpdatePasswordResponse struct { TenantId string `protobuf:"bytes,1,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"` // contains filtered or unexported fields }
func (*UpdatePasswordResponse) Descriptor
deprecated
func (*UpdatePasswordResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdatePasswordResponse.ProtoReflect.Descriptor instead.
func (*UpdatePasswordResponse) GetTenantId ¶
func (x *UpdatePasswordResponse) GetTenantId() string
func (*UpdatePasswordResponse) ProtoMessage ¶
func (*UpdatePasswordResponse) ProtoMessage()
func (*UpdatePasswordResponse) ProtoReflect ¶
func (x *UpdatePasswordResponse) ProtoReflect() protoreflect.Message
func (*UpdatePasswordResponse) Reset ¶
func (x *UpdatePasswordResponse) Reset()
func (*UpdatePasswordResponse) String ¶
func (x *UpdatePasswordResponse) String() string