gateway

package
v0.52.0 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package gateway and packages within provide abstractions for interacting with external systems or resources

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Oauth2TokenExchange

type Oauth2TokenExchange struct{}

Oauth2TokenExchange is used to convert an oauth2.Token to a ProviderInfo struct from details returned from a provider API

func (Oauth2TokenExchange) Exchange

func (e Oauth2TokenExchange) Exchange(ctx context.Context, realm string, provider diygoapi.Provider, token *oauth2.Token) (*diygoapi.ProviderInfo, error)

Exchange calls the Google Userinfo API with the access token and converts the Userinfo struct to a User struct

Jump to

Keyboard shortcuts

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