oauth

package
v0.0.0-...-ef3a72e Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StravaAuthenticate

func StravaAuthenticate(svc strava.OAuthAuthenticator, code string) (*strava.AuthorizationResponse, error)

Types

type AuthorizeOutput

type AuthorizeOutput struct {
	Token      string `json:"token"`
	IdentityId string `json:"identity_id"`
}

type CognitoGetIdentityOutput

type CognitoGetIdentityOutput struct {
	IdentityId string `json:"identity_id"`
	Token      string `json:"token"`
}

type Service

type Service struct {
	StravaAuthenticator strava.OAuthAuthenticator
	CognitoIdentity     cognitoidentityiface.CognitoIdentityAPI
}

func New

func New() (*Service, error)

func (*Service) Authorize

func (s *Service) Authorize(code string) (*AuthorizeOutput, error)

Jump to

Keyboard shortcuts

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