ใช้ตรวจสอบกว่า client ที่จะใช้งานระบบมีสถานะการเข้าใช้กับ IDP ส่วนกลางแล้วหรือไม่ เพื่อทำให้ Auto sign-in ในระบบย่อยของ Eplatform ทั้งหมดเชื่อมต่อกัน
The request has succeeded.
Access is unauthorized.
curl --request GET \
--url https://dpt-idp.finema.dev/session{
"id": "c667df88-4de8-442b-a64a-5fbce59086f0",
"access_token": "kpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ",
"title_name": "นาย",
"name": "นายสุริยา แสนสวัสดิ์",
"family_name": "Saensawat",
"given_name": "Surinya",
"family_name_th": "แสนสวัสดิ์",
"given_name_th": "สุริยา",
"user_type_code": "1",
"user_type_name": "บุคลากรภายในกรม",
"position_name": "นักวิเคราะห์นโยบายและแผน",
"registration_id": "…",
"tax_id": "…",
"juristic_name_th": "…",
"juristic_name_en": "…",
"identification_number": "3737036019181",
"email": "surinyasaensawat@yahoo.com",
"phone_number": "0624436279",
"sub": "surinya.sae",
"addresses": [
{
"id": "c667df88-4de8-442b-a64a-5fbce59086f0",
"name": "บ้านหลัก",
"address": "56/96 หมู่บ้านเซนส์ สายไหม 56",
"address_code": "104202",
"address_type": "current",
"address_master": {
"code": "104202",
"province_code": "10",
"district_code": "1042",
"sub_district_code": "104202",
"province": "กรุงเทพมหานคร",
"district": "สายไหม",
"sub_district": "ออเงิน",
"postal_code": "10220"
},
"is_default": true
}
],
"is_super_admin": true,
"system_admin_scopes": [
"dpt11",
"dpt12",
"dpt54"
],
"officer_scopes": [
"dpt31",
"dpt32"
],
"sig": "24d9d53cc2938725a9e0cf261aa6d2def4fbeb546caeab9052b4"
}The request has succeeded.
เป็น Redirect link ที่ให้เปิดออกไปที่ site IDP แล้ว IDP จะทำการเปิดฟอร์ม login SSO
เมื่อทำการเข้าระบบสำเร็จ จะ redirect กลับไปที่ redirect_uri ที่ส่งมาพร้อมข้อมูล <access_token>
example. {{redirect_uri}}?token=<access_token>
Callback url eg. https://{domain}/api/idp/callback
There is no content to send for this request, but the headers may be useful.
curl --request GET \
--url 'https://dpt-idp.finema.dev/login?redirect_uri='There is no content to send for this request, but the headers may be useful.
เป็น Redirect link ที่ให้เปิดออกไปที่ site IDP แล้ว IDP จะทำการ logout client นั้นให้ จากนั้นจะ redirect กลับไปที่ redirect_uri ที่ส่งมา
*หมายเหตุ: ก่อนเรียก redirect IDP Logout ควรจัดการ logout data ที่ app ตัวเองก่อน (ลบ state login หรือ access_token ที่เก็บไว้ที่ app)
Callback url eg. https://{domain}/home
There is no content to send for this request, but the headers may be useful.
curl --request GET \
--url 'https://dpt-idp.finema.dev/session/end?redirect_uri='There is no content to send for this request, but the headers may be useful.