api

package
v0.0.0-...-98ccc56 Latest Latest
Warning

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

Go to latest
Published: May 18, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Copyright 2020 Betsson Group.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

This section is empty.

Variables

Functions

func RegisterDexServer

func RegisterDexServer(s *grpc.Server, srv DexServer)

Types

type APIClient

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

APIClient represent a client wrapper for Dex

func NewClient

func NewClient(opts *Options) (*APIClient, error)

NewClient creates a new Dex client

func (*APIClient) CreateClient

func (c *APIClient) CreateClient(ctx context.Context, redirectUris []string, trustedPeers []string,
	public bool, name string, id string, logoURL string, secret string) (*Client, error)

CreateClient a new OIDC client in Dex

func (*APIClient) DeleteClient

func (c *APIClient) DeleteClient(ctx context.Context, id string) error

DeleteClient deletes the client with given Id from Dex

func (*APIClient) GetServerInfo

func (c *APIClient) GetServerInfo(ctx context.Context) (string, error)

GetServerInfo returns server info

func (*APIClient) UpdateClient

func (c *APIClient) UpdateClient(ctx context.Context, clientID string, redirectUris []string,
	trustedPeers []string, public bool, name string, logoURL string) error

UpdateClient updates an already registered OIDC client

type Client

type Client struct {
	Id           string   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Secret       string   `protobuf:"bytes,2,opt,name=secret,proto3" json:"secret,omitempty"`
	RedirectUris []string `protobuf:"bytes,3,rep,name=redirect_uris,json=redirectUris,proto3" json:"redirect_uris,omitempty"`
	TrustedPeers []string `protobuf:"bytes,4,rep,name=trusted_peers,json=trustedPeers,proto3" json:"trusted_peers,omitempty"`
	Public       bool     `protobuf:"varint,5,opt,name=public,proto3" json:"public,omitempty"`
	Name         string   `protobuf:"bytes,6,opt,name=name,proto3" json:"name,omitempty"`
	LogoUrl      string   `protobuf:"bytes,7,opt,name=logo_url,json=logoUrl,proto3" json:"logo_url,omitempty"`
	// contains filtered or unexported fields
}

Client represents an OAuth2 client.

func (*Client) Descriptor deprecated

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

Deprecated: Use Client.ProtoReflect.Descriptor instead.

func (*Client) GetId

func (x *Client) GetId() string

func (*Client) GetLogoUrl

func (x *Client) GetLogoUrl() string

func (*Client) GetName

func (x *Client) GetName() string

func (*Client) GetPublic

func (x *Client) GetPublic() bool

func (*Client) GetRedirectUris

func (x *Client) GetRedirectUris() []string

func (*Client) GetSecret

func (x *Client) GetSecret() string

func (*Client) GetTrustedPeers

func (x *Client) GetTrustedPeers() []string

func (*Client) ProtoMessage

func (*Client) ProtoMessage()

func (*Client) ProtoReflect

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

func (*Client) Reset

func (x *Client) Reset()

func (*Client) String

func (x *Client) String() string

type CreateClientReq

type CreateClientReq struct {
	Client *Client `protobuf:"bytes,1,opt,name=client,proto3" json:"client,omitempty"`
	// contains filtered or unexported fields
}

CreateClientReq is a request to make a client.

func (*CreateClientReq) Descriptor deprecated

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

Deprecated: Use CreateClientReq.ProtoReflect.Descriptor instead.

func (*CreateClientReq) GetClient

func (x *CreateClientReq) GetClient() *Client

func (*CreateClientReq) ProtoMessage

func (*CreateClientReq) ProtoMessage()

func (*CreateClientReq) ProtoReflect

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

func (*CreateClientReq) Reset

func (x *CreateClientReq) Reset()

func (*CreateClientReq) String

func (x *CreateClientReq) String() string

type CreateClientResp

type CreateClientResp struct {
	AlreadyExists bool    `protobuf:"varint,1,opt,name=already_exists,json=alreadyExists,proto3" json:"already_exists,omitempty"`
	Client        *Client `protobuf:"bytes,2,opt,name=client,proto3" json:"client,omitempty"`
	// contains filtered or unexported fields
}

CreateClientResp returns the response from creating a client.

func (*CreateClientResp) Descriptor deprecated

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

Deprecated: Use CreateClientResp.ProtoReflect.Descriptor instead.

func (*CreateClientResp) GetAlreadyExists

func (x *CreateClientResp) GetAlreadyExists() bool

func (*CreateClientResp) GetClient

func (x *CreateClientResp) GetClient() *Client

func (*CreateClientResp) ProtoMessage

func (*CreateClientResp) ProtoMessage()

func (*CreateClientResp) ProtoReflect

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

func (*CreateClientResp) Reset

func (x *CreateClientResp) Reset()

func (*CreateClientResp) String

func (x *CreateClientResp) String() string

type CreatePasswordReq

type CreatePasswordReq struct {
	Password *Password `protobuf:"bytes,1,opt,name=password,proto3" json:"password,omitempty"`
	// contains filtered or unexported fields
}

CreatePasswordReq is a request to make a password.

func (*CreatePasswordReq) Descriptor deprecated

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

Deprecated: Use CreatePasswordReq.ProtoReflect.Descriptor instead.

func (*CreatePasswordReq) GetPassword

func (x *CreatePasswordReq) GetPassword() *Password

func (*CreatePasswordReq) ProtoMessage

func (*CreatePasswordReq) ProtoMessage()

func (*CreatePasswordReq) ProtoReflect

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

func (*CreatePasswordReq) Reset

func (x *CreatePasswordReq) Reset()

func (*CreatePasswordReq) String

func (x *CreatePasswordReq) String() string

type CreatePasswordResp

type CreatePasswordResp struct {
	AlreadyExists bool `protobuf:"varint,1,opt,name=already_exists,json=alreadyExists,proto3" json:"already_exists,omitempty"`
	// contains filtered or unexported fields
}

CreatePasswordResp returns the response from creating a password.

func (*CreatePasswordResp) Descriptor deprecated

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

Deprecated: Use CreatePasswordResp.ProtoReflect.Descriptor instead.

func (*CreatePasswordResp) GetAlreadyExists

func (x *CreatePasswordResp) GetAlreadyExists() bool

func (*CreatePasswordResp) ProtoMessage

func (*CreatePasswordResp) ProtoMessage()

func (*CreatePasswordResp) ProtoReflect

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

func (*CreatePasswordResp) Reset

func (x *CreatePasswordResp) Reset()

func (*CreatePasswordResp) String

func (x *CreatePasswordResp) String() string

type DeleteClientReq

type DeleteClientReq struct {

	// The ID of the client.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

DeleteClientReq is a request to delete a client.

func (*DeleteClientReq) Descriptor deprecated

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

Deprecated: Use DeleteClientReq.ProtoReflect.Descriptor instead.

func (*DeleteClientReq) GetId

func (x *DeleteClientReq) GetId() string

func (*DeleteClientReq) ProtoMessage

func (*DeleteClientReq) ProtoMessage()

func (*DeleteClientReq) ProtoReflect

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

func (*DeleteClientReq) Reset

func (x *DeleteClientReq) Reset()

func (*DeleteClientReq) String

func (x *DeleteClientReq) String() string

type DeleteClientResp

type DeleteClientResp struct {
	NotFound bool `protobuf:"varint,1,opt,name=not_found,json=notFound,proto3" json:"not_found,omitempty"`
	// contains filtered or unexported fields
}

DeleteClientResp determines if the client is deleted successfully.

func (*DeleteClientResp) Descriptor deprecated

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

Deprecated: Use DeleteClientResp.ProtoReflect.Descriptor instead.

func (*DeleteClientResp) GetNotFound

func (x *DeleteClientResp) GetNotFound() bool

func (*DeleteClientResp) ProtoMessage

func (*DeleteClientResp) ProtoMessage()

func (*DeleteClientResp) ProtoReflect

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

func (*DeleteClientResp) Reset

func (x *DeleteClientResp) Reset()

func (*DeleteClientResp) String

func (x *DeleteClientResp) String() string

type DeletePasswordReq

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

DeletePasswordReq is a request to delete a password.

func (*DeletePasswordReq) Descriptor deprecated

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

Deprecated: Use DeletePasswordReq.ProtoReflect.Descriptor instead.

func (*DeletePasswordReq) GetEmail

func (x *DeletePasswordReq) GetEmail() string

func (*DeletePasswordReq) ProtoMessage

func (*DeletePasswordReq) ProtoMessage()

func (*DeletePasswordReq) ProtoReflect

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

func (*DeletePasswordReq) Reset

func (x *DeletePasswordReq) Reset()

func (*DeletePasswordReq) String

func (x *DeletePasswordReq) String() string

type DeletePasswordResp

type DeletePasswordResp struct {
	NotFound bool `protobuf:"varint,1,opt,name=not_found,json=notFound,proto3" json:"not_found,omitempty"`
	// contains filtered or unexported fields
}

DeletePasswordResp returns the response from deleting a password.

func (*DeletePasswordResp) Descriptor deprecated

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

Deprecated: Use DeletePasswordResp.ProtoReflect.Descriptor instead.

func (*DeletePasswordResp) GetNotFound

func (x *DeletePasswordResp) GetNotFound() bool

func (*DeletePasswordResp) ProtoMessage

func (*DeletePasswordResp) ProtoMessage()

func (*DeletePasswordResp) ProtoReflect

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

func (*DeletePasswordResp) Reset

func (x *DeletePasswordResp) Reset()

func (*DeletePasswordResp) String

func (x *DeletePasswordResp) String() string

type DexClient

type DexClient interface {
	// CreateClient creates a client.
	CreateClient(ctx context.Context, in *CreateClientReq, opts ...grpc.CallOption) (*CreateClientResp, error)
	// UpdateClient updates an existing client
	UpdateClient(ctx context.Context, in *UpdateClientReq, opts ...grpc.CallOption) (*UpdateClientResp, error)
	// DeleteClient deletes the provided client.
	DeleteClient(ctx context.Context, in *DeleteClientReq, opts ...grpc.CallOption) (*DeleteClientResp, error)
	// CreatePassword creates a password.
	CreatePassword(ctx context.Context, in *CreatePasswordReq, opts ...grpc.CallOption) (*CreatePasswordResp, error)
	// UpdatePassword modifies existing password.
	UpdatePassword(ctx context.Context, in *UpdatePasswordReq, opts ...grpc.CallOption) (*UpdatePasswordResp, error)
	// DeletePassword deletes the password.
	DeletePassword(ctx context.Context, in *DeletePasswordReq, opts ...grpc.CallOption) (*DeletePasswordResp, error)
	// ListPassword lists all password entries.
	ListPasswords(ctx context.Context, in *ListPasswordReq, opts ...grpc.CallOption) (*ListPasswordResp, error)
	// GetVersion returns version information of the server.
	GetVersion(ctx context.Context, in *VersionReq, opts ...grpc.CallOption) (*VersionResp, error)
	// ListRefresh lists all the refresh token entries for a particular user.
	ListRefresh(ctx context.Context, in *ListRefreshReq, opts ...grpc.CallOption) (*ListRefreshResp, error)
	// RevokeRefresh revokes the refresh token for the provided user-client pair.
	//
	// Note that each user-client pair can have only one refresh token at a time.
	RevokeRefresh(ctx context.Context, in *RevokeRefreshReq, opts ...grpc.CallOption) (*RevokeRefreshResp, error)
	// VerifyPassword returns whether a password matches a hash for a specific email or not.
	VerifyPassword(ctx context.Context, in *VerifyPasswordReq, opts ...grpc.CallOption) (*VerifyPasswordResp, error)
}

DexClient is the client API for Dex service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewDexClient

func NewDexClient(cc grpc.ClientConnInterface) DexClient

type DexServer

type DexServer interface {
	// CreateClient creates a client.
	CreateClient(context.Context, *CreateClientReq) (*CreateClientResp, error)
	// UpdateClient updates an existing client
	UpdateClient(context.Context, *UpdateClientReq) (*UpdateClientResp, error)
	// DeleteClient deletes the provided client.
	DeleteClient(context.Context, *DeleteClientReq) (*DeleteClientResp, error)
	// CreatePassword creates a password.
	CreatePassword(context.Context, *CreatePasswordReq) (*CreatePasswordResp, error)
	// UpdatePassword modifies existing password.
	UpdatePassword(context.Context, *UpdatePasswordReq) (*UpdatePasswordResp, error)
	// DeletePassword deletes the password.
	DeletePassword(context.Context, *DeletePasswordReq) (*DeletePasswordResp, error)
	// ListPassword lists all password entries.
	ListPasswords(context.Context, *ListPasswordReq) (*ListPasswordResp, error)
	// GetVersion returns version information of the server.
	GetVersion(context.Context, *VersionReq) (*VersionResp, error)
	// ListRefresh lists all the refresh token entries for a particular user.
	ListRefresh(context.Context, *ListRefreshReq) (*ListRefreshResp, error)
	// RevokeRefresh revokes the refresh token for the provided user-client pair.
	//
	// Note that each user-client pair can have only one refresh token at a time.
	RevokeRefresh(context.Context, *RevokeRefreshReq) (*RevokeRefreshResp, error)
	// VerifyPassword returns whether a password matches a hash for a specific email or not.
	VerifyPassword(context.Context, *VerifyPasswordReq) (*VerifyPasswordResp, error)
}

DexServer is the server API for Dex service.

type ListPasswordReq

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

ListPasswordReq is a request to enumerate passwords.

func (*ListPasswordReq) Descriptor deprecated

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

Deprecated: Use ListPasswordReq.ProtoReflect.Descriptor instead.

func (*ListPasswordReq) ProtoMessage

func (*ListPasswordReq) ProtoMessage()

func (*ListPasswordReq) ProtoReflect

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

func (*ListPasswordReq) Reset

func (x *ListPasswordReq) Reset()

func (*ListPasswordReq) String

func (x *ListPasswordReq) String() string

type ListPasswordResp

type ListPasswordResp struct {
	Passwords []*Password `protobuf:"bytes,1,rep,name=passwords,proto3" json:"passwords,omitempty"`
	// contains filtered or unexported fields
}

ListPasswordResp returns a list of passwords.

func (*ListPasswordResp) Descriptor deprecated

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

Deprecated: Use ListPasswordResp.ProtoReflect.Descriptor instead.

func (*ListPasswordResp) GetPasswords

func (x *ListPasswordResp) GetPasswords() []*Password

func (*ListPasswordResp) ProtoMessage

func (*ListPasswordResp) ProtoMessage()

func (*ListPasswordResp) ProtoReflect

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

func (*ListPasswordResp) Reset

func (x *ListPasswordResp) Reset()

func (*ListPasswordResp) String

func (x *ListPasswordResp) String() string

type ListRefreshReq

type ListRefreshReq struct {

	// The "sub" claim returned in the ID Token.
	UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// contains filtered or unexported fields
}

ListRefreshReq is a request to enumerate the refresh tokens of a user.

func (*ListRefreshReq) Descriptor deprecated

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

Deprecated: Use ListRefreshReq.ProtoReflect.Descriptor instead.

func (*ListRefreshReq) GetUserId

func (x *ListRefreshReq) GetUserId() string

func (*ListRefreshReq) ProtoMessage

func (*ListRefreshReq) ProtoMessage()

func (*ListRefreshReq) ProtoReflect

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

func (*ListRefreshReq) Reset

func (x *ListRefreshReq) Reset()

func (*ListRefreshReq) String

func (x *ListRefreshReq) String() string

type ListRefreshResp

type ListRefreshResp struct {
	RefreshTokens []*RefreshTokenRef `protobuf:"bytes,1,rep,name=refresh_tokens,json=refreshTokens,proto3" json:"refresh_tokens,omitempty"`
	// contains filtered or unexported fields
}

ListRefreshResp returns a list of refresh tokens for a user.

func (*ListRefreshResp) Descriptor deprecated

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

Deprecated: Use ListRefreshResp.ProtoReflect.Descriptor instead.

func (*ListRefreshResp) GetRefreshTokens

func (x *ListRefreshResp) GetRefreshTokens() []*RefreshTokenRef

func (*ListRefreshResp) ProtoMessage

func (*ListRefreshResp) ProtoMessage()

func (*ListRefreshResp) ProtoReflect

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

func (*ListRefreshResp) Reset

func (x *ListRefreshResp) Reset()

func (*ListRefreshResp) String

func (x *ListRefreshResp) String() string

type Options

type Options struct {
	// HostAndPort host name and port of gRPC server
	HostAndPort string
	// ClientCrt TLS certificate for gRPC client
	ClientCrt string
	// ClientKey TLS certificate key for gRPC client
	ClientKey string
	// ClientCA self signed CA certificate for gRPC TLS connection
	ClientCA string
}

Options keeps some configuration options for Dex client

type Password

type Password struct {
	Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
	// Currently we do not accept plain text passwords. Could be an option in the future.
	Hash     []byte `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"`
	Username string `protobuf:"bytes,3,opt,name=username,proto3" json:"username,omitempty"`
	UserId   string `protobuf:"bytes,4,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// contains filtered or unexported fields
}

Password is an email for password mapping managed by the storage.

func (*Password) Descriptor deprecated

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

Deprecated: Use Password.ProtoReflect.Descriptor instead.

func (*Password) GetEmail

func (x *Password) GetEmail() string

func (*Password) GetHash

func (x *Password) GetHash() []byte

func (*Password) GetUserId

func (x *Password) GetUserId() string

func (*Password) GetUsername

func (x *Password) GetUsername() string

func (*Password) ProtoMessage

func (*Password) ProtoMessage()

func (*Password) ProtoReflect

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

func (*Password) Reset

func (x *Password) Reset()

func (*Password) String

func (x *Password) String() string

type RefreshTokenRef

type RefreshTokenRef struct {

	// ID of the refresh token.
	Id        string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	ClientId  string `protobuf:"bytes,2,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
	CreatedAt int64  `protobuf:"varint,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	LastUsed  int64  `protobuf:"varint,6,opt,name=last_used,json=lastUsed,proto3" json:"last_used,omitempty"`
	// contains filtered or unexported fields
}

RefreshTokenRef contains the metadata for a refresh token that is managed by the storage.

func (*RefreshTokenRef) Descriptor deprecated

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

Deprecated: Use RefreshTokenRef.ProtoReflect.Descriptor instead.

func (*RefreshTokenRef) GetClientId

func (x *RefreshTokenRef) GetClientId() string

func (*RefreshTokenRef) GetCreatedAt

func (x *RefreshTokenRef) GetCreatedAt() int64

func (*RefreshTokenRef) GetId

func (x *RefreshTokenRef) GetId() string

func (*RefreshTokenRef) GetLastUsed

func (x *RefreshTokenRef) GetLastUsed() int64

func (*RefreshTokenRef) ProtoMessage

func (*RefreshTokenRef) ProtoMessage()

func (*RefreshTokenRef) ProtoReflect

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

func (*RefreshTokenRef) Reset

func (x *RefreshTokenRef) Reset()

func (*RefreshTokenRef) String

func (x *RefreshTokenRef) String() string

type RevokeRefreshReq

type RevokeRefreshReq struct {

	// The "sub" claim returned in the ID Token.
	UserId   string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	ClientId string `protobuf:"bytes,2,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
	// contains filtered or unexported fields
}

RevokeRefreshReq is a request to revoke the refresh token of the user-client pair.

func (*RevokeRefreshReq) Descriptor deprecated

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

Deprecated: Use RevokeRefreshReq.ProtoReflect.Descriptor instead.

func (*RevokeRefreshReq) GetClientId

func (x *RevokeRefreshReq) GetClientId() string

func (*RevokeRefreshReq) GetUserId

func (x *RevokeRefreshReq) GetUserId() string

func (*RevokeRefreshReq) ProtoMessage

func (*RevokeRefreshReq) ProtoMessage()

func (*RevokeRefreshReq) ProtoReflect

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

func (*RevokeRefreshReq) Reset

func (x *RevokeRefreshReq) Reset()

func (*RevokeRefreshReq) String

func (x *RevokeRefreshReq) String() string

type RevokeRefreshResp

type RevokeRefreshResp struct {

	// Set to true is refresh token was not found and token could not be revoked.
	NotFound bool `protobuf:"varint,1,opt,name=not_found,json=notFound,proto3" json:"not_found,omitempty"`
	// contains filtered or unexported fields
}

RevokeRefreshResp determines if the refresh token is revoked successfully.

func (*RevokeRefreshResp) Descriptor deprecated

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

Deprecated: Use RevokeRefreshResp.ProtoReflect.Descriptor instead.

func (*RevokeRefreshResp) GetNotFound

func (x *RevokeRefreshResp) GetNotFound() bool

func (*RevokeRefreshResp) ProtoMessage

func (*RevokeRefreshResp) ProtoMessage()

func (*RevokeRefreshResp) ProtoReflect

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

func (*RevokeRefreshResp) Reset

func (x *RevokeRefreshResp) Reset()

func (*RevokeRefreshResp) String

func (x *RevokeRefreshResp) String() string

type UnimplementedDexServer

type UnimplementedDexServer struct {
}

UnimplementedDexServer can be embedded to have forward compatible implementations.

func (*UnimplementedDexServer) CreateClient

func (*UnimplementedDexServer) CreatePassword

func (*UnimplementedDexServer) DeleteClient

func (*UnimplementedDexServer) DeletePassword

func (*UnimplementedDexServer) GetVersion

func (*UnimplementedDexServer) ListPasswords

func (*UnimplementedDexServer) ListRefresh

func (*UnimplementedDexServer) RevokeRefresh

func (*UnimplementedDexServer) UpdateClient

func (*UnimplementedDexServer) UpdatePassword

func (*UnimplementedDexServer) VerifyPassword

type UpdateClientReq

type UpdateClientReq struct {
	Id           string   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	RedirectUris []string `protobuf:"bytes,2,rep,name=redirect_uris,json=redirectUris,proto3" json:"redirect_uris,omitempty"`
	TrustedPeers []string `protobuf:"bytes,3,rep,name=trusted_peers,json=trustedPeers,proto3" json:"trusted_peers,omitempty"`
	Name         string   `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
	LogoUrl      string   `protobuf:"bytes,5,opt,name=logo_url,json=logoUrl,proto3" json:"logo_url,omitempty"`
	// contains filtered or unexported fields
}

UpdateClientReq is a request to update an exisitng client.

func (*UpdateClientReq) Descriptor deprecated

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

Deprecated: Use UpdateClientReq.ProtoReflect.Descriptor instead.

func (*UpdateClientReq) GetId

func (x *UpdateClientReq) GetId() string

func (*UpdateClientReq) GetLogoUrl

func (x *UpdateClientReq) GetLogoUrl() string

func (*UpdateClientReq) GetName

func (x *UpdateClientReq) GetName() string

func (*UpdateClientReq) GetRedirectUris

func (x *UpdateClientReq) GetRedirectUris() []string

func (*UpdateClientReq) GetTrustedPeers

func (x *UpdateClientReq) GetTrustedPeers() []string

func (*UpdateClientReq) ProtoMessage

func (*UpdateClientReq) ProtoMessage()

func (*UpdateClientReq) ProtoReflect

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

func (*UpdateClientReq) Reset

func (x *UpdateClientReq) Reset()

func (*UpdateClientReq) String

func (x *UpdateClientReq) String() string

type UpdateClientResp

type UpdateClientResp struct {
	NotFound bool `protobuf:"varint,1,opt,name=not_found,json=notFound,proto3" json:"not_found,omitempty"`
	// contains filtered or unexported fields
}

UpdateClientResp returns the reponse form updating a client.

func (*UpdateClientResp) Descriptor deprecated

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

Deprecated: Use UpdateClientResp.ProtoReflect.Descriptor instead.

func (*UpdateClientResp) GetNotFound

func (x *UpdateClientResp) GetNotFound() bool

func (*UpdateClientResp) ProtoMessage

func (*UpdateClientResp) ProtoMessage()

func (*UpdateClientResp) ProtoReflect

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

func (*UpdateClientResp) Reset

func (x *UpdateClientResp) Reset()

func (*UpdateClientResp) String

func (x *UpdateClientResp) String() string

type UpdatePasswordReq

type UpdatePasswordReq struct {

	// The email used to lookup the password. This field cannot be modified
	Email       string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
	NewHash     []byte `protobuf:"bytes,2,opt,name=new_hash,json=newHash,proto3" json:"new_hash,omitempty"`
	NewUsername string `protobuf:"bytes,3,opt,name=new_username,json=newUsername,proto3" json:"new_username,omitempty"`
	// contains filtered or unexported fields
}

UpdatePasswordReq is a request to modify an existing password.

func (*UpdatePasswordReq) Descriptor deprecated

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

Deprecated: Use UpdatePasswordReq.ProtoReflect.Descriptor instead.

func (*UpdatePasswordReq) GetEmail

func (x *UpdatePasswordReq) GetEmail() string

func (*UpdatePasswordReq) GetNewHash

func (x *UpdatePasswordReq) GetNewHash() []byte

func (*UpdatePasswordReq) GetNewUsername

func (x *UpdatePasswordReq) GetNewUsername() string

func (*UpdatePasswordReq) ProtoMessage

func (*UpdatePasswordReq) ProtoMessage()

func (*UpdatePasswordReq) ProtoReflect

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

func (*UpdatePasswordReq) Reset

func (x *UpdatePasswordReq) Reset()

func (*UpdatePasswordReq) String

func (x *UpdatePasswordReq) String() string

type UpdatePasswordResp

type UpdatePasswordResp struct {
	NotFound bool `protobuf:"varint,1,opt,name=not_found,json=notFound,proto3" json:"not_found,omitempty"`
	// contains filtered or unexported fields
}

UpdatePasswordResp returns the response from modifying an existing password.

func (*UpdatePasswordResp) Descriptor deprecated

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

Deprecated: Use UpdatePasswordResp.ProtoReflect.Descriptor instead.

func (*UpdatePasswordResp) GetNotFound

func (x *UpdatePasswordResp) GetNotFound() bool

func (*UpdatePasswordResp) ProtoMessage

func (*UpdatePasswordResp) ProtoMessage()

func (*UpdatePasswordResp) ProtoReflect

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

func (*UpdatePasswordResp) Reset

func (x *UpdatePasswordResp) Reset()

func (*UpdatePasswordResp) String

func (x *UpdatePasswordResp) String() string

type VerifyPasswordReq

type VerifyPasswordReq struct {
	Email    string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
	Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
	// contains filtered or unexported fields
}

func (*VerifyPasswordReq) Descriptor deprecated

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

Deprecated: Use VerifyPasswordReq.ProtoReflect.Descriptor instead.

func (*VerifyPasswordReq) GetEmail

func (x *VerifyPasswordReq) GetEmail() string

func (*VerifyPasswordReq) GetPassword

func (x *VerifyPasswordReq) GetPassword() string

func (*VerifyPasswordReq) ProtoMessage

func (*VerifyPasswordReq) ProtoMessage()

func (*VerifyPasswordReq) ProtoReflect

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

func (*VerifyPasswordReq) Reset

func (x *VerifyPasswordReq) Reset()

func (*VerifyPasswordReq) String

func (x *VerifyPasswordReq) String() string

type VerifyPasswordResp

type VerifyPasswordResp struct {
	Verified bool `protobuf:"varint,1,opt,name=verified,proto3" json:"verified,omitempty"`
	NotFound bool `protobuf:"varint,2,opt,name=not_found,json=notFound,proto3" json:"not_found,omitempty"`
	// contains filtered or unexported fields
}

func (*VerifyPasswordResp) Descriptor deprecated

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

Deprecated: Use VerifyPasswordResp.ProtoReflect.Descriptor instead.

func (*VerifyPasswordResp) GetNotFound

func (x *VerifyPasswordResp) GetNotFound() bool

func (*VerifyPasswordResp) GetVerified

func (x *VerifyPasswordResp) GetVerified() bool

func (*VerifyPasswordResp) ProtoMessage

func (*VerifyPasswordResp) ProtoMessage()

func (*VerifyPasswordResp) ProtoReflect

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

func (*VerifyPasswordResp) Reset

func (x *VerifyPasswordResp) Reset()

func (*VerifyPasswordResp) String

func (x *VerifyPasswordResp) String() string

type VersionReq

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

VersionReq is a request to fetch version info.

func (*VersionReq) Descriptor deprecated

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

Deprecated: Use VersionReq.ProtoReflect.Descriptor instead.

func (*VersionReq) ProtoMessage

func (*VersionReq) ProtoMessage()

func (*VersionReq) ProtoReflect

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

func (*VersionReq) Reset

func (x *VersionReq) Reset()

func (*VersionReq) String

func (x *VersionReq) String() string

type VersionResp

type VersionResp struct {

	// Semantic version of the server.
	Server string `protobuf:"bytes,1,opt,name=server,proto3" json:"server,omitempty"`
	// Numeric version of the API. It increases everytime a new call is added to the API.
	// Clients should use this info to determine if the server supports specific features.
	Api int32 `protobuf:"varint,2,opt,name=api,proto3" json:"api,omitempty"`
	// contains filtered or unexported fields
}

VersionResp holds the version info of components.

func (*VersionResp) Descriptor deprecated

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

Deprecated: Use VersionResp.ProtoReflect.Descriptor instead.

func (*VersionResp) GetApi

func (x *VersionResp) GetApi() int32

func (*VersionResp) GetServer

func (x *VersionResp) GetServer() string

func (*VersionResp) ProtoMessage

func (*VersionResp) ProtoMessage()

func (*VersionResp) ProtoReflect

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

func (*VersionResp) Reset

func (x *VersionResp) Reset()

func (*VersionResp) String

func (x *VersionResp) String() string

Jump to

Keyboard shortcuts

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