Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthFlow ¶
type AuthFlow interface { Authorize(ctx context.Context) (*http.Request, error) CallbackHandler(*TokenResponseState, http.Handler) http.Handler }
AuthFlow is an interface for OAuth authorization flows
type TokenResponseState ¶
type TokenResponseState struct { AccessToken string TokenType string ExpiresInSeconds time.Duration RefreshToken string CreatedAt int64 HttpStatusCode int Err error }
TokenResponseState is used for passing state through HTTP middleware
func (*TokenResponseState) SetGitlabTokenResponse ¶
func (t *TokenResponseState) SetGitlabTokenResponse(token internal.GitlabTokenResponse)
SetGitlabTokenResponse will modify the TokenResponseState and populate the relevant fields from a GitlabTokenResponse
Click to show internal directories.
Click to hide internal directories.