oauth

package
v0.0.0-...-27c9e6d Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExchangeRefreshToken

func ExchangeRefreshToken(gProvider goth.Provider, oauthProvider models.OauthProvider, integrationName, accountID string, redisStore redisStore.RedisStore) (accessToken, refreshToken string, err error)

ExchangeRefreshToken tries to get access and refresh tokens from redis (this method needs refresh token when access token expired)

func GetGitProviderByName

func GetGitProviderByName(name string) (*goth.Provider, error)

func GetGitProviders

func GetGitProviders(cbURIBase string) (map[string]*goth.Provider, error)

func GetProviderByName

func GetProviderByName(name string) (*goth.Provider, error)

func GetProviderModelByName

func GetProviderModelByName(name string) (*models.OauthProvider, error)

func GetProviders

func GetProviders(cbURIBase string) (map[string]*goth.Provider, error)

GetProviders returns a slice of providers formed from the corresponding config section

func GetProvidersMap

func GetProvidersMap() map[string]models.OauthProvider

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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