الانتقال إلى المحتوى الرئيسي
PUT
/
auth-integrations
/
{authIntegrationId}
تحديث تكامل مصادقة
curl --request PUT \
  --url https://api.altostrat.io/auth-integrations/{authIntegrationId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "Azure AD - الشركات",
  "type": "azure",
  "config": {
    "client_id": "a1b2c3d4-e5f6-a7b8-c9d0-e1f2a3b4c5d6",
    "client_secret": "YOUR_CLIENT_SECRET",
    "tenant": "organizations"
  }
}'
{
  "id": "c4d5e6f7-8a9b-0c1d-2e3f-4a5b6c7d8e9f",
  "name": "Azure AD - الشركات",
  "type": "azure",
  "config": {
    "client_id": "a1b2c3d4-e5f6-a7b8-c9d0-e1f2a3b4c5d6",
    "tenant": "organizations"
  },
  "test_url": "https://captive.altostr.at/auth-test/c4d5e6f7...?signature=...",
  "created_at": "2025-10-28T10:00:00Z"
}

Authorizations

Authorization
string
header
required

مصادقة مفتاح API. قدم الرمز الخاص بك في ترويسة 'Authorization'. مثال: Authorization: Bearer <YOUR_TOKEN>

Path Parameters

authIntegrationId
string<uuid>
required

المعرف الفريد لتكامل المصادقة.

Example:

"c4d5e6f7-8a9b-0c1d-2e3f-4a5b6c7d8e9f"

Body

application/json
name
string
required

اسم قابل للقراءة البشرية للتكامل.

Example:

"Azure AD - الشركات"

type
enum<string>
required

نوع موفر الهوية.

الخيارات المتاحة:
azure,
github,
google
Example:

"azure"

config
object
required

بيانات اعتماد التكوين للموفر.

Response

تم تحديث تكامل المصادقة بنجاح.

id
string<uuid>

المعرف الفريد لتكامل المصادقة.

Example:

"c4d5e6f7-8a9b-0c1d-2e3f-4a5b6c7d8e9f"

name
string

اسم قابل للقراءة البشرية للتكامل.

Example:

"Azure AD - الشركات"

type
enum<string>

نوع موفر الهوية.

الخيارات المتاحة:
azure,
github,
google
Example:

"azure"

config
object

بيانات اعتماد التكوين للموفر. client_secret للكتابة فقط ولن يتم إرجاعه في استجابات API.

test_url
string<uri>

رابط موقع يمكن استخدامه لاختبار تدفق المصادقة لهذا التكامل.

Example:

"https://captive.altostr.at/auth-test/c4d5e6f7...?signature=..."

created_at
string<date-time>

الطابع الزمني عند إنشاء التكامل.

Example:

"2025-10-28T10:00:00Z"