sdkintegrations

package
v0.5.11 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FinalizeConnectionInit added in v0.5.0

func FinalizeConnectionInit(w http.ResponseWriter, r *http.Request, iid sdktypes.IntegrationID, data []sdktypes.Var)

FinalizeConnectionInit finalizes the connection initialization. This is done by encoding the init data into the connection initialization URL and redirecting the user there. The destination handler will save `data` in the connection's scope.

func NewIntegration

func NewIntegration(desc sdktypes.Integration, mod sdkmodule.Module) sdkservices.Integration

NewIntegration creates a new integration, augmenting the given `desc` with the members defintion from `mod`.

Types

type OAuthData added in v0.5.0

type OAuthData struct {
	Token  *oauth2.Token
	Params url.Values
}

func DecodeOAuthData added in v0.5.0

func DecodeOAuthData(raw string) (data *OAuthData, err error)

func GetOAuthDataFromURL added in v0.5.0

func GetOAuthDataFromURL(u *url.URL) (raw string, oauth *OAuthData, err error)

func (OAuthData) Encode added in v0.5.0

func (d OAuthData) Encode() (string, error)

func (OAuthData) ToVars added in v0.5.0

func (d OAuthData) ToVars() sdktypes.Vars

Jump to

Keyboard shortcuts

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