All URIs are relative to http://localhost:3000/api, except if the operation defines another base path.
Method | HTTP request | Description |
---|---|---|
authLoginGet() | GET /auth/login | Fetches login metadata |
authLoginPost() | POST /auth/login | Performs Login |
authLogoutPost() | POST /auth/logout | Destroys current session |
authOidcProviderIdLoginGet() | GET /auth/oidc/{provider_id}/login | Begin OIDC authentication flow and redirect to OIDC provider |
authOidcProviderIdRedirectGet() | GET /auth/oidc/{provider_id}/redirect | Finish OIDC authentication flow, upon succes you will be logged in |
userTokensApiTokenIdDelete() | DELETE /user/tokens/{api_token_id} | Expires API token |
userTokensGet() | GET /user/tokens | Fetch API tokens for user |
userTokensPost() | POST /user/tokens | Create an API token |
authLoginGet(): \ClientAPI\Semaphore\Model\LoginMetadata
Fetches login metadata
Fetches metadata for login, such as available OIDC providers
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new ClientAPI\Semaphore\Api\AuthenticationApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
try {
$result = $apiInstance->authLoginGet();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AuthenticationApi->authLoginGet: ', $e->getMessage(), PHP_EOL;
}
This endpoint does not need any parameter.
\ClientAPI\Semaphore\Model\LoginMetadata
No authorization required
- Content-Type: Not defined
- Accept:
application/json
,text/plain; charset=utf-8
[Back to top] [Back to API list] [Back to Model list] [Back to README]
authLoginPost($loginBody)
Performs Login
Upon success you will be logged in
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new ClientAPI\Semaphore\Api\AuthenticationApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
$loginBody = new \ClientAPI\Semaphore\Model\Login(); // \ClientAPI\Semaphore\Model\Login
try {
$apiInstance->authLoginPost($loginBody);
} catch (Exception $e) {
echo 'Exception when calling AuthenticationApi->authLoginPost: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
loginBody | \ClientAPI\Semaphore\Model\Login |
void (empty response body)
No authorization required
- Content-Type:
application/json
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
authLogoutPost()
Destroys current session
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: cookie
$config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKey('Cookie', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Cookie', 'Bearer');
// Configure API key authorization: bearer
$config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$apiInstance = new ClientAPI\Semaphore\Api\AuthenticationApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
try {
$apiInstance->authLogoutPost();
} catch (Exception $e) {
echo 'Exception when calling AuthenticationApi->authLogoutPost: ', $e->getMessage(), PHP_EOL;
}
This endpoint does not need any parameter.
void (empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
authOidcProviderIdLoginGet($providerId)
Begin OIDC authentication flow and redirect to OIDC provider
The user agent is redirected to this endpoint when chosing to sign in via OIDC
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: cookie
$config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKey('Cookie', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Cookie', 'Bearer');
// Configure API key authorization: bearer
$config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$apiInstance = new ClientAPI\Semaphore\Api\AuthenticationApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$providerId = mysso; // string
try {
$apiInstance->authOidcProviderIdLoginGet($providerId);
} catch (Exception $e) {
echo 'Exception when calling AuthenticationApi->authOidcProviderIdLoginGet: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
providerId | string |
void (empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
authOidcProviderIdRedirectGet($providerId)
Finish OIDC authentication flow, upon succes you will be logged in
The user agent is redirected here by the OIDC provider to complete authentication
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: cookie
$config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKey('Cookie', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Cookie', 'Bearer');
// Configure API key authorization: bearer
$config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$apiInstance = new ClientAPI\Semaphore\Api\AuthenticationApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$providerId = mysso; // string
try {
$apiInstance->authOidcProviderIdRedirectGet($providerId);
} catch (Exception $e) {
echo 'Exception when calling AuthenticationApi->authOidcProviderIdRedirectGet: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
providerId | string |
void (empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
userTokensApiTokenIdDelete($apiTokenId)
Expires API token
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: cookie
$config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKey('Cookie', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Cookie', 'Bearer');
// Configure API key authorization: bearer
$config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$apiInstance = new ClientAPI\Semaphore\Api\AuthenticationApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$apiTokenId = kwofd61g93-yuqvex8efmhjkgnbxlo8mp1tin6spyhu=; // string
try {
$apiInstance->userTokensApiTokenIdDelete($apiTokenId);
} catch (Exception $e) {
echo 'Exception when calling AuthenticationApi->userTokensApiTokenIdDelete: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
apiTokenId | string |
void (empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
userTokensGet(): \ClientAPI\Semaphore\Model\APIToken[]
Fetch API tokens for user
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: cookie
$config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKey('Cookie', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Cookie', 'Bearer');
// Configure API key authorization: bearer
$config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$apiInstance = new ClientAPI\Semaphore\Api\AuthenticationApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
try {
$result = $apiInstance->userTokensGet();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AuthenticationApi->userTokensGet: ', $e->getMessage(), PHP_EOL;
}
This endpoint does not need any parameter.
\ClientAPI\Semaphore\Model\APIToken[]
- Content-Type: Not defined
- Accept:
application/json
,text/plain; charset=utf-8
[Back to top] [Back to API list] [Back to Model list] [Back to README]
userTokensPost(): \ClientAPI\Semaphore\Model\APIToken
Create an API token
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: cookie
$config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKey('Cookie', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Cookie', 'Bearer');
// Configure API key authorization: bearer
$config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$apiInstance = new ClientAPI\Semaphore\Api\AuthenticationApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
try {
$result = $apiInstance->userTokensPost();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AuthenticationApi->userTokensPost: ', $e->getMessage(), PHP_EOL;
}
This endpoint does not need any parameter.
\ClientAPI\Semaphore\Model\APIToken
- Content-Type: Not defined
- Accept:
application/json
,text/plain; charset=utf-8
[Back to top] [Back to API list] [Back to Model list] [Back to README]