Documentation
¶
Index ¶
- func GetOauthAuthorizationUrl(setting config.BacklogSettings, authCode string) (string, error)
- func WaitForAuthorizationApprove(space string, authCode string, spinner *spinner.Spinner) (string, error)
- type AuthorizationApprovedResponse
- type ErrorOrganizationNotFound
- type OauthAuthorizationCodeResponse
- type RequestAccessTokenResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetOauthAuthorizationUrl ¶
func GetOauthAuthorizationUrl(setting config.BacklogSettings, authCode string) (string, error)
Types ¶
type AuthorizationApprovedResponse ¶
type AuthorizationApprovedResponse struct {
AuthorizationCode string `json:"code"`
}
type ErrorOrganizationNotFound ¶
type ErrorOrganizationNotFound struct {
// contains filtered or unexported fields
}
func (*ErrorOrganizationNotFound) Error ¶
func (e *ErrorOrganizationNotFound) Error() string
type OauthAuthorizationCodeResponse ¶
type OauthAuthorizationCodeResponse struct {
Location string `json:"location"`
}
type RequestAccessTokenResponse ¶
type RequestAccessTokenResponse struct { AccessToken string `json:"access_token"` RefreshToken string `json:"refresh_token"` TokenType string `json:"token_type"` ExpiresIn uint64 `json:"expires_in"` }
func GetAccessTokenFromAuthorizationCode ¶
func GetAccessTokenFromAuthorizationCode(space string, domain string, authorizationCode string) (RequestAccessTokenResponse, error)
func GetAccessTokenFromRefreshToken ¶
func GetAccessTokenFromRefreshToken(setting config.BacklogSettings, refreshToken string) (RequestAccessTokenResponse, error)
Click to show internal directories.
Click to hide internal directories.