auth

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthAPI

type AuthAPI interface {
	DeleteBasicAuthCommand() (resp *http.Response, err error)
	GetBasicAuthCommand() (output *models.BasicConfig, resp *http.Response, err error)
	UpdateBasicAuthCommand(input *UpdateBasicAuthCommandInput) (output *models.BasicAuthConfigView, resp *http.Response, err error)
	DeleteOAuthAuthCommand() (resp *http.Response, err error)
	GetOAuthAuthCommand() (output *models.OAuthConfigView, resp *http.Response, err error)
	UpdateOAuthAuthCommand(input *UpdateOAuthAuthCommandInput) (output *models.OAuthConfigView, resp *http.Response, err error)
	DeleteOidcAuthCommand() (resp *http.Response, err error)
	GetOidcAuthCommand() (output *models.OidcConfigView, resp *http.Response, err error)
	UpdateOidcAuthCommand(input *UpdateOidcAuthCommandInput) (output *models.OidcConfigView, resp *http.Response, err error)
	DeleteAdminBasicWebSessionCommand() (resp *http.Response, err error)
	GetAdminBasicWebSessionCommand() (output *models.AdminBasicWebSessionView, resp *http.Response, err error)
	UpdateAdminBasicWebSessionCommand(input *UpdateAdminBasicWebSessionCommandInput) (output *models.AdminBasicWebSessionView, resp *http.Response, err error)
}

type AuthService

type AuthService struct {
	*client.Client
}

AuthService provides the API operations for making requests to Auth endpoint.

func New

func New(cfg *config.Config) *AuthService

New createa a new instance of the AuthService client.

Example:

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

//Create a AuthService from the configuration
svc := auth.New(cfg)

func (*AuthService) DeleteAdminBasicWebSessionCommand

func (s *AuthService) DeleteAdminBasicWebSessionCommand() (resp *http.Response, err error)

DeleteAdminBasicWebSessionCommand - Resets the Admin Web Session configuration to default values RequestType: DELETE Input:

func (*AuthService) DeleteBasicAuthCommand

func (s *AuthService) DeleteBasicAuthCommand() (resp *http.Response, err error)

DeleteBasicAuthCommand - Resets the HTTP Basic Authentication configuration to default values RequestType: DELETE Input:

func (*AuthService) DeleteOAuthAuthCommand

func (s *AuthService) DeleteOAuthAuthCommand() (resp *http.Response, err error)

DeleteOAuthAuthCommand - Resets the OAuth Authentication configuration to default values RequestType: DELETE Input:

func (*AuthService) DeleteOidcAuthCommand

func (s *AuthService) DeleteOidcAuthCommand() (resp *http.Response, err error)

DeleteOidcAuthCommand - Resets the OIDC Authentication configuration to default values RequestType: DELETE Input:

func (*AuthService) GetAdminBasicWebSessionCommand

func (s *AuthService) GetAdminBasicWebSessionCommand() (output *models.AdminBasicWebSessionView, resp *http.Response, err error)

GetAdminBasicWebSessionCommand - Get the admin web session configuration RequestType: GET Input:

func (*AuthService) GetBasicAuthCommand

func (s *AuthService) GetBasicAuthCommand() (output *models.BasicConfig, resp *http.Response, err error)

GetBasicAuthCommand - Get the HTTP Basic Authentication configuration RequestType: GET Input:

func (*AuthService) GetOAuthAuthCommand

func (s *AuthService) GetOAuthAuthCommand() (output *models.OAuthConfigView, resp *http.Response, err error)

GetOAuthAuthCommand - Get the OAuth Authentication configuration RequestType: GET Input:

func (*AuthService) GetOidcAuthCommand

func (s *AuthService) GetOidcAuthCommand() (output *models.OidcConfigView, resp *http.Response, err error)

GetOidcAuthCommand - Get the OIDC Authentication configuration RequestType: GET Input:

func (*AuthService) UpdateAdminBasicWebSessionCommand

func (s *AuthService) UpdateAdminBasicWebSessionCommand(input *UpdateAdminBasicWebSessionCommandInput) (output *models.AdminBasicWebSessionView, resp *http.Response, err error)

UpdateAdminBasicWebSessionCommand - Update the admin web session configuration RequestType: PUT Input: input *UpdateAdminBasicWebSessionCommandInput

func (*AuthService) UpdateBasicAuthCommand

func (s *AuthService) UpdateBasicAuthCommand(input *UpdateBasicAuthCommandInput) (output *models.BasicAuthConfigView, resp *http.Response, err error)

UpdateBasicAuthCommand - Update the Basic Authentication configuration RequestType: PUT Input: input *UpdateBasicAuthCommandInput

func (*AuthService) UpdateOAuthAuthCommand

func (s *AuthService) UpdateOAuthAuthCommand(input *UpdateOAuthAuthCommandInput) (output *models.OAuthConfigView, resp *http.Response, err error)

UpdateOAuthAuthCommand - Update the OAuth Authentication configuration RequestType: PUT Input: input *UpdateOAuthAuthCommandInput

func (*AuthService) UpdateOidcAuthCommand

func (s *AuthService) UpdateOidcAuthCommand(input *UpdateOidcAuthCommandInput) (output *models.OidcConfigView, resp *http.Response, err error)

UpdateOidcAuthCommand - Update the OIDC Authentication configuration RequestType: PUT Input: input *UpdateOidcAuthCommandInput

type UpdateAdminBasicWebSessionCommandInput

type UpdateAdminBasicWebSessionCommandInput struct {
	Body models.AdminBasicWebSessionView
}

UpdateAdminBasicWebSessionCommandInput - Inputs for UpdateAdminBasicWebSessionCommand

type UpdateBasicAuthCommandInput

type UpdateBasicAuthCommandInput struct {
	Body models.BasicAuthConfigView
}

UpdateBasicAuthCommandInput - Inputs for UpdateBasicAuthCommand

type UpdateOAuthAuthCommandInput

type UpdateOAuthAuthCommandInput struct {
	Body models.OAuthConfigView
}

UpdateOAuthAuthCommandInput - Inputs for UpdateOAuthAuthCommand

type UpdateOidcAuthCommandInput

type UpdateOidcAuthCommandInput struct {
	Body models.OidcConfigView
}

UpdateOidcAuthCommandInput - Inputs for UpdateOidcAuthCommand

Jump to

Keyboard shortcuts

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