auth

package
v0.3.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 21, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetOauthAuthorizationUrl

func GetOauthAuthorizationUrl(setting config.BacklogSettings, authCode string) (string, error)

func WaitForAuthorizationApprove

func WaitForAuthorizationApprove(space string, authCode string, spinner *spinner.Spinner) (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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL