gsmauth

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2023 License: GPL-3.0 Imports: 13 Imported by: 1

Documentation

Overview

Package gsmauth provides the authentication mechanisms for Google APIs

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetClient

func GetClient(subject string, credentials []byte, scope ...string) (client *http.Client, err error)

GetClient returns a client to be used for API services

func GetClientADC added in v0.2.5

func GetClientADC(subject, serviceAccountEmail string, scope ...string) (client *http.Client, err error)

GetClientADC returns a client to be used for API services

func GetClientUser

func GetClientUser(credentials []byte, tokenName string, redirectPort int, scope ...string) (client *http.Client, err error)

GetClientUser does user-based authentication via OAuth and returns an *http.Client

Types

This section is empty.

Jump to

Keyboard shortcuts

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