auth

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EndPoint = "authservice"
)
View Source
const (
	Token = "token"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	*core.Service
}

func NewService

func NewService(hostUrl *string, root *core.Root) *Service

func (*Service) GetAccessToken

func (s *Service) GetAccessToken() (*TokenResponse, error)

GetAccessToken - Get a new token for user

type TokenRequest

type TokenRequest struct {
	ApiKey        string `json:"apiKey"`
	ClientId      string `json:"clientId"`
	ClientSecret  string `json:"clientSecret"`
	AccessToken   string `json:"accessToken"`
	OrgId         string `json:"orgId"`
	OAuthAppTypes string `json:"oAuthAppTypes"`
}

type TokenResponse

type TokenResponse struct {
	Token string `json:"token"`
}

TokenResponse -

Jump to

Keyboard shortcuts

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