ออบเจ็กต์
OAuthTokenRequest
ฟิลด์ของฟอร์ม application/x-www-form-urlencoded (RFC 6749 หัวข้อ 4.1.3 4.4.2 และ 6)
ฟิลด์
grant_typestringจำเป็นค่าที่ใช้ได้:
authorization_coderefresh_tokenclient_credentialscodestringรหัสการอนุญาต (
authorization_code)redirect_uristringURI สำหรับเปลี่ยนเส้นทางเดียวกับในคำขอการอนุญาต (
authorization_code)code_verifierstringค่า PKCE ต้นฉบับ ยาว 43 ถึง 128 อักขระ (
authorization_code)refresh_tokenstringโทเค็นรีเฟรช (
refresh_token)scopestringขอบเขตสิทธิ์ที่คั่นด้วยช่องว่าง ใช้เพื่อจำกัดให้แคบลงเท่านั้น (
refresh_tokenและclient_credentials)client_idstringID ของแอป เมื่อไม่ได้ส่งข้อมูลลับในเฮดเดอร์
Authorization: Basicclient_secretstringข้อมูลลับของไคลเอ็นต์ของแอป
confidentialเมื่อไม่ได้ส่งในเฮดเดอร์Authorization: Basic