Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewJWTClientInterceptor ¶
func NewJWTClientInterceptor(logger logging.Logger, client LoginClient) apigen.RequestEditorFn
func WithLoginTokenAuth ¶
func WithLoginTokenAuth(logger logging.Logger, client LoginClient) apigen.ClientOption
WithLoginTokenAuth adds an authentication provider into the GetClient request, which authenticates using the JWT token. It can update its token.
BUG(ariels): It does not (yet) update its token.
Types ¶
type FixedLoginClient ¶
type FixedLoginClient struct {
// contains filtered or unexported fields
}
FixedLoginClient just returns the same token each time, which it does not refresh.
func NewFixedLoginClient ¶
func NewFixedLoginClient(token string) *FixedLoginClient
type JWTAuthClient ¶
type JWTAuthClient struct {
Client *apigen.ClientWithResponses
}
Notes ¶
Bugs ¶
It does not (yet) update its token.
Click to show internal directories.
Click to hide internal directories.