All URIs are relative to http://localhost
| Method | HTTP request | Description |
|---|---|---|
| auth_cookie_login | POST /auth/cookie/login | Auth:Cookie.Login |
| auth_cookie_logout | POST /auth/cookie/logout | Auth:Cookie.Logout |
| auth_jwt_login | POST /auth/jwt/login | Auth:Jwt.Login |
| auth_jwt_logout | POST /auth/jwt/logout | Auth:Jwt.Logout |
object auth_cookie_login(username, password, grant_type=grant_type, scope=scope, client_id=client_id, client_secret=client_secret)
Auth:Cookie.Login
import cms_client
from cms_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = cms_client.Configuration(
host = "http://localhost"
)
# Enter a context with an instance of the API client
with cms_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = cms_client.AuthenticationApi(api_client)
username = 'username_example' # str |
password = 'password_example' # str |
grant_type = 'grant_type_example' # str | (optional)
scope = '' # str | (optional) (default to '')
client_id = 'client_id_example' # str | (optional)
client_secret = 'client_secret_example' # str | (optional)
try:
# Auth:Cookie.Login
api_response = api_instance.auth_cookie_login(username, password, grant_type=grant_type, scope=scope, client_id=client_id, client_secret=client_secret)
print("The response of AuthenticationApi->auth_cookie_login:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling AuthenticationApi->auth_cookie_login: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| username | str | ||
| password | str | ||
| grant_type | str | [optional] | |
| scope | str | [optional] [default to ''] | |
| client_id | str | [optional] | |
| client_secret | str | [optional] |
object
No authorization required
- Content-Type: application/x-www-form-urlencoded
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Successful Response | - |
| 400 | Bad Request | - |
| 204 | No Content | - |
| 422 | Validation Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
object auth_cookie_logout()
Auth:Cookie.Logout
- OAuth Authentication (OAuth2PasswordBearer):
- Api Key Authentication (APIKeyCookie):
import cms_client
from cms_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = cms_client.Configuration(
host = "http://localhost"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Configure API key authorization: APIKeyCookie
configuration.api_key['APIKeyCookie'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['APIKeyCookie'] = 'Bearer'
# Enter a context with an instance of the API client
with cms_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = cms_client.AuthenticationApi(api_client)
try:
# Auth:Cookie.Logout
api_response = api_instance.auth_cookie_logout()
print("The response of AuthenticationApi->auth_cookie_logout:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling AuthenticationApi->auth_cookie_logout: %s\n" % e)This endpoint does not need any parameter.
object
OAuth2PasswordBearer, APIKeyCookie
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Successful Response | - |
| 401 | Missing token or inactive user. | - |
| 204 | No Content | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
BearerResponse auth_jwt_login(username, password, grant_type=grant_type, scope=scope, client_id=client_id, client_secret=client_secret)
Auth:Jwt.Login
import cms_client
from cms_client.models.bearer_response import BearerResponse
from cms_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = cms_client.Configuration(
host = "http://localhost"
)
# Enter a context with an instance of the API client
with cms_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = cms_client.AuthenticationApi(api_client)
username = 'username_example' # str |
password = 'password_example' # str |
grant_type = 'grant_type_example' # str | (optional)
scope = '' # str | (optional) (default to '')
client_id = 'client_id_example' # str | (optional)
client_secret = 'client_secret_example' # str | (optional)
try:
# Auth:Jwt.Login
api_response = api_instance.auth_jwt_login(username, password, grant_type=grant_type, scope=scope, client_id=client_id, client_secret=client_secret)
print("The response of AuthenticationApi->auth_jwt_login:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling AuthenticationApi->auth_jwt_login: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| username | str | ||
| password | str | ||
| grant_type | str | [optional] | |
| scope | str | [optional] [default to ''] | |
| client_id | str | [optional] | |
| client_secret | str | [optional] |
No authorization required
- Content-Type: application/x-www-form-urlencoded
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Successful Response | - |
| 400 | Bad Request | - |
| 422 | Validation Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
object auth_jwt_logout()
Auth:Jwt.Logout
- OAuth Authentication (OAuth2PasswordBearer):
- Api Key Authentication (APIKeyCookie):
import cms_client
from cms_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = cms_client.Configuration(
host = "http://localhost"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Configure API key authorization: APIKeyCookie
configuration.api_key['APIKeyCookie'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['APIKeyCookie'] = 'Bearer'
# Enter a context with an instance of the API client
with cms_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = cms_client.AuthenticationApi(api_client)
try:
# Auth:Jwt.Logout
api_response = api_instance.auth_jwt_logout()
print("The response of AuthenticationApi->auth_jwt_logout:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling AuthenticationApi->auth_jwt_logout: %s\n" % e)This endpoint does not need any parameter.
object
OAuth2PasswordBearer, APIKeyCookie
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Successful Response | - |
| 401 | Missing token or inactive user. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]