oauth

package
v62.0.0-...-eaec136 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ServiceName - The name of service.
	ServiceName = "Oauth"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type OauthAPI

type OauthAPI interface {
	DeleteAuthorizationServerCommand() (resp *http.Response, err error)
	GetAuthorizationServerCommand() (output *models.AuthorizationServerView, resp *http.Response, err error)
	UpdateAuthorizationServerCommand(input *UpdateAuthorizationServerCommandInput) (output *models.AuthorizationServerView, resp *http.Response, err error)
}

type OauthService

type OauthService struct {
	*client.Client
}

OauthService provides the API operations for making requests to Oauth endpoint.

func New

func New(cfg *config.Config) *OauthService

New createa a new instance of the OauthService client.

Example:

cfg := config.NewConfig().WithUsername("Administrator").WithPassword("2Access").WithEndpoint(paURL)

//Create a OauthService from the configuration
svc := oauth.New(cfg)

func (*OauthService) DeleteAuthorizationServerCommand

func (s *OauthService) DeleteAuthorizationServerCommand() (resp *http.Response, err error)

DeleteAuthorizationServerCommand - Resets the OpenID Connect Provider configuration to default values RequestType: DELETE Input:

func (*OauthService) GetAuthorizationServerCommand

func (s *OauthService) GetAuthorizationServerCommand() (output *models.AuthorizationServerView, resp *http.Response, err error)

GetAuthorizationServerCommand - Get Authorization Server configuration RequestType: GET Input:

func (*OauthService) UpdateAuthorizationServerCommand

func (s *OauthService) UpdateAuthorizationServerCommand(input *UpdateAuthorizationServerCommandInput) (output *models.AuthorizationServerView, resp *http.Response, err error)

UpdateAuthorizationServerCommand - Update OAuth 2.0 Authorization Server configuration RequestType: PUT Input: input *UpdateAuthorizationServerCommandInput

type UpdateAuthorizationServerCommandInput

type UpdateAuthorizationServerCommandInput struct {
	Body models.AuthorizationServerView
}

UpdateAuthorizationServerCommandInput - Inputs for UpdateAuthorizationServerCommand

Jump to

Keyboard shortcuts

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