client

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2019 License: Apache-2.0 Imports: 11 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddServiceProviderIdpPath

func AddServiceProviderIdpPath() string

AddServiceProviderIdpPath computes a request path to the addServiceProvider action of idp.

func DeleteServiceProviderIdpPath

func DeleteServiceProviderIdpPath() string

DeleteServiceProviderIdpPath computes a request path to the deleteServiceProvider action of idp.

func DeleteSessionIdpPath

func DeleteSessionIdpPath() string

DeleteSessionIdpPath computes a request path to the deleteSession action of idp.

func GetGoogleMetadataIdpPath

func GetGoogleMetadataIdpPath() string

GetGoogleMetadataIdpPath computes a request path to the getGoogleMetadata action of idp.

func GetMetadataIdpPath

func GetMetadataIdpPath() string

GetMetadataIdpPath computes a request path to the getMetadata action of idp.

func GetServiceProvidersIdpPath

func GetServiceProvidersIdpPath() string

GetServiceProvidersIdpPath computes a request path to the getServiceProviders action of idp.

func GetSessionsIdpPath

func GetSessionsIdpPath() string

GetSessionsIdpPath computes a request path to the getSessions action of idp.

func LoginUserIdpPath

func LoginUserIdpPath() string

LoginUserIdpPath computes a request path to the loginUser action of idp.

func ServeLoginIdpPath

func ServeLoginIdpPath() string

ServeLoginIdpPath computes a request path to the serveLogin action of idp.

func ServeLoginUserIdpPath

func ServeLoginUserIdpPath() string

ServeLoginUserIdpPath computes a request path to the serveLoginUser action of idp.

func ServeSSOIdpPath

func ServeSSOIdpPath() string

ServeSSOIdpPath computes a request path to the serveSSO action of idp.

Types

type Client

type Client struct {
	*goaclient.Client
	Encoder *goa.HTTPEncoder
	Decoder *goa.HTTPDecoder
}

Client is the identity provider service client.

func New

func New(c goaclient.Doer) *Client

New instantiates the client.

func (*Client) AddServiceProviderIdp

func (c *Client) AddServiceProviderIdp(ctx context.Context, path string) (*http.Response, error)

Add new service provider

func (*Client) DecodeErrorResponse

func (c *Client) DecodeErrorResponse(resp *http.Response) (*goa.ErrorResponse, error)

DecodeErrorResponse decodes the ErrorResponse instance encoded in resp body.

func (*Client) DeleteServiceProviderIdp

func (c *Client) DeleteServiceProviderIdp(ctx context.Context, path string, payload *DeleteSPPayload, contentType string) (*http.Response, error)

Delete a service provider

func (*Client) DeleteSessionIdp

func (c *Client) DeleteSessionIdp(ctx context.Context, path string, payload *DeleteSessionPayload, contentType string) (*http.Response, error)

Delete a service provider

func (*Client) DownloadCSS

func (c *Client) DownloadCSS(ctx context.Context, filename, dest string) (int64, error)

DownloadCSS downloads /files with the given filename and writes it to the file dest. It returns the number of bytes downloaded in case of success.

func (*Client) DownloadJs

func (c *Client) DownloadJs(ctx context.Context, filename, dest string) (int64, error)

DownloadJs downloads /files with the given filename and writes it to the file dest. It returns the number of bytes downloaded in case of success.

func (*Client) DownloadSwaggerJSON

func (c *Client) DownloadSwaggerJSON(ctx context.Context, dest string) (int64, error)

DownloadSwaggerJSON downloads swagger.json and writes it to the file dest. It returns the number of bytes downloaded in case of success.

func (*Client) DownloadSwaggerUI

func (c *Client) DownloadSwaggerUI(ctx context.Context, filename, dest string) (int64, error)

DownloadSwaggerUI downloads /files with the given filename and writes it to the file dest. It returns the number of bytes downloaded in case of success.

func (*Client) GetGoogleMetadataIdp

func (c *Client) GetGoogleMetadataIdp(ctx context.Context, path string) (*http.Response, error)

Get Google's metadata

func (*Client) GetMetadataIdp

func (c *Client) GetMetadataIdp(ctx context.Context, path string) (*http.Response, error)

Get Jormungandr metadata

func (*Client) GetServiceProvidersIdp

func (c *Client) GetServiceProvidersIdp(ctx context.Context, path string) (*http.Response, error)

Get all service providres

func (*Client) GetSessionsIdp

func (c *Client) GetSessionsIdp(ctx context.Context, path string) (*http.Response, error)

Get all sessions

func (*Client) LoginUserIdp

func (c *Client) LoginUserIdp(ctx context.Context, path string) (*http.Response, error)

Login user

func (*Client) NewAddServiceProviderIdpRequest

func (c *Client) NewAddServiceProviderIdpRequest(ctx context.Context, path string) (*http.Request, error)

NewAddServiceProviderIdpRequest create the request corresponding to the addServiceProvider action endpoint of the idp resource.

func (*Client) NewDeleteServiceProviderIdpRequest

func (c *Client) NewDeleteServiceProviderIdpRequest(ctx context.Context, path string, payload *DeleteSPPayload, contentType string) (*http.Request, error)

NewDeleteServiceProviderIdpRequest create the request corresponding to the deleteServiceProvider action endpoint of the idp resource.

func (*Client) NewDeleteSessionIdpRequest

func (c *Client) NewDeleteSessionIdpRequest(ctx context.Context, path string, payload *DeleteSessionPayload, contentType string) (*http.Request, error)

NewDeleteSessionIdpRequest create the request corresponding to the deleteSession action endpoint of the idp resource.

func (*Client) NewGetGoogleMetadataIdpRequest

func (c *Client) NewGetGoogleMetadataIdpRequest(ctx context.Context, path string) (*http.Request, error)

NewGetGoogleMetadataIdpRequest create the request corresponding to the getGoogleMetadata action endpoint of the idp resource.

func (*Client) NewGetMetadataIdpRequest

func (c *Client) NewGetMetadataIdpRequest(ctx context.Context, path string) (*http.Request, error)

NewGetMetadataIdpRequest create the request corresponding to the getMetadata action endpoint of the idp resource.

func (*Client) NewGetServiceProvidersIdpRequest

func (c *Client) NewGetServiceProvidersIdpRequest(ctx context.Context, path string) (*http.Request, error)

NewGetServiceProvidersIdpRequest create the request corresponding to the getServiceProviders action endpoint of the idp resource.

func (*Client) NewGetSessionsIdpRequest

func (c *Client) NewGetSessionsIdpRequest(ctx context.Context, path string) (*http.Request, error)

NewGetSessionsIdpRequest create the request corresponding to the getSessions action endpoint of the idp resource.

func (*Client) NewLoginUserIdpRequest

func (c *Client) NewLoginUserIdpRequest(ctx context.Context, path string) (*http.Request, error)

NewLoginUserIdpRequest create the request corresponding to the loginUser action endpoint of the idp resource.

func (*Client) NewServeLoginIdpRequest

func (c *Client) NewServeLoginIdpRequest(ctx context.Context, path string) (*http.Request, error)

NewServeLoginIdpRequest create the request corresponding to the serveLogin action endpoint of the idp resource.

func (*Client) NewServeLoginUserIdpRequest

func (c *Client) NewServeLoginUserIdpRequest(ctx context.Context, path string) (*http.Request, error)

NewServeLoginUserIdpRequest create the request corresponding to the serveLoginUser action endpoint of the idp resource.

func (*Client) NewServeSSOIdpRequest

func (c *Client) NewServeSSOIdpRequest(ctx context.Context, path string) (*http.Request, error)

NewServeSSOIdpRequest create the request corresponding to the serveSSO action endpoint of the idp resource.

func (*Client) ServeLoginIdp

func (c *Client) ServeLoginIdp(ctx context.Context, path string) (*http.Response, error)

Creare user session

func (*Client) ServeLoginUserIdp

func (c *Client) ServeLoginUserIdp(ctx context.Context, path string) (*http.Response, error)

Login user

func (*Client) ServeSSOIdp

func (c *Client) ServeSSOIdp(ctx context.Context, path string) (*http.Response, error)

Serve Single Sign On

type DeleteSPPayload

type DeleteSPPayload struct {
	// ID of service provider
	ServiceID string `form:"serviceId" json:"serviceId" yaml:"serviceId" xml:"serviceId"`
}

DeleteSPPayload

func (*DeleteSPPayload) Validate

func (ut *DeleteSPPayload) Validate() (err error)

Validate validates the DeleteSPPayload type instance.

type DeleteSessionPayload

type DeleteSessionPayload struct {
	// ID of the session
	SessionID string `form:"sessionId" json:"sessionId" yaml:"sessionId" xml:"sessionId"`
}

DeleteSessionPayload

func (*DeleteSessionPayload) Validate

func (ut *DeleteSessionPayload) Validate() (err error)

Validate validates the DeleteSessionPayload type instance.

Jump to

Keyboard shortcuts

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