socialimpl

package
v11.1.4-modfix Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2024 License: AGPL-3.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SocialService

type SocialService struct {
	// contains filtered or unexported fields
}

func ProvideService

func ProvideService(cfg *setting.Cfg,
	features featuremgmt.FeatureToggles,
	usageStats usagestats.Service,
	bundleRegistry supportbundles.Service,
	cache remotecache.CacheStorage,
	orgRoleMapper *connectors.OrgRoleMapper,
	ssoSettings ssosettings.Service,
) *SocialService

func (*SocialService) GetConnector

func (ss *SocialService) GetConnector(name string) (social.SocialConnector, error)

func (*SocialService) GetOAuthHttpClient

func (ss *SocialService) GetOAuthHttpClient(name string) (*http.Client, error)

func (*SocialService) GetOAuthInfoProvider

func (ss *SocialService) GetOAuthInfoProvider(name string) *social.OAuthInfo

func (*SocialService) GetOAuthInfoProviders

func (ss *SocialService) GetOAuthInfoProviders() map[string]*social.OAuthInfo

GetOAuthInfoProviders returns enabled OAuth providers

func (*SocialService) GetOAuthProviders

func (ss *SocialService) GetOAuthProviders() map[string]bool

GetOAuthProviders returns available oauth providers and if they're enabled or not

Jump to

Keyboard shortcuts

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