Authentication
Overview of authentication API methods
Credentials authentication
Path Parameters
Name
Type
Description
Headers
Name
Type
Description
Request Body
Name
Type
Description
var client = new CodeMashClient(apiKey, projectId);
var membershipService = new CodeMashMembershipService(client);
await membershipService.AuthenticateCredentialsAsync(
"[email protected]",
"password123"
);use Codemash\CodemashClient;
use Codemash\CodemashAuth;
class CodemashService
{
protected CodemashAuth $codemashAuth;
public function __construct()
{
$secretKey = '{YOUR_SECRET_KEY}';
$projectId = '{YOUR_PROJECT_ID}';
$client = new CodemashClient($secretKey, $projectId);
$this->codemashAuth = new CodemashAuth($client);
}
public function login()
{
$responseData = $codemashAuth->authenticate([
'userName' => '[email protected]',
'password' => 'password123',
]);
}
}Microsoft authentication
Path Parameters
Name
Type
Description
Headers
Name
Type
Description
Request Body
Name
Type
Description
Logout
Path Parameters
Name
Type
Description
Check authentication
Path Parameters
Name
Type
Description
Headers
Name
Type
Description
Last updated