Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadAndEncodeFile ¶
ReadAndEncodeFile load the file contents and base64 encodes it
Types ¶
type Osprey ¶
type Osprey interface { // GetAccessToken will return an OIDC token if the request is valid GetAccessToken(ctx context.Context, username, password string) (*pb.LoginResponse, error) // Authorise handles the authorisation redirect callback from OAuth2 auth flow Authorise(ctx context.Context, code, state, failure string) (*pb.LoginResponse, error) }
Osprey defines behaviour to initiate and handle an oauth2 flow
Click to show internal directories.
Click to hide internal directories.