sso_saml_2_0

package
v0.59.1 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client for sso saml 2 0 API

func (*Client) PlatformAuthenticateSAMLV3Handler deprecated

Deprecated: 2022-08-10 - Use PlatformAuthenticateSAMLV3HandlerShort instead.

PlatformAuthenticateSAMLV3Handler saml platform authentication api This endpoint authenticates user platform for SAML protocol. It validates user to its respective platforms. Deactivated or login-banned users are unable to login.

## Supported platforms:

  • azure

Microsoft login page will redirects to this endpoint after login success as previously defined on authentication request SAML

func (*Client) PlatformAuthenticateSAMLV3HandlerShort

func (a *Client) PlatformAuthenticateSAMLV3HandlerShort(params *PlatformAuthenticateSAMLV3HandlerParams, authInfo runtime.ClientAuthInfoWriter) (*PlatformAuthenticateSAMLV3HandlerFound, error)

PlatformAuthenticateSAMLV3HandlerShort saml platform authentication api This endpoint authenticates user platform for SAML protocol. It validates user to its respective platforms. Deactivated or login-banned users are unable to login.

## Supported platforms:

  • azure

Microsoft login page will redirects to this endpoint after login success as previously defined on authentication request SAML

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

type ClientService

type ClientService interface {
	PlatformAuthenticateSAMLV3Handler(params *PlatformAuthenticateSAMLV3HandlerParams, authInfo runtime.ClientAuthInfoWriter) (*PlatformAuthenticateSAMLV3HandlerFound, error)
	PlatformAuthenticateSAMLV3HandlerShort(params *PlatformAuthenticateSAMLV3HandlerParams, authInfo runtime.ClientAuthInfoWriter) (*PlatformAuthenticateSAMLV3HandlerFound, error)

	SetTransport(transport runtime.ClientTransport)
}

ClientService is the interface for Client methods

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService

New creates a new sso saml 2 0 API client.

type PlatformAuthenticateSAMLV3HandlerFound

type PlatformAuthenticateSAMLV3HandlerFound struct {
	Location string
}

PlatformAuthenticateSAMLV3HandlerFound handles this case with default header values.

Found. Redirect to clients redirection URL with either code or error on the query parameter

func NewPlatformAuthenticateSAMLV3HandlerFound

func NewPlatformAuthenticateSAMLV3HandlerFound() *PlatformAuthenticateSAMLV3HandlerFound

NewPlatformAuthenticateSAMLV3HandlerFound creates a PlatformAuthenticateSAMLV3HandlerFound with default headers values

func (*PlatformAuthenticateSAMLV3HandlerFound) Error

type PlatformAuthenticateSAMLV3HandlerParams

type PlatformAuthenticateSAMLV3HandlerParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*PlatformID
	  Platform ID

	*/
	PlatformID string
	/*Code
	  The authorization code from 3rd party OAuth server

	*/
	Code *string
	/*Error
	  The error message from Identity Provider (IdP)

	*/
	Error *string
	/*State
	  State that contains request ID retrieved from authorize endpoint ([GET] iam/v3/oauth/authorize)

	*/
	State string

	AuthInfoWriter runtime.ClientAuthInfoWriter
	Context        context.Context
	HTTPClient     *http.Client
	// contains filtered or unexported fields
}

PlatformAuthenticateSAMLV3HandlerParams contains all the parameters to send to the API endpoint for the platform authenticate samlv3 handler operation typically these are written to a http.Request

func NewPlatformAuthenticateSAMLV3HandlerParams

func NewPlatformAuthenticateSAMLV3HandlerParams() *PlatformAuthenticateSAMLV3HandlerParams

NewPlatformAuthenticateSAMLV3HandlerParams creates a new PlatformAuthenticateSAMLV3HandlerParams object with the default values initialized.

func NewPlatformAuthenticateSAMLV3HandlerParamsWithContext

func NewPlatformAuthenticateSAMLV3HandlerParamsWithContext(ctx context.Context) *PlatformAuthenticateSAMLV3HandlerParams

NewPlatformAuthenticateSAMLV3HandlerParamsWithContext creates a new PlatformAuthenticateSAMLV3HandlerParams object with the default values initialized, and the ability to set a context for a request

func NewPlatformAuthenticateSAMLV3HandlerParamsWithHTTPClient

func NewPlatformAuthenticateSAMLV3HandlerParamsWithHTTPClient(client *http.Client) *PlatformAuthenticateSAMLV3HandlerParams

NewPlatformAuthenticateSAMLV3HandlerParamsWithHTTPClient creates a new PlatformAuthenticateSAMLV3HandlerParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewPlatformAuthenticateSAMLV3HandlerParamsWithTimeout

func NewPlatformAuthenticateSAMLV3HandlerParamsWithTimeout(timeout time.Duration) *PlatformAuthenticateSAMLV3HandlerParams

NewPlatformAuthenticateSAMLV3HandlerParamsWithTimeout creates a new PlatformAuthenticateSAMLV3HandlerParams object with the default values initialized, and the ability to set a timeout on a request

func (*PlatformAuthenticateSAMLV3HandlerParams) SetAuthInfoWriter

func (o *PlatformAuthenticateSAMLV3HandlerParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)

SetAuthInfoWriter adds the authInfoWriter to the platform authenticate samlv3 handler params

func (*PlatformAuthenticateSAMLV3HandlerParams) SetCode

SetCode adds the code to the platform authenticate samlv3 handler params

func (*PlatformAuthenticateSAMLV3HandlerParams) SetContext

SetContext adds the context to the platform authenticate samlv3 handler params

func (*PlatformAuthenticateSAMLV3HandlerParams) SetError

func (o *PlatformAuthenticateSAMLV3HandlerParams) SetError(errorVar *string)

SetError adds the error to the platform authenticate samlv3 handler params

func (*PlatformAuthenticateSAMLV3HandlerParams) SetHTTPClient

func (o *PlatformAuthenticateSAMLV3HandlerParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the platform authenticate samlv3 handler params

func (*PlatformAuthenticateSAMLV3HandlerParams) SetHTTPClientTransport

func (o *PlatformAuthenticateSAMLV3HandlerParams) SetHTTPClientTransport(roundTripper http.RoundTripper)

SetHTTPClient adds the HTTPClient Transport to the platform authenticate samlv3 handler params

func (*PlatformAuthenticateSAMLV3HandlerParams) SetPlatformID

func (o *PlatformAuthenticateSAMLV3HandlerParams) SetPlatformID(platformID string)

SetPlatformID adds the platformId to the platform authenticate samlv3 handler params

func (*PlatformAuthenticateSAMLV3HandlerParams) SetState

SetState adds the state to the platform authenticate samlv3 handler params

func (*PlatformAuthenticateSAMLV3HandlerParams) SetTimeout

func (o *PlatformAuthenticateSAMLV3HandlerParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the platform authenticate samlv3 handler params

func (*PlatformAuthenticateSAMLV3HandlerParams) WithCode

WithCode adds the code to the platform authenticate samlv3 handler params

func (*PlatformAuthenticateSAMLV3HandlerParams) WithContext

WithContext adds the context to the platform authenticate samlv3 handler params

func (*PlatformAuthenticateSAMLV3HandlerParams) WithError

WithError adds the errorVar to the platform authenticate samlv3 handler params

func (*PlatformAuthenticateSAMLV3HandlerParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the platform authenticate samlv3 handler params

func (*PlatformAuthenticateSAMLV3HandlerParams) WithPlatformID

WithPlatformID adds the platformID to the platform authenticate samlv3 handler params

func (*PlatformAuthenticateSAMLV3HandlerParams) WithState

WithState adds the state to the platform authenticate samlv3 handler params

func (*PlatformAuthenticateSAMLV3HandlerParams) WithTimeout

WithTimeout adds the timeout to the platform authenticate samlv3 handler params

func (*PlatformAuthenticateSAMLV3HandlerParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PlatformAuthenticateSAMLV3HandlerReader

type PlatformAuthenticateSAMLV3HandlerReader struct {
	// contains filtered or unexported fields
}

PlatformAuthenticateSAMLV3HandlerReader is a Reader for the PlatformAuthenticateSAMLV3Handler structure.

func (*PlatformAuthenticateSAMLV3HandlerReader) ReadResponse

func (o *PlatformAuthenticateSAMLV3HandlerReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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