Documentation
¶
Index ¶
- func RegisterAuthIPFSService(cctx client.Context, mux *runtime.ServeMux, node config.IPFSNode) error
- type AuthService
- func (s *AuthService) Assertion(ctx context.Context, req *authv1.AssertRequest) (*authv1.AssertResponse, error)
- func (s *AuthService) Challenge(ctx context.Context, req *authv1.ChallengeRequest) (*authv1.ChallengeResponse, error)
- func (s *AuthService) Login(ctx context.Context, req *authv1.LoginRequest) (*authv1.LoginResponse, error)
- func (s *AuthService) Register(ctx context.Context, req *authv1.RegisterRequest) (*authv1.RegisterResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AuthService ¶
type AuthService struct {
// contains filtered or unexported fields
}
`AuthService` is a struct that contains a reference to a cache, a client context, and an IPFS node. @property {string} rpName - The name of the relying party. @property {string} rpIcon - The icon of the relying party. @property cache - a cache for storing the user's session @property cctx - The client context for the service. @property node - This is the IPFS node that the service will use to store and retrieve data.
func (*AuthService) Assertion ¶
func (s *AuthService) Assertion(ctx context.Context, req *authv1.AssertRequest) (*authv1.AssertResponse, error)
Returning the options for the assertion.
func (*AuthService) Challenge ¶
func (s *AuthService) Challenge(ctx context.Context, req *authv1.ChallengeRequest) (*authv1.ChallengeResponse, error)
Creating a new session and storing it in the cache.
func (*AuthService) Login ¶
func (s *AuthService) Login(ctx context.Context, req *authv1.LoginRequest) (*authv1.LoginResponse, error)
A gRPC endpoint that is called by the client.
func (*AuthService) Register ¶
func (s *AuthService) Register(ctx context.Context, req *authv1.RegisterRequest) (*authv1.RegisterResponse, error)
Registering the credential.
Click to show internal directories.
Click to hide internal directories.