Documentation
¶
Overview ¶
Logout of SAML completely.
Verifies the logout response sent from the SAML IdP.
NOTE: This API is intended for use by custom web applications other than Kibana. If you are using Kibana, refer to the documentation for configuring SAML single-sign-on on the Elastic Stack.
The SAML IdP may send a logout response back to the SP after handling the SP-initiated SAML Single Logout. This API verifies the response by ensuring the content is relevant and validating its signature. An empty response is returned if the verification process is successful. The response can be sent by the IdP with either the HTTP-Redirect or the HTTP-Post binding. The caller of this API must prepare the request accordingly so that this API can handle either of them.
Index ¶
- Variables
- type NewSamlCompleteLogout
- type Request
- type SamlCompleteLogout
- func (r *SamlCompleteLogout) Content(content string) *SamlCompleteLogout
- func (r *SamlCompleteLogout) ErrorTrace(errortrace bool) *SamlCompleteLogout
- func (r *SamlCompleteLogout) FilterPath(filterpaths ...string) *SamlCompleteLogout
- func (r *SamlCompleteLogout) Header(key, value string) *SamlCompleteLogout
- func (r *SamlCompleteLogout) HttpRequest(ctx context.Context) (*http.Request, error)
- func (r *SamlCompleteLogout) Human(human bool) *SamlCompleteLogout
- func (r *SamlCompleteLogout) Ids(ids ...string) *SamlCompleteLogout
- func (r SamlCompleteLogout) Perform(providedCtx context.Context) (*http.Response, error)
- func (r *SamlCompleteLogout) Pretty(pretty bool) *SamlCompleteLogout
- func (r *SamlCompleteLogout) QueryString(querystring string) *SamlCompleteLogout
- func (r *SamlCompleteLogout) Raw(raw io.Reader) *SamlCompleteLogout
- func (r *SamlCompleteLogout) Realm(realm string) *SamlCompleteLogout
- func (r *SamlCompleteLogout) Request(req *Request) *SamlCompleteLogout
Constants ¶
This section is empty.
Variables ¶
var ErrBuildPath = errors.New("cannot build path, check for missing path parameters")
ErrBuildPath is returned in case of missing parameters within the build of the request.
Functions ¶
This section is empty.
Types ¶
type NewSamlCompleteLogout ¶
type NewSamlCompleteLogout func() *SamlCompleteLogout
NewSamlCompleteLogout type alias for index.
func NewSamlCompleteLogoutFunc ¶
func NewSamlCompleteLogoutFunc(tp elastictransport.Interface) NewSamlCompleteLogout
NewSamlCompleteLogoutFunc returns a new instance of SamlCompleteLogout with the provided transport. Used in the index of the library this allows to retrieve every apis in once place.
type Request ¶
type Request struct { // Content If the SAML IdP sends the logout response with the HTTP-Post binding, this // field must be set to the value of the SAMLResponse form parameter from the // logout response. Content *string `json:"content,omitempty"` // Ids A JSON array with all the valid SAML Request Ids that the caller of the API // has for the current user. Ids []string `json:"ids"` // QueryString If the SAML IdP sends the logout response with the HTTP-Redirect binding, // this field must be set to the query string of the redirect URI. QueryString *string `json:"query_string,omitempty"` // Realm The name of the SAML realm in Elasticsearch for which the configuration is // used to verify the logout response. Realm string `json:"realm"` }
Request holds the request body struct for the package samlcompletelogout
func (*Request) UnmarshalJSON ¶
type SamlCompleteLogout ¶
type SamlCompleteLogout struct {
// contains filtered or unexported fields
}
func New ¶
func New(tp elastictransport.Interface) *SamlCompleteLogout
Logout of SAML completely.
Verifies the logout response sent from the SAML IdP.
NOTE: This API is intended for use by custom web applications other than Kibana. If you are using Kibana, refer to the documentation for configuring SAML single-sign-on on the Elastic Stack.
The SAML IdP may send a logout response back to the SP after handling the SP-initiated SAML Single Logout. This API verifies the response by ensuring the content is relevant and validating its signature. An empty response is returned if the verification process is successful. The response can be sent by the IdP with either the HTTP-Redirect or the HTTP-Post binding. The caller of this API must prepare the request accordingly so that this API can handle either of them.
https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-saml-complete-logout
func (*SamlCompleteLogout) Content ¶
func (r *SamlCompleteLogout) Content(content string) *SamlCompleteLogout
If the SAML IdP sends the logout response with the HTTP-Post binding, this field must be set to the value of the SAMLResponse form parameter from the logout response. API name: content
func (*SamlCompleteLogout) ErrorTrace ¶
func (r *SamlCompleteLogout) ErrorTrace(errortrace bool) *SamlCompleteLogout
ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors when they occur. API name: error_trace
func (*SamlCompleteLogout) FilterPath ¶
func (r *SamlCompleteLogout) FilterPath(filterpaths ...string) *SamlCompleteLogout
FilterPath Comma-separated list of filters in dot notation which reduce the response returned by Elasticsearch. API name: filter_path
func (*SamlCompleteLogout) Header ¶
func (r *SamlCompleteLogout) Header(key, value string) *SamlCompleteLogout
Header set a key, value pair in the SamlCompleteLogout headers map.
func (*SamlCompleteLogout) HttpRequest ¶
HttpRequest returns the http.Request object built from the given parameters.
func (*SamlCompleteLogout) Human ¶
func (r *SamlCompleteLogout) Human(human bool) *SamlCompleteLogout
Human When set to `true` will return statistics in a format suitable for humans. For example `"exists_time": "1h"` for humans and `"exists_time_in_millis": 3600000` for computers. When disabled the human readable values will be omitted. This makes sense for responses being consumed only by machines. API name: human
func (*SamlCompleteLogout) Ids ¶
func (r *SamlCompleteLogout) Ids(ids ...string) *SamlCompleteLogout
A JSON array with all the valid SAML Request Ids that the caller of the API has for the current user. API name: ids
func (SamlCompleteLogout) Perform ¶
Perform runs the http.Request through the provided transport and returns an http.Response.
func (*SamlCompleteLogout) Pretty ¶
func (r *SamlCompleteLogout) Pretty(pretty bool) *SamlCompleteLogout
Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use this option for debugging only. API name: pretty
func (*SamlCompleteLogout) QueryString ¶
func (r *SamlCompleteLogout) QueryString(querystring string) *SamlCompleteLogout
If the SAML IdP sends the logout response with the HTTP-Redirect binding, this field must be set to the query string of the redirect URI. API name: query_string
func (*SamlCompleteLogout) Raw ¶
func (r *SamlCompleteLogout) Raw(raw io.Reader) *SamlCompleteLogout
Raw takes a json payload as input which is then passed to the http.Request If specified Raw takes precedence on Request method.
func (*SamlCompleteLogout) Realm ¶
func (r *SamlCompleteLogout) Realm(realm string) *SamlCompleteLogout
The name of the SAML realm in Elasticsearch for which the configuration is used to verify the logout response. API name: realm
func (*SamlCompleteLogout) Request ¶
func (r *SamlCompleteLogout) Request(req *Request) *SamlCompleteLogout
Request allows to set the request property with the appropriate payload.