Documentation ¶
Index ¶
- Constants
- func Init()
- type AccountSecret
- type AuthResponse
- type Authorizer
- type ControlPlaneRequestT
- type DisableDestinationResponse
- type OAuthErrResHandler
- func (authErrHandler *OAuthErrResHandler) DisableDestination(destination backendconfig.DestinationT, workspaceId string, ...) (statusCode int, respBody string)
- func (authErrHandler *OAuthErrResHandler) FetchToken(fetchTokenParams *RefreshTokenParams) (int, *AuthResponse)
- func (authErrHandler *OAuthErrResHandler) GetTokenInfo(refTokenParams *RefreshTokenParams, logTypeName string, authStats *OAuthStats) (int, *AuthResponse)
- func (authErrHandler *OAuthErrResHandler) RefreshToken(refTokenParams *RefreshTokenParams) (int, *AuthResponse)
- func (authErrHandler *OAuthErrResHandler) Setup()
- type OAuthStats
- type RefreshTokenBodyParams
- type RefreshTokenParams
Constants ¶
View Source
const ( DISABLE_DEST = "DISABLE_DESTINATION" REFRESH_TOKEN = "REFRESH_TOKEN" INVALID_REFRESH_TOKEN_GRANT = "refresh_token_invalid_grant" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AccountSecret ¶
type AccountSecret struct { ExpirationDate string `json:"expirationDate"` Secret json.RawMessage `json:"secret"` }
type AuthResponse ¶
type AuthResponse struct { Account AccountSecret Err string }
type Authorizer ¶
type Authorizer interface { Setup() DisableDestination(destination backendconfig.DestinationT, workspaceId string, rudderAccountId string) (statusCode int, resBody string) RefreshToken(refTokenParams *RefreshTokenParams) (int, *AuthResponse) FetchToken(fetchTokenParams *RefreshTokenParams) (int, *AuthResponse) }
type ControlPlaneRequestT ¶
type OAuthErrResHandler ¶
type OAuthErrResHandler struct { TokenProvider tokenProvider // contains filtered or unexported fields }
OAuthErrResHandler is the handle for this class
func NewOAuthErrorHandler ¶
func NewOAuthErrorHandler(provider tokenProvider) *OAuthErrResHandler
This function creates a new OauthErrorResponseHandler
func (*OAuthErrResHandler) DisableDestination ¶
func (authErrHandler *OAuthErrResHandler) DisableDestination(destination backendconfig.DestinationT, workspaceId string, rudderAccountId string) (statusCode int, respBody string)
func (*OAuthErrResHandler) FetchToken ¶
func (authErrHandler *OAuthErrResHandler) FetchToken(fetchTokenParams *RefreshTokenParams) (int, *AuthResponse)
func (*OAuthErrResHandler) GetTokenInfo ¶
func (authErrHandler *OAuthErrResHandler) GetTokenInfo(refTokenParams *RefreshTokenParams, logTypeName string, authStats *OAuthStats) (int, *AuthResponse)
func (*OAuthErrResHandler) RefreshToken ¶
func (authErrHandler *OAuthErrResHandler) RefreshToken(refTokenParams *RefreshTokenParams) (int, *AuthResponse)
func (*OAuthErrResHandler) Setup ¶
func (authErrHandler *OAuthErrResHandler) Setup()
type OAuthStats ¶
type OAuthStats struct {
// contains filtered or unexported fields
}
func (*OAuthStats) SendCountStat ¶
func (refStats *OAuthStats) SendCountStat()
Send count type stats related to OAuth(Destination)
func (*OAuthStats) SendTimerStats ¶
func (authStats *OAuthStats) SendTimerStats(startTime time.Time)
type RefreshTokenBodyParams ¶
type RefreshTokenParams ¶
Click to show internal directories.
Click to hide internal directories.