# \SsoApi

All URIs are relative to *http://localhost*

Method | HTTP request | Description
------------- | ------------- | -------------
[**create_ldap**](SsoApi.md#create_ldap) | **POST** /api/v1/admin/sso/ldap | Create a new LDAP provider configuration
[**create_oidc**](SsoApi.md#create_oidc) | **POST** /api/v1/admin/sso/oidc | Create a new OIDC provider configuration
[**create_saml**](SsoApi.md#create_saml) | **POST** /api/v1/admin/sso/saml | Create a new SAML provider configuration
[**delete_ldap**](SsoApi.md#delete_ldap) | **DELETE** /api/v1/admin/sso/ldap/{id} | Delete an LDAP provider configuration
[**delete_oidc**](SsoApi.md#delete_oidc) | **DELETE** /api/v1/admin/sso/oidc/{id} | Delete an OIDC provider configuration
[**delete_saml**](SsoApi.md#delete_saml) | **DELETE** /api/v1/admin/sso/saml/{id} | Delete a SAML provider configuration
[**exchange_code**](SsoApi.md#exchange_code) | **POST** /api/v1/auth/sso/exchange | Exchange a short-lived code for access and refresh tokens
[**get_ldap**](SsoApi.md#get_ldap) | **GET** /api/v1/admin/sso/ldap/{id} | Get LDAP provider configuration by ID
[**get_oidc**](SsoApi.md#get_oidc) | **GET** /api/v1/admin/sso/oidc/{id} | Get OIDC provider configuration by ID
[**get_saml**](SsoApi.md#get_saml) | **GET** /api/v1/admin/sso/saml/{id} | Get SAML provider configuration by ID
[**ldap_login**](SsoApi.md#ldap_login) | **POST** /api/v1/auth/sso/ldap/{id}/login | Authenticate via LDAP
[**list_ldap**](SsoApi.md#list_ldap) | **GET** /api/v1/admin/sso/ldap | List all LDAP provider configurations
[**list_oidc**](SsoApi.md#list_oidc) | **GET** /api/v1/admin/sso/oidc | List all OIDC provider configurations
[**list_providers**](SsoApi.md#list_providers) | **GET** /api/v1/auth/sso/providers | List all enabled SSO providers
[**list_saml**](SsoApi.md#list_saml) | **GET** /api/v1/admin/sso/saml | List all SAML provider configurations
[**list_sso_providers_admin**](SsoApi.md#list_sso_providers_admin) | **GET** /api/v1/admin/sso/providers | List all enabled SSO providers (admin view)
[**oidc_callback**](SsoApi.md#oidc_callback) | **GET** /api/v1/auth/sso/oidc/{id}/callback | Handle OIDC authorization callback
[**oidc_login**](SsoApi.md#oidc_login) | **GET** /api/v1/auth/sso/oidc/{id}/login | Initiate OIDC login redirect
[**saml_acs**](SsoApi.md#saml_acs) | **POST** /api/v1/auth/sso/saml/{id}/acs | Handle SAML Assertion Consumer Service (ACS) callback
[**saml_login**](SsoApi.md#saml_login) | **GET** /api/v1/auth/sso/saml/{id}/login | Initiate SAML login redirect
[**test_ldap**](SsoApi.md#test_ldap) | **POST** /api/v1/admin/sso/ldap/{id}/test | Test an LDAP provider connection
[**toggle_ldap**](SsoApi.md#toggle_ldap) | **PATCH** /api/v1/admin/sso/ldap/{id}/toggle | Toggle an LDAP provider enabled/disabled
[**toggle_oidc**](SsoApi.md#toggle_oidc) | **PATCH** /api/v1/admin/sso/oidc/{id}/toggle | Toggle an OIDC provider enabled/disabled
[**toggle_saml**](SsoApi.md#toggle_saml) | **PATCH** /api/v1/admin/sso/saml/{id}/toggle | Toggle a SAML provider enabled/disabled
[**update_ldap**](SsoApi.md#update_ldap) | **PUT** /api/v1/admin/sso/ldap/{id} | Update an LDAP provider configuration
[**update_oidc**](SsoApi.md#update_oidc) | **PUT** /api/v1/admin/sso/oidc/{id} | Update an OIDC provider configuration
[**update_saml**](SsoApi.md#update_saml) | **PUT** /api/v1/admin/sso/saml/{id} | Update a SAML provider configuration



## create_ldap

> models::LdapConfigResponse create_ldap(create_ldap_config_request)
Create a new LDAP provider configuration

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**create_ldap_config_request** | [**CreateLdapConfigRequest**](CreateLdapConfigRequest.md) |  | [required] |

### Return type

[**models::LdapConfigResponse**](LdapConfigResponse.md)

### Authorization

[bearer_auth](../README.md#bearer_auth)

### HTTP request headers

- **Content-Type**: application/json
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## create_oidc

> models::OidcConfigResponse create_oidc(create_oidc_config_request)
Create a new OIDC provider configuration

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**create_oidc_config_request** | [**CreateOidcConfigRequest**](CreateOidcConfigRequest.md) |  | [required] |

### Return type

[**models::OidcConfigResponse**](OidcConfigResponse.md)

### Authorization

[bearer_auth](../README.md#bearer_auth)

### HTTP request headers

- **Content-Type**: application/json
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## create_saml

> models::SamlConfigResponse create_saml(create_saml_config_request)
Create a new SAML provider configuration

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**create_saml_config_request** | [**CreateSamlConfigRequest**](CreateSamlConfigRequest.md) |  | [required] |

### Return type

[**models::SamlConfigResponse**](SamlConfigResponse.md)

### Authorization

[bearer_auth](../README.md#bearer_auth)

### HTTP request headers

- **Content-Type**: application/json
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## delete_ldap

> delete_ldap(id)
Delete an LDAP provider configuration

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**id** | **uuid::Uuid** | LDAP configuration ID | [required] |

### Return type

 (empty response body)

### Authorization

[bearer_auth](../README.md#bearer_auth)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## delete_oidc

> delete_oidc(id)
Delete an OIDC provider configuration

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**id** | **uuid::Uuid** | OIDC configuration ID | [required] |

### Return type

 (empty response body)

### Authorization

[bearer_auth](../README.md#bearer_auth)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## delete_saml

> delete_saml(id)
Delete a SAML provider configuration

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**id** | **uuid::Uuid** | SAML configuration ID | [required] |

### Return type

 (empty response body)

### Authorization

[bearer_auth](../README.md#bearer_auth)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## exchange_code

> models::ExchangeCodeResponse exchange_code(exchange_code_request)
Exchange a short-lived code for access and refresh tokens

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**exchange_code_request** | [**ExchangeCodeRequest**](ExchangeCodeRequest.md) |  | [required] |

### Return type

[**models::ExchangeCodeResponse**](ExchangeCodeResponse.md)

### Authorization

No authorization required

### HTTP request headers

- **Content-Type**: application/json
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## get_ldap

> models::LdapConfigResponse get_ldap(id)
Get LDAP provider configuration by ID

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**id** | **uuid::Uuid** | LDAP configuration ID | [required] |

### Return type

[**models::LdapConfigResponse**](LdapConfigResponse.md)

### Authorization

[bearer_auth](../README.md#bearer_auth)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## get_oidc

> models::OidcConfigResponse get_oidc(id)
Get OIDC provider configuration by ID

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**id** | **uuid::Uuid** | OIDC configuration ID | [required] |

### Return type

[**models::OidcConfigResponse**](OidcConfigResponse.md)

### Authorization

[bearer_auth](../README.md#bearer_auth)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## get_saml

> models::SamlConfigResponse get_saml(id)
Get SAML provider configuration by ID

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**id** | **uuid::Uuid** | SAML configuration ID | [required] |

### Return type

[**models::SamlConfigResponse**](SamlConfigResponse.md)

### Authorization

[bearer_auth](../README.md#bearer_auth)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## ldap_login

> ldap_login(id, ldap_login_request)
Authenticate via LDAP

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**id** | **uuid::Uuid** | LDAP provider configuration ID | [required] |
**ldap_login_request** | [**LdapLoginRequest**](LdapLoginRequest.md) |  | [required] |

### Return type

 (empty response body)

### Authorization

No authorization required

### HTTP request headers

- **Content-Type**: application/json
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## list_ldap

> Vec<models::LdapConfigResponse> list_ldap()
List all LDAP provider configurations

### Parameters

This endpoint does not need any parameter.

### Return type

[**Vec<models::LdapConfigResponse>**](LdapConfigResponse.md)

### Authorization

[bearer_auth](../README.md#bearer_auth)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## list_oidc

> Vec<models::OidcConfigResponse> list_oidc()
List all OIDC provider configurations

### Parameters

This endpoint does not need any parameter.

### Return type

[**Vec<models::OidcConfigResponse>**](OidcConfigResponse.md)

### Authorization

[bearer_auth](../README.md#bearer_auth)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## list_providers

> Vec<models::SsoProviderInfo> list_providers()
List all enabled SSO providers

### Parameters

This endpoint does not need any parameter.

### Return type

[**Vec<models::SsoProviderInfo>**](SsoProviderInfo.md)

### Authorization

No authorization required

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## list_saml

> Vec<models::SamlConfigResponse> list_saml()
List all SAML provider configurations

### Parameters

This endpoint does not need any parameter.

### Return type

[**Vec<models::SamlConfigResponse>**](SamlConfigResponse.md)

### Authorization

[bearer_auth](../README.md#bearer_auth)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## list_sso_providers_admin

> Vec<models::SsoProviderInfo> list_sso_providers_admin()
List all enabled SSO providers (admin view)

### Parameters

This endpoint does not need any parameter.

### Return type

[**Vec<models::SsoProviderInfo>**](SsoProviderInfo.md)

### Authorization

[bearer_auth](../README.md#bearer_auth)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## oidc_callback

> oidc_callback(id, code, state)
Handle OIDC authorization callback

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**id** | **uuid::Uuid** | OIDC provider configuration ID | [required] |
**code** | **String** |  | [required] |
**state** | **String** |  | [required] |

### Return type

 (empty response body)

### Authorization

No authorization required

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## oidc_login

> oidc_login(id)
Initiate OIDC login redirect

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**id** | **uuid::Uuid** | OIDC provider configuration ID | [required] |

### Return type

 (empty response body)

### Authorization

No authorization required

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## saml_acs

> saml_acs(id, saml_response, relay_state)
Handle SAML Assertion Consumer Service (ACS) callback

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**id** | **uuid::Uuid** | SAML provider configuration ID | [required] |
**saml_response** | **String** |  | [required] |
**relay_state** | Option<**String**> |  |  |

### Return type

 (empty response body)

### Authorization

No authorization required

### HTTP request headers

- **Content-Type**: application/x-www-form-urlencoded
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## saml_login

> saml_login(id)
Initiate SAML login redirect

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**id** | **uuid::Uuid** | SAML provider configuration ID | [required] |

### Return type

 (empty response body)

### Authorization

No authorization required

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## test_ldap

> models::LdapTestResult test_ldap(id)
Test an LDAP provider connection

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**id** | **uuid::Uuid** | LDAP configuration ID | [required] |

### Return type

[**models::LdapTestResult**](LdapTestResult.md)

### Authorization

[bearer_auth](../README.md#bearer_auth)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## toggle_ldap

> toggle_ldap(id, toggle_request)
Toggle an LDAP provider enabled/disabled

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**id** | **uuid::Uuid** | LDAP configuration ID | [required] |
**toggle_request** | [**ToggleRequest**](ToggleRequest.md) |  | [required] |

### Return type

 (empty response body)

### Authorization

[bearer_auth](../README.md#bearer_auth)

### HTTP request headers

- **Content-Type**: application/json
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## toggle_oidc

> toggle_oidc(id, toggle_request)
Toggle an OIDC provider enabled/disabled

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**id** | **uuid::Uuid** | OIDC configuration ID | [required] |
**toggle_request** | [**ToggleRequest**](ToggleRequest.md) |  | [required] |

### Return type

 (empty response body)

### Authorization

[bearer_auth](../README.md#bearer_auth)

### HTTP request headers

- **Content-Type**: application/json
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## toggle_saml

> toggle_saml(id, toggle_request)
Toggle a SAML provider enabled/disabled

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**id** | **uuid::Uuid** | SAML configuration ID | [required] |
**toggle_request** | [**ToggleRequest**](ToggleRequest.md) |  | [required] |

### Return type

 (empty response body)

### Authorization

[bearer_auth](../README.md#bearer_auth)

### HTTP request headers

- **Content-Type**: application/json
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## update_ldap

> models::LdapConfigResponse update_ldap(id, update_ldap_config_request)
Update an LDAP provider configuration

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**id** | **uuid::Uuid** | LDAP configuration ID | [required] |
**update_ldap_config_request** | [**UpdateLdapConfigRequest**](UpdateLdapConfigRequest.md) |  | [required] |

### Return type

[**models::LdapConfigResponse**](LdapConfigResponse.md)

### Authorization

[bearer_auth](../README.md#bearer_auth)

### HTTP request headers

- **Content-Type**: application/json
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## update_oidc

> models::OidcConfigResponse update_oidc(id, update_oidc_config_request)
Update an OIDC provider configuration

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**id** | **uuid::Uuid** | OIDC configuration ID | [required] |
**update_oidc_config_request** | [**UpdateOidcConfigRequest**](UpdateOidcConfigRequest.md) |  | [required] |

### Return type

[**models::OidcConfigResponse**](OidcConfigResponse.md)

### Authorization

[bearer_auth](../README.md#bearer_auth)

### HTTP request headers

- **Content-Type**: application/json
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## update_saml

> models::SamlConfigResponse update_saml(id, update_saml_config_request)
Update a SAML provider configuration

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**id** | **uuid::Uuid** | SAML configuration ID | [required] |
**update_saml_config_request** | [**UpdateSamlConfigRequest**](UpdateSamlConfigRequest.md) |  | [required] |

### Return type

[**models::SamlConfigResponse**](SamlConfigResponse.md)

### Authorization

[bearer_auth](../README.md#bearer_auth)

### HTTP request headers

- **Content-Type**: application/json
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

