oauthservice

package
v1.15.0 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OAuthService

type OAuthService struct {
}

OAuthService struct definition (unchanged)

func NewOAuthService

func NewOAuthService() *OAuthService

NewOAuthService creates a new instance of OAuthService.

func (*OAuthService) WhoAmI

func (s *OAuthService) WhoAmI() (*Principal, error)

WhoAmI function returns the Principal struct showing the email and scope of the currently authenticated user by generating an oauth token

type Principal

type Principal struct {
	Email string `json:"email"`
	Scope []string
}

Principal struct modified to map JSON response fields.

Jump to

Keyboard shortcuts

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