Centralized authentication for internal applications with role-based permissions
Version 1.0 - production environment
Redirect users to our platform for authentication, then return with authorization codes for secure user info exchange.
Direct API endpoints for email/password authentication using client application API keys.
Granular permissions system allowing different user roles and permissions per client application.
// Redirect to auth platform
$authUrl = "https://auth.creanet.sk/auth/login?" .
http_build_query([
'client_id' => 'your_app_id',
'redirect_uri' => 'http://your-app.com/callback'
]);
header("Location: $authUrl");
// Direct API call
$response = httpPost('https://auth.creanet.sk/api/auth/login', [
'email' => $userEmail,
'password' => $userPassword,
'client_id' => 'your_app_id',
'api_key' => 'your_api_key'
]);