authlete_ruby_sdk 0.0.2.beta → 0.0.5.pre.beta

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (817) hide show
  1. checksums.yaml +4 -4
  2. data/lib/authlete/authorization.rb +24 -563
  3. data/lib/authlete/authorization_management.rb +15 -7
  4. data/lib/authlete/ciba.rb +35 -414
  5. data/lib/authlete/client.rb +4 -2
  6. data/lib/authlete/client_management.rb +1292 -95
  7. data/lib/authlete/clients.rb +47 -27
  8. data/lib/authlete/device_flow.rb +24 -147
  9. data/lib/authlete/dynamic_client_registration.rb +31 -283
  10. data/lib/authlete/federation.rb +17 -66
  11. data/lib/authlete/grant_management.rb +10 -5
  12. data/lib/authlete/hardware_security_keys.rb +24 -10
  13. data/lib/authlete/introspection.rb +17 -195
  14. data/lib/authlete/jose_object.rb +10 -5
  15. data/lib/authlete/jwk_set_endpoint.rb +24 -7
  16. data/lib/authlete/lifecycle.rb +151 -0
  17. data/lib/authlete/models/components/access_token.rb +9 -10
  18. data/lib/authlete/models/components/access_token.rbi +1 -1
  19. data/lib/authlete/models/components/application_type.rb +1 -4
  20. data/lib/authlete/models/components/application_type.rbi +1 -1
  21. data/lib/authlete/models/components/attachment_type.rb +1 -4
  22. data/lib/authlete/models/components/attachment_type.rbi +1 -1
  23. data/lib/authlete/models/components/authorization_details_element.rb +16 -17
  24. data/lib/authlete/models/components/authorization_details_element.rbi +1 -1
  25. data/lib/authlete/models/components/authorization_fail_request.rb +4 -5
  26. data/lib/authlete/models/components/authorization_fail_request.rbi +1 -1
  27. data/lib/authlete/models/components/authorization_fail_request_reason.rb +1 -4
  28. data/lib/authlete/models/components/authorization_fail_request_reason.rbi +1 -1
  29. data/lib/authlete/models/components/authorization_fail_response.rb +2 -3
  30. data/lib/authlete/models/components/authorization_fail_response.rbi +1 -1
  31. data/lib/authlete/models/components/authorization_fail_response_action.rb +0 -3
  32. data/lib/authlete/models/components/authorization_fail_response_action.rbi +1 -1
  33. data/lib/authlete/models/components/authorization_issue_request.rb +19 -84
  34. data/lib/authlete/models/components/authorization_issue_request.rbi +1 -1
  35. data/lib/authlete/models/components/authorization_issue_response.rb +8 -9
  36. data/lib/authlete/models/components/authorization_issue_response.rbi +1 -1
  37. data/lib/authlete/models/components/authorization_issue_response_action.rb +0 -3
  38. data/lib/authlete/models/components/authorization_issue_response_action.rbi +1 -1
  39. data/lib/authlete/models/components/authorization_request.rb +7 -8
  40. data/lib/authlete/models/components/authorization_request.rbi +1 -1
  41. data/lib/authlete/models/components/authorization_response.rb +86 -186
  42. data/lib/authlete/models/components/authorization_response.rbi +1 -3
  43. data/lib/authlete/models/components/authorization_response_action.rb +0 -3
  44. data/lib/authlete/models/components/authorization_response_action.rbi +1 -1
  45. data/lib/authlete/models/components/authorization_ticket_info.rb +1 -2
  46. data/lib/authlete/models/components/authorization_ticket_info.rbi +1 -1
  47. data/lib/authlete/models/components/authorization_ticket_info_request.rb +0 -1
  48. data/lib/authlete/models/components/authorization_ticket_info_request.rbi +1 -1
  49. data/lib/authlete/models/components/authorization_ticket_info_response.rb +1 -2
  50. data/lib/authlete/models/components/authorization_ticket_info_response.rbi +1 -1
  51. data/lib/authlete/models/components/authorization_ticket_info_response_action.rb +0 -3
  52. data/lib/authlete/models/components/authorization_ticket_info_response_action.rbi +1 -1
  53. data/lib/authlete/models/components/authorization_ticket_update_request.rb +0 -1
  54. data/lib/authlete/models/components/authorization_ticket_update_request.rbi +1 -1
  55. data/lib/authlete/models/components/authorization_ticket_update_response.rb +4 -5
  56. data/lib/authlete/models/components/authorization_ticket_update_response.rbi +1 -1
  57. data/lib/authlete/models/components/authorization_ticket_update_response_action.rb +0 -3
  58. data/lib/authlete/models/components/authorization_ticket_update_response_action.rbi +1 -1
  59. data/lib/authlete/models/components/authz_details.rb +2 -3
  60. data/lib/authlete/models/components/authz_details.rbi +1 -1
  61. data/lib/authlete/models/components/backchannel_authentication_complete_request.rb +23 -24
  62. data/lib/authlete/models/components/backchannel_authentication_complete_request.rbi +1 -1
  63. data/lib/authlete/models/components/backchannel_authentication_complete_request_result.rb +1 -4
  64. data/lib/authlete/models/components/backchannel_authentication_complete_request_result.rbi +1 -1
  65. data/lib/authlete/models/components/backchannel_authentication_complete_response.rb +30 -31
  66. data/lib/authlete/models/components/backchannel_authentication_complete_response.rbi +1 -1
  67. data/lib/authlete/models/components/backchannel_authentication_complete_response_action.rb +1 -4
  68. data/lib/authlete/models/components/backchannel_authentication_complete_response_action.rbi +1 -1
  69. data/lib/authlete/models/components/backchannel_authentication_fail_request.rb +5 -6
  70. data/lib/authlete/models/components/backchannel_authentication_fail_request.rbi +1 -1
  71. data/lib/authlete/models/components/backchannel_authentication_fail_request_reason.rb +1 -4
  72. data/lib/authlete/models/components/backchannel_authentication_fail_request_reason.rbi +1 -1
  73. data/lib/authlete/models/components/backchannel_authentication_fail_response.rb +2 -3
  74. data/lib/authlete/models/components/backchannel_authentication_fail_response.rbi +1 -1
  75. data/lib/authlete/models/components/backchannel_authentication_fail_response_action.rb +0 -3
  76. data/lib/authlete/models/components/backchannel_authentication_fail_response_action.rbi +1 -1
  77. data/lib/authlete/models/components/backchannel_authentication_issue_request.rb +1 -2
  78. data/lib/authlete/models/components/backchannel_authentication_issue_request.rbi +1 -1
  79. data/lib/authlete/models/components/backchannel_authentication_issue_response.rb +5 -6
  80. data/lib/authlete/models/components/backchannel_authentication_issue_response.rbi +1 -1
  81. data/lib/authlete/models/components/backchannel_authentication_issue_response_action.rb +0 -3
  82. data/lib/authlete/models/components/backchannel_authentication_issue_response_action.rbi +1 -1
  83. data/lib/authlete/models/components/backchannel_authentication_request.rb +12 -13
  84. data/lib/authlete/models/components/backchannel_authentication_request.rbi +1 -1
  85. data/lib/authlete/models/components/backchannel_authentication_response.rb +47 -57
  86. data/lib/authlete/models/components/backchannel_authentication_response.rbi +1 -1
  87. data/lib/authlete/models/components/backchannel_authentication_response_action.rb +0 -3
  88. data/lib/authlete/models/components/backchannel_authentication_response_action.rbi +1 -1
  89. data/lib/authlete/models/components/cimd_options.rb +15 -16
  90. data/lib/authlete/models/components/cimd_options.rbi +1 -1
  91. data/lib/authlete/models/components/claim_type.rb +0 -3
  92. data/lib/authlete/models/components/claim_type.rbi +1 -1
  93. data/lib/authlete/models/components/client.rb +160 -310
  94. data/lib/authlete/models/components/client.rbi +1 -1
  95. data/lib/authlete/models/components/client_auth_method.rb +1 -4
  96. data/lib/authlete/models/components/client_auth_method.rbi +1 -1
  97. data/lib/authlete/models/components/client_authorization_delete_response.rb +4 -5
  98. data/lib/authlete/models/components/client_authorization_delete_response.rbi +1 -1
  99. data/lib/authlete/models/components/client_authorization_get_list_request.rb +44 -0
  100. data/lib/authlete/models/components/client_authorization_get_list_request.rbi +19 -0
  101. data/lib/authlete/models/components/client_authorization_get_list_response.rb +6 -7
  102. data/lib/authlete/models/components/client_authorization_get_list_response.rbi +1 -1
  103. data/lib/authlete/models/components/client_authorization_update_request.rb +2 -3
  104. data/lib/authlete/models/components/client_authorization_update_request.rbi +1 -1
  105. data/lib/authlete/models/components/client_authorization_update_response.rb +0 -1
  106. data/lib/authlete/models/components/client_authorization_update_response.rbi +1 -1
  107. data/lib/authlete/models/components/{clientsource.rb → client_clientsource.rb} +3 -6
  108. data/lib/authlete/models/components/client_clientsource.rbi +11 -0
  109. data/lib/authlete/models/components/client_extension.rb +9 -20
  110. data/lib/authlete/models/components/client_extension.rbi +1 -1
  111. data/lib/authlete/models/components/client_extension_requestable_scopes_get_response.rb +2 -2
  112. data/lib/authlete/models/components/client_extension_requestable_scopes_get_response.rbi +1 -1
  113. data/lib/authlete/models/components/client_extension_requestable_scopes_update_request.rb +4 -5
  114. data/lib/authlete/models/components/client_extension_requestable_scopes_update_request.rbi +1 -1
  115. data/lib/authlete/models/components/client_extension_requestable_scopes_update_response.rb +0 -1
  116. data/lib/authlete/models/components/client_extension_requestable_scopes_update_response.rbi +1 -1
  117. data/lib/authlete/models/components/client_flag_update_request.rb +1 -2
  118. data/lib/authlete/models/components/client_flag_update_request.rbi +1 -1
  119. data/lib/authlete/models/components/client_flag_update_response.rb +0 -1
  120. data/lib/authlete/models/components/client_flag_update_response.rbi +1 -1
  121. data/lib/authlete/models/components/client_get_list_response.rb +4 -5
  122. data/lib/authlete/models/components/client_get_list_response.rbi +1 -1
  123. data/lib/authlete/models/components/client_granted_scopes_delete_response.rb +0 -1
  124. data/lib/authlete/models/components/client_granted_scopes_delete_response.rbi +1 -1
  125. data/lib/authlete/models/components/client_input.rb +155 -295
  126. data/lib/authlete/models/components/client_input.rbi +1 -1
  127. data/lib/authlete/models/components/client_limited.rb +7 -8
  128. data/lib/authlete/models/components/client_limited.rbi +1 -1
  129. data/lib/authlete/models/components/client_limited_authorization.rb +217 -20
  130. data/lib/authlete/models/components/client_limited_authorization.rbi +65 -1
  131. data/lib/authlete/models/components/client_limited_authorization_clientsource.rb +23 -0
  132. data/lib/authlete/models/components/client_limited_authorization_clientsource.rbi +11 -0
  133. data/lib/authlete/models/components/client_registration_response.rb +3 -4
  134. data/lib/authlete/models/components/client_registration_response.rbi +1 -1
  135. data/lib/authlete/models/components/client_registration_response_action.rb +1 -4
  136. data/lib/authlete/models/components/client_registration_response_action.rbi +1 -1
  137. data/lib/authlete/models/components/client_registration_type.rb +1 -4
  138. data/lib/authlete/models/components/client_registration_type.rbi +1 -1
  139. data/lib/authlete/models/components/client_secret_refresh_response.rb +2 -3
  140. data/lib/authlete/models/components/client_secret_refresh_response.rbi +1 -1
  141. data/lib/authlete/models/components/client_secret_update_request.rb +1 -2
  142. data/lib/authlete/models/components/client_secret_update_request.rbi +1 -1
  143. data/lib/authlete/models/components/client_secret_update_response.rb +2 -3
  144. data/lib/authlete/models/components/client_secret_update_response.rbi +1 -1
  145. data/lib/authlete/models/components/client_type.rb +1 -4
  146. data/lib/authlete/models/components/client_type.rbi +1 -1
  147. data/lib/authlete/models/components/credential_issuance_order.rb +1 -2
  148. data/lib/authlete/models/components/credential_issuance_order.rbi +1 -1
  149. data/lib/authlete/models/components/credential_issuer_metadata.rb +5 -6
  150. data/lib/authlete/models/components/credential_issuer_metadata.rbi +1 -1
  151. data/lib/authlete/models/components/credential_offer_info.rb +12 -21
  152. data/lib/authlete/models/components/credential_offer_info.rbi +1 -1
  153. data/lib/authlete/models/components/credential_request_info.rb +0 -1
  154. data/lib/authlete/models/components/credential_request_info.rbi +1 -1
  155. data/lib/authlete/models/components/delivery_mode.rb +0 -3
  156. data/lib/authlete/models/components/delivery_mode.rbi +1 -1
  157. data/lib/authlete/models/components/device_authorization_request.rb +12 -13
  158. data/lib/authlete/models/components/device_authorization_request.rbi +1 -1
  159. data/lib/authlete/models/components/device_authorization_response.rb +39 -49
  160. data/lib/authlete/models/components/device_authorization_response.rbi +1 -1
  161. data/lib/authlete/models/components/device_authorization_response_action.rb +0 -3
  162. data/lib/authlete/models/components/device_authorization_response_action.rbi +1 -1
  163. data/lib/authlete/models/components/device_complete_request.rb +22 -23
  164. data/lib/authlete/models/components/device_complete_request.rbi +1 -1
  165. data/lib/authlete/models/components/device_complete_request_result.rb +1 -4
  166. data/lib/authlete/models/components/device_complete_request_result.rbi +1 -1
  167. data/lib/authlete/models/components/device_complete_response.rb +2 -3
  168. data/lib/authlete/models/components/device_complete_response.rbi +1 -1
  169. data/lib/authlete/models/components/device_complete_response_action.rb +1 -4
  170. data/lib/authlete/models/components/device_complete_response_action.rbi +1 -1
  171. data/lib/authlete/models/components/device_verification_request.rb +1 -2
  172. data/lib/authlete/models/components/device_verification_request.rbi +1 -1
  173. data/lib/authlete/models/components/device_verification_response.rb +32 -33
  174. data/lib/authlete/models/components/device_verification_response.rbi +1 -1
  175. data/lib/authlete/models/components/device_verification_response_action.rb +0 -3
  176. data/lib/authlete/models/components/device_verification_response_action.rbi +1 -1
  177. data/lib/authlete/models/components/display.rb +3 -6
  178. data/lib/authlete/models/components/display.rbi +1 -1
  179. data/lib/authlete/models/components/dynamic_scope.rb +0 -1
  180. data/lib/authlete/models/components/dynamic_scope.rbi +1 -1
  181. data/lib/authlete/models/components/fapi_mode.rb +0 -3
  182. data/lib/authlete/models/components/fapi_mode.rbi +1 -1
  183. data/lib/authlete/models/components/federation_configuration_response.rb +2 -3
  184. data/lib/authlete/models/components/federation_configuration_response.rbi +1 -1
  185. data/lib/authlete/models/components/federation_configuration_response_action.rb +0 -3
  186. data/lib/authlete/models/components/federation_configuration_response_action.rbi +1 -1
  187. data/lib/authlete/models/components/federation_registration_request.rb +2 -3
  188. data/lib/authlete/models/components/federation_registration_request.rbi +1 -1
  189. data/lib/authlete/models/components/federation_registration_response.rb +2 -3
  190. data/lib/authlete/models/components/federation_registration_response.rbi +1 -1
  191. data/lib/authlete/models/components/federation_registration_response_action.rb +0 -3
  192. data/lib/authlete/models/components/federation_registration_response_action.rbi +1 -1
  193. data/lib/authlete/models/components/g_m_request.rb +13 -14
  194. data/lib/authlete/models/components/g_m_request.rbi +1 -1
  195. data/lib/authlete/models/components/g_m_response.rb +3 -4
  196. data/lib/authlete/models/components/g_m_response.rbi +1 -1
  197. data/lib/authlete/models/components/g_m_response_action.rb +0 -3
  198. data/lib/authlete/models/components/g_m_response_action.rbi +1 -1
  199. data/lib/authlete/models/components/grant.rb +2 -3
  200. data/lib/authlete/models/components/grant.rbi +1 -1
  201. data/lib/authlete/models/components/grant_management_action.rb +2 -5
  202. data/lib/authlete/models/components/grant_management_action.rbi +1 -1
  203. data/lib/authlete/models/components/grant_scope.rb +2 -3
  204. data/lib/authlete/models/components/grant_scope.rbi +1 -1
  205. data/lib/authlete/models/components/grant_type.rb +1 -4
  206. data/lib/authlete/models/components/grant_type.rbi +1 -1
  207. data/lib/authlete/models/components/hsk.rb +8 -9
  208. data/lib/authlete/models/components/hsk.rbi +1 -1
  209. data/lib/authlete/models/components/hsk_create_request.rb +6 -7
  210. data/lib/authlete/models/components/hsk_create_request.rbi +1 -1
  211. data/lib/authlete/models/components/hsk_create_response.rb +2 -3
  212. data/lib/authlete/models/components/hsk_create_response.rbi +1 -1
  213. data/lib/authlete/models/components/hsk_create_response_action.rb +0 -3
  214. data/lib/authlete/models/components/hsk_create_response_action.rbi +1 -1
  215. data/lib/authlete/models/components/hsk_delete_response.rb +2 -3
  216. data/lib/authlete/models/components/hsk_delete_response.rbi +1 -1
  217. data/lib/authlete/models/components/hsk_delete_response_action.rb +0 -3
  218. data/lib/authlete/models/components/hsk_delete_response_action.rbi +1 -1
  219. data/lib/authlete/models/components/hsk_get_list_response.rb +1 -2
  220. data/lib/authlete/models/components/hsk_get_list_response.rbi +1 -1
  221. data/lib/authlete/models/components/hsk_get_list_response_action.rb +0 -3
  222. data/lib/authlete/models/components/hsk_get_list_response_action.rbi +1 -1
  223. data/lib/authlete/models/components/hsk_get_response.rb +2 -3
  224. data/lib/authlete/models/components/hsk_get_response.rbi +1 -1
  225. data/lib/authlete/models/components/hsk_get_response_action.rb +0 -3
  226. data/lib/authlete/models/components/hsk_get_response_action.rbi +1 -1
  227. data/lib/authlete/models/components/idtoken_reissue_request.rb +7 -8
  228. data/lib/authlete/models/components/idtoken_reissue_request.rbi +1 -1
  229. data/lib/authlete/models/components/idtoken_reissue_response.rb +3 -4
  230. data/lib/authlete/models/components/idtoken_reissue_response.rbi +1 -1
  231. data/lib/authlete/models/components/idtoken_reissue_response_action.rb +0 -3
  232. data/lib/authlete/models/components/idtoken_reissue_response_action.rbi +1 -1
  233. data/lib/authlete/models/components/introspection_request.rb +24 -41
  234. data/lib/authlete/models/components/introspection_request.rbi +1 -1
  235. data/lib/authlete/models/components/introspection_response.rb +36 -46
  236. data/lib/authlete/models/components/introspection_response.rbi +1 -1
  237. data/lib/authlete/models/components/introspection_response_action.rb +0 -3
  238. data/lib/authlete/models/components/introspection_response_action.rbi +1 -1
  239. data/lib/authlete/models/components/jose_verify_request.rb +5 -6
  240. data/lib/authlete/models/components/jose_verify_request.rbi +1 -1
  241. data/lib/authlete/models/components/jose_verify_response.rb +5 -6
  242. data/lib/authlete/models/components/jose_verify_response.rbi +1 -1
  243. data/lib/authlete/models/components/jwe_alg.rb +2 -5
  244. data/lib/authlete/models/components/jwe_alg.rbi +1 -1
  245. data/lib/authlete/models/components/jwe_enc.rb +1 -4
  246. data/lib/authlete/models/components/jwe_enc.rbi +1 -1
  247. data/lib/authlete/models/components/jws_alg.rb +2 -5
  248. data/lib/authlete/models/components/jws_alg.rbi +1 -1
  249. data/lib/authlete/models/components/named_uri.rb +0 -1
  250. data/lib/authlete/models/components/named_uri.rbi +1 -1
  251. data/lib/authlete/models/components/native_sso_logout_request.rb +1 -2
  252. data/lib/authlete/models/components/native_sso_logout_request.rbi +1 -1
  253. data/lib/authlete/models/components/native_sso_logout_response.rb +3 -4
  254. data/lib/authlete/models/components/native_sso_logout_response.rbi +1 -1
  255. data/lib/authlete/models/components/native_sso_logout_response_action.rb +1 -4
  256. data/lib/authlete/models/components/native_sso_logout_response_action.rbi +1 -1
  257. data/lib/authlete/models/components/native_sso_request.rb +8 -25
  258. data/lib/authlete/models/components/native_sso_request.rbi +1 -1
  259. data/lib/authlete/models/components/native_sso_response.rb +4 -5
  260. data/lib/authlete/models/components/native_sso_response.rbi +1 -1
  261. data/lib/authlete/models/components/native_sso_response_action.rb +1 -4
  262. data/lib/authlete/models/components/native_sso_response_action.rbi +1 -1
  263. data/lib/authlete/models/components/pair.rb +0 -1
  264. data/lib/authlete/models/components/pair.rbi +1 -1
  265. data/lib/authlete/models/components/prompt.rb +3 -6
  266. data/lib/authlete/models/components/prompt.rbi +1 -1
  267. data/lib/authlete/models/components/property.rb +1 -2
  268. data/lib/authlete/models/components/property.rbi +1 -1
  269. data/lib/authlete/models/components/pushed_authorization_request.rb +11 -12
  270. data/lib/authlete/models/components/pushed_authorization_request.rbi +1 -1
  271. data/lib/authlete/models/components/pushed_authorization_response.rb +6 -7
  272. data/lib/authlete/models/components/pushed_authorization_response.rbi +1 -1
  273. data/lib/authlete/models/components/pushed_authorization_response_action.rb +0 -3
  274. data/lib/authlete/models/components/pushed_authorization_response_action.rbi +1 -1
  275. data/lib/authlete/models/components/pushed_authorization_response_clientauthmethod.rb +2 -4
  276. data/lib/authlete/models/components/pushed_authorization_response_clientauthmethod.rbi +1 -1
  277. data/lib/authlete/models/components/response_type.rb +0 -3
  278. data/lib/authlete/models/components/response_type.rbi +1 -1
  279. data/lib/authlete/models/components/responsemode.rb +0 -3
  280. data/lib/authlete/models/components/responsemode.rbi +1 -1
  281. data/lib/authlete/models/components/revocation_request.rb +10 -11
  282. data/lib/authlete/models/components/revocation_request.rbi +1 -1
  283. data/lib/authlete/models/components/revocation_response.rb +2 -3
  284. data/lib/authlete/models/components/revocation_response.rbi +1 -1
  285. data/lib/authlete/models/components/revocation_response_action.rb +0 -3
  286. data/lib/authlete/models/components/revocation_response_action.rbi +1 -1
  287. data/lib/authlete/models/components/scope.rb +0 -1
  288. data/lib/authlete/models/components/scope.rbi +1 -1
  289. data/lib/authlete/models/components/security.rb +3 -4
  290. data/lib/authlete/models/components/security.rbi +1 -1
  291. data/lib/authlete/models/components/service.rb +248 -600
  292. data/lib/authlete/models/components/service.rbi +1 -1
  293. data/lib/authlete/models/components/service_get_list_response.rb +4 -5
  294. data/lib/authlete/models/components/service_get_list_response.rbi +1 -1
  295. data/lib/authlete/models/components/service_input.rb +242 -594
  296. data/lib/authlete/models/components/service_input.rbi +1 -1
  297. data/lib/authlete/models/components/service_jwks_get_response.rb +0 -1
  298. data/lib/authlete/models/components/service_jwks_get_response.rbi +1 -1
  299. data/lib/authlete/models/components/service_profile.rb +0 -3
  300. data/lib/authlete/models/components/service_profile.rbi +1 -1
  301. data/lib/authlete/models/components/sns_credentials.rb +0 -1
  302. data/lib/authlete/models/components/sns_credentials.rbi +1 -1
  303. data/lib/authlete/models/components/standard_introspection_request.rb +22 -23
  304. data/lib/authlete/models/components/standard_introspection_request.rbi +1 -1
  305. data/lib/authlete/models/components/standard_introspection_response.rb +2 -3
  306. data/lib/authlete/models/components/standard_introspection_response.rbi +1 -1
  307. data/lib/authlete/models/components/standard_introspection_response_action.rb +1 -3
  308. data/lib/authlete/models/components/standard_introspection_response_action.rbi +1 -1
  309. data/lib/authlete/models/components/subject_type.rb +2 -5
  310. data/lib/authlete/models/components/subject_type.rbi +1 -1
  311. data/lib/authlete/models/components/supportedsnse.rb +0 -3
  312. data/lib/authlete/models/components/supportedsnse.rbi +1 -1
  313. data/lib/authlete/models/components/tagged_value.rb +0 -1
  314. data/lib/authlete/models/components/tagged_value.rbi +1 -1
  315. data/lib/authlete/models/components/token_create_request.rb +30 -63
  316. data/lib/authlete/models/components/token_create_request.rbi +1 -1
  317. data/lib/authlete/models/components/token_create_response.rb +18 -19
  318. data/lib/authlete/models/components/token_create_response.rbi +1 -1
  319. data/lib/authlete/models/components/token_create_response_action.rb +0 -3
  320. data/lib/authlete/models/components/token_create_response_action.rbi +1 -1
  321. data/lib/authlete/models/components/token_fail_request.rb +3 -4
  322. data/lib/authlete/models/components/token_fail_request.rbi +1 -1
  323. data/lib/authlete/models/components/token_fail_request_reason.rb +1 -4
  324. data/lib/authlete/models/components/token_fail_request_reason.rbi +1 -1
  325. data/lib/authlete/models/components/token_fail_response.rb +2 -3
  326. data/lib/authlete/models/components/token_fail_response.rbi +1 -1
  327. data/lib/authlete/models/components/token_fail_response_action.rb +0 -3
  328. data/lib/authlete/models/components/token_fail_response_action.rbi +1 -1
  329. data/lib/authlete/models/components/token_get_list_response.rb +5 -6
  330. data/lib/authlete/models/components/token_get_list_response.rbi +1 -1
  331. data/lib/authlete/models/components/token_info.rb +8 -9
  332. data/lib/authlete/models/components/token_info.rbi +1 -1
  333. data/lib/authlete/models/components/token_issue_request.rb +9 -10
  334. data/lib/authlete/models/components/token_issue_request.rbi +1 -1
  335. data/lib/authlete/models/components/token_issue_response.rb +21 -22
  336. data/lib/authlete/models/components/token_issue_response.rbi +1 -1
  337. data/lib/authlete/models/components/token_issue_response_action.rb +0 -3
  338. data/lib/authlete/models/components/token_issue_response_action.rbi +1 -1
  339. data/lib/authlete/models/components/token_request.rb +27 -28
  340. data/lib/authlete/models/components/token_request.rbi +1 -1
  341. data/lib/authlete/models/components/token_response.rb +55 -63
  342. data/lib/authlete/models/components/token_response.rbi +3 -1
  343. data/lib/authlete/models/components/token_response_action.rb +2 -3
  344. data/lib/authlete/models/components/token_response_action.rbi +1 -1
  345. data/lib/authlete/models/components/token_revoke_request.rb +7 -8
  346. data/lib/authlete/models/components/token_revoke_request.rbi +1 -1
  347. data/lib/authlete/models/components/token_revoke_response.rb +0 -1
  348. data/lib/authlete/models/components/token_revoke_response.rbi +1 -1
  349. data/lib/authlete/models/components/token_type.rb +1 -4
  350. data/lib/authlete/models/components/token_type.rbi +1 -1
  351. data/lib/authlete/models/components/token_update_request.rb +19 -20
  352. data/lib/authlete/models/components/token_update_request.rbi +1 -1
  353. data/lib/authlete/models/components/token_update_response.rb +9 -10
  354. data/lib/authlete/models/components/token_update_response.rbi +1 -1
  355. data/lib/authlete/models/components/token_update_response_action.rb +0 -3
  356. data/lib/authlete/models/components/token_update_response_action.rbi +1 -1
  357. data/lib/authlete/models/components/trust_anchor.rb +2 -3
  358. data/lib/authlete/models/components/trust_anchor.rbi +1 -1
  359. data/lib/authlete/models/components/user_code_charset.rb +1 -4
  360. data/lib/authlete/models/components/user_code_charset.rbi +1 -1
  361. data/lib/authlete/models/components/userinfo_issue_request.rb +7 -68
  362. data/lib/authlete/models/components/userinfo_issue_request.rbi +1 -1
  363. data/lib/authlete/models/components/userinfo_issue_response.rb +5 -6
  364. data/lib/authlete/models/components/userinfo_issue_response.rbi +1 -1
  365. data/lib/authlete/models/components/userinfo_issue_response_action.rb +0 -3
  366. data/lib/authlete/models/components/userinfo_issue_response_action.rbi +1 -1
  367. data/lib/authlete/models/components/userinfo_request.rb +15 -41
  368. data/lib/authlete/models/components/userinfo_request.rbi +1 -1
  369. data/lib/authlete/models/components/userinfo_response.rb +46 -90
  370. data/lib/authlete/models/components/userinfo_response.rbi +1 -1
  371. data/lib/authlete/models/components/userinfo_response_action.rb +0 -3
  372. data/lib/authlete/models/components/userinfo_response_action.rbi +1 -1
  373. data/lib/authlete/models/components/vci_batch_issue_request.rb +0 -1
  374. data/lib/authlete/models/components/vci_batch_issue_request.rbi +1 -1
  375. data/lib/authlete/models/components/vci_batch_issue_response.rb +3 -4
  376. data/lib/authlete/models/components/vci_batch_issue_response.rbi +1 -1
  377. data/lib/authlete/models/components/vci_batch_issue_response_action.rb +1 -4
  378. data/lib/authlete/models/components/vci_batch_issue_response_action.rbi +1 -1
  379. data/lib/authlete/models/components/vci_batch_parse_request.rb +0 -1
  380. data/lib/authlete/models/components/vci_batch_parse_request.rbi +1 -1
  381. data/lib/authlete/models/components/vci_batch_parse_response.rb +2 -3
  382. data/lib/authlete/models/components/vci_batch_parse_response.rbi +1 -1
  383. data/lib/authlete/models/components/vci_batch_parse_response_action.rb +0 -3
  384. data/lib/authlete/models/components/vci_batch_parse_response_action.rbi +1 -1
  385. data/lib/authlete/models/components/vci_deferred_issue_request.rb +0 -1
  386. data/lib/authlete/models/components/vci_deferred_issue_request.rbi +1 -1
  387. data/lib/authlete/models/components/vci_deferred_issue_response.rb +3 -4
  388. data/lib/authlete/models/components/vci_deferred_issue_response.rbi +1 -1
  389. data/lib/authlete/models/components/vci_deferred_issue_response_action.rb +1 -4
  390. data/lib/authlete/models/components/vci_deferred_issue_response_action.rbi +1 -1
  391. data/lib/authlete/models/components/vci_deferred_parse_request.rb +0 -1
  392. data/lib/authlete/models/components/vci_deferred_parse_request.rbi +1 -1
  393. data/lib/authlete/models/components/vci_deferred_parse_response.rb +1 -2
  394. data/lib/authlete/models/components/vci_deferred_parse_response.rbi +1 -1
  395. data/lib/authlete/models/components/vci_deferred_parse_response_action.rb +0 -3
  396. data/lib/authlete/models/components/vci_deferred_parse_response_action.rbi +1 -1
  397. data/lib/authlete/models/components/vci_jwks_request.rb +1 -2
  398. data/lib/authlete/models/components/vci_jwks_request.rbi +1 -1
  399. data/lib/authlete/models/components/vci_jwks_response.rb +3 -4
  400. data/lib/authlete/models/components/vci_jwks_response.rbi +1 -1
  401. data/lib/authlete/models/components/vci_jwks_response_action.rb +1 -4
  402. data/lib/authlete/models/components/vci_jwks_response_action.rbi +1 -1
  403. data/lib/authlete/models/components/vci_jwtissuer_request.rb +1 -2
  404. data/lib/authlete/models/components/vci_jwtissuer_request.rbi +1 -1
  405. data/lib/authlete/models/components/vci_jwtissuer_response.rb +3 -4
  406. data/lib/authlete/models/components/vci_jwtissuer_response.rbi +1 -1
  407. data/lib/authlete/models/components/vci_jwtissuer_response_action.rb +1 -4
  408. data/lib/authlete/models/components/vci_jwtissuer_response_action.rbi +1 -1
  409. data/lib/authlete/models/components/vci_metadata_request.rb +1 -2
  410. data/lib/authlete/models/components/vci_metadata_request.rbi +1 -1
  411. data/lib/authlete/models/components/vci_metadata_response.rb +3 -4
  412. data/lib/authlete/models/components/vci_metadata_response.rbi +1 -1
  413. data/lib/authlete/models/components/vci_metadata_response_action.rb +1 -4
  414. data/lib/authlete/models/components/vci_metadata_response_action.rbi +1 -1
  415. data/lib/authlete/models/components/vci_offer_create_request.rb +10 -80
  416. data/lib/authlete/models/components/vci_offer_create_request.rbi +1 -1
  417. data/lib/authlete/models/components/vci_offer_create_response.rb +1 -2
  418. data/lib/authlete/models/components/vci_offer_create_response.rbi +1 -1
  419. data/lib/authlete/models/components/vci_offer_create_response_action.rb +0 -3
  420. data/lib/authlete/models/components/vci_offer_create_response_action.rbi +1 -1
  421. data/lib/authlete/models/components/vci_offer_info_request.rb +0 -1
  422. data/lib/authlete/models/components/vci_offer_info_request.rbi +1 -1
  423. data/lib/authlete/models/components/vci_offer_info_response.rb +1 -2
  424. data/lib/authlete/models/components/vci_offer_info_response.rbi +1 -1
  425. data/lib/authlete/models/components/vci_offer_info_response_action.rb +0 -3
  426. data/lib/authlete/models/components/vci_offer_info_response_action.rbi +1 -1
  427. data/lib/authlete/models/components/vci_single_issue_request.rb +0 -1
  428. data/lib/authlete/models/components/vci_single_issue_request.rbi +1 -1
  429. data/lib/authlete/models/components/vci_single_issue_response.rb +4 -5
  430. data/lib/authlete/models/components/vci_single_issue_response.rbi +1 -1
  431. data/lib/authlete/models/components/vci_single_issue_response_action.rb +1 -4
  432. data/lib/authlete/models/components/vci_single_issue_response_action.rbi +1 -1
  433. data/lib/authlete/models/components/vci_single_parse_request.rb +0 -1
  434. data/lib/authlete/models/components/vci_single_parse_request.rbi +1 -1
  435. data/lib/authlete/models/components/vci_single_parse_response.rb +1 -2
  436. data/lib/authlete/models/components/vci_single_parse_response.rbi +1 -1
  437. data/lib/authlete/models/components/vci_single_parse_response_action.rb +0 -3
  438. data/lib/authlete/models/components/vci_single_parse_response_action.rbi +1 -1
  439. data/lib/authlete/models/components/verified_claims_validation_schema.rb +1 -4
  440. data/lib/authlete/models/components/verified_claims_validation_schema.rbi +1 -1
  441. data/lib/authlete/models/components.rb +3 -1
  442. data/lib/authlete/models/errors/apierror.rbi +2 -1
  443. data/lib/authlete/models/errors/result_error.rb +0 -1
  444. data/lib/authlete/models/errors/result_error.rbi +1 -1
  445. data/lib/authlete/models/operations/auth_authorization_api_request.rb +0 -1
  446. data/lib/authlete/models/operations/auth_authorization_api_request.rbi +1 -1
  447. data/lib/authlete/models/operations/auth_authorization_api_response.rb +0 -1
  448. data/lib/authlete/models/operations/auth_authorization_api_response.rbi +1 -1
  449. data/lib/authlete/models/operations/auth_authorization_fail_api_request.rb +0 -1
  450. data/lib/authlete/models/operations/auth_authorization_fail_api_request.rbi +1 -1
  451. data/lib/authlete/models/operations/auth_authorization_fail_api_response.rb +0 -1
  452. data/lib/authlete/models/operations/auth_authorization_fail_api_response.rbi +1 -1
  453. data/lib/authlete/models/operations/auth_authorization_issue_api_request.rb +0 -1
  454. data/lib/authlete/models/operations/auth_authorization_issue_api_request.rbi +1 -1
  455. data/lib/authlete/models/operations/auth_authorization_issue_api_response.rb +0 -1
  456. data/lib/authlete/models/operations/auth_authorization_issue_api_response.rbi +1 -1
  457. data/lib/authlete/models/operations/auth_introspection_api_request.rb +0 -1
  458. data/lib/authlete/models/operations/auth_introspection_api_request.rbi +1 -1
  459. data/lib/authlete/models/operations/auth_introspection_api_response.rb +0 -1
  460. data/lib/authlete/models/operations/auth_introspection_api_response.rbi +1 -1
  461. data/lib/authlete/models/operations/auth_introspection_standard_api_request.rb +0 -1
  462. data/lib/authlete/models/operations/auth_introspection_standard_api_request.rbi +1 -1
  463. data/lib/authlete/models/operations/auth_introspection_standard_api_response.rb +0 -1
  464. data/lib/authlete/models/operations/auth_introspection_standard_api_response.rbi +1 -1
  465. data/lib/authlete/models/operations/auth_revocation_api_request.rb +0 -1
  466. data/lib/authlete/models/operations/auth_revocation_api_request.rbi +1 -1
  467. data/lib/authlete/models/operations/auth_revocation_api_response.rb +0 -1
  468. data/lib/authlete/models/operations/auth_revocation_api_response.rbi +1 -1
  469. data/lib/authlete/models/operations/auth_token_api_request.rb +0 -1
  470. data/lib/authlete/models/operations/auth_token_api_request.rbi +1 -1
  471. data/lib/authlete/models/operations/auth_token_api_response.rb +0 -1
  472. data/lib/authlete/models/operations/auth_token_api_response.rbi +1 -1
  473. data/lib/authlete/models/operations/auth_token_create_api_request.rb +0 -1
  474. data/lib/authlete/models/operations/auth_token_create_api_request.rbi +1 -1
  475. data/lib/authlete/models/operations/auth_token_create_api_response.rb +0 -1
  476. data/lib/authlete/models/operations/auth_token_create_api_response.rbi +1 -1
  477. data/lib/authlete/models/operations/auth_token_delete_api_request.rb +1 -2
  478. data/lib/authlete/models/operations/auth_token_delete_api_request.rbi +1 -1
  479. data/lib/authlete/models/operations/auth_token_delete_api_response.rb +0 -1
  480. data/lib/authlete/models/operations/auth_token_delete_api_response.rbi +1 -1
  481. data/lib/authlete/models/operations/auth_token_fail_api_request.rb +0 -1
  482. data/lib/authlete/models/operations/auth_token_fail_api_request.rbi +1 -1
  483. data/lib/authlete/models/operations/auth_token_fail_api_response.rb +0 -1
  484. data/lib/authlete/models/operations/auth_token_fail_api_response.rbi +1 -1
  485. data/lib/authlete/models/operations/auth_token_get_list_api_request.rb +3 -4
  486. data/lib/authlete/models/operations/auth_token_get_list_api_request.rbi +1 -1
  487. data/lib/authlete/models/operations/auth_token_get_list_api_response.rb +0 -1
  488. data/lib/authlete/models/operations/auth_token_get_list_api_response.rbi +1 -1
  489. data/lib/authlete/models/operations/auth_token_issue_api_request.rb +0 -1
  490. data/lib/authlete/models/operations/auth_token_issue_api_request.rbi +1 -1
  491. data/lib/authlete/models/operations/auth_token_issue_api_response.rb +0 -1
  492. data/lib/authlete/models/operations/auth_token_issue_api_response.rbi +1 -1
  493. data/lib/authlete/models/operations/auth_token_revoke_api_request.rb +0 -1
  494. data/lib/authlete/models/operations/auth_token_revoke_api_request.rbi +1 -1
  495. data/lib/authlete/models/operations/auth_token_revoke_api_response.rb +0 -1
  496. data/lib/authlete/models/operations/auth_token_revoke_api_response.rbi +1 -1
  497. data/lib/authlete/models/operations/auth_token_update_api_request.rb +0 -1
  498. data/lib/authlete/models/operations/auth_token_update_api_request.rbi +1 -1
  499. data/lib/authlete/models/operations/auth_token_update_api_response.rb +0 -1
  500. data/lib/authlete/models/operations/auth_token_update_api_response.rbi +1 -1
  501. data/lib/authlete/models/operations/auth_userinfo_api_request.rb +0 -1
  502. data/lib/authlete/models/operations/auth_userinfo_api_request.rbi +1 -1
  503. data/lib/authlete/models/operations/auth_userinfo_api_response.rb +0 -1
  504. data/lib/authlete/models/operations/auth_userinfo_api_response.rbi +1 -1
  505. data/lib/authlete/models/operations/auth_userinfo_issue_api_request.rb +0 -1
  506. data/lib/authlete/models/operations/auth_userinfo_issue_api_request.rbi +1 -1
  507. data/lib/authlete/models/operations/auth_userinfo_issue_api_response.rb +0 -1
  508. data/lib/authlete/models/operations/auth_userinfo_issue_api_response.rbi +1 -1
  509. data/lib/authlete/models/operations/authorization_ticket_info_post_api_request.rb +0 -1
  510. data/lib/authlete/models/operations/authorization_ticket_info_post_api_request.rbi +1 -1
  511. data/lib/authlete/models/operations/authorization_ticket_info_post_api_response.rb +0 -1
  512. data/lib/authlete/models/operations/authorization_ticket_info_post_api_response.rbi +1 -1
  513. data/lib/authlete/models/operations/backchannel_authentication_api_request.rb +0 -1
  514. data/lib/authlete/models/operations/backchannel_authentication_api_request.rbi +1 -1
  515. data/lib/authlete/models/operations/backchannel_authentication_api_response.rb +0 -1
  516. data/lib/authlete/models/operations/backchannel_authentication_api_response.rbi +1 -1
  517. data/lib/authlete/models/operations/backchannel_authentication_complete_api_request.rb +0 -1
  518. data/lib/authlete/models/operations/backchannel_authentication_complete_api_request.rbi +1 -1
  519. data/lib/authlete/models/operations/backchannel_authentication_complete_api_response.rb +0 -1
  520. data/lib/authlete/models/operations/backchannel_authentication_complete_api_response.rbi +1 -1
  521. data/lib/authlete/models/operations/backchannel_authentication_fail_api_request.rb +0 -1
  522. data/lib/authlete/models/operations/backchannel_authentication_fail_api_request.rbi +1 -1
  523. data/lib/authlete/models/operations/backchannel_authentication_fail_api_response.rb +0 -1
  524. data/lib/authlete/models/operations/backchannel_authentication_fail_api_response.rbi +1 -1
  525. data/lib/authlete/models/operations/backchannel_authentication_issue_api_request.rb +0 -1
  526. data/lib/authlete/models/operations/backchannel_authentication_issue_api_request.rbi +1 -1
  527. data/lib/authlete/models/operations/backchannel_authentication_issue_api_response.rb +0 -1
  528. data/lib/authlete/models/operations/backchannel_authentication_issue_api_response.rbi +1 -1
  529. data/lib/authlete/models/operations/client_authorization_delete_api_post_request.rb +41 -0
  530. data/lib/authlete/models/operations/client_authorization_delete_api_post_request.rbi +17 -0
  531. data/lib/authlete/models/operations/client_authorization_delete_api_post_requestbody.rb +32 -0
  532. data/lib/authlete/models/operations/client_authorization_delete_api_post_requestbody.rbi +13 -0
  533. data/lib/authlete/models/operations/client_authorization_delete_api_post_response.rb +44 -0
  534. data/lib/authlete/models/operations/client_authorization_delete_api_post_response.rbi +19 -0
  535. data/lib/authlete/models/operations/client_authorization_delete_api_request.rb +7 -13
  536. data/lib/authlete/models/operations/client_authorization_delete_api_request.rbi +3 -5
  537. data/lib/authlete/models/operations/client_authorization_delete_api_response.rb +0 -1
  538. data/lib/authlete/models/operations/client_authorization_delete_api_response.rbi +1 -1
  539. data/lib/authlete/models/operations/client_authorization_delete_by_subject_api_request.rb +42 -0
  540. data/lib/authlete/models/operations/client_authorization_delete_by_subject_api_request.rbi +17 -0
  541. data/lib/authlete/models/operations/client_authorization_delete_by_subject_api_response.rb +44 -0
  542. data/lib/authlete/models/operations/client_authorization_delete_by_subject_api_response.rbi +19 -0
  543. data/lib/authlete/models/operations/client_authorization_get_list_api_post_request.rb +36 -0
  544. data/lib/authlete/models/operations/client_authorization_get_list_api_post_request.rbi +15 -0
  545. data/lib/authlete/models/operations/client_authorization_get_list_api_post_response.rb +44 -0
  546. data/lib/authlete/models/operations/client_authorization_get_list_api_post_response.rbi +19 -0
  547. data/lib/authlete/models/operations/client_authorization_get_list_api_request.rb +8 -14
  548. data/lib/authlete/models/operations/client_authorization_get_list_api_request.rbi +3 -5
  549. data/lib/authlete/models/operations/client_authorization_get_list_api_response.rb +0 -1
  550. data/lib/authlete/models/operations/client_authorization_get_list_api_response.rbi +1 -1
  551. data/lib/authlete/models/operations/client_authorization_get_list_by_subject_api_request.rb +51 -0
  552. data/lib/authlete/models/operations/client_authorization_get_list_by_subject_api_request.rbi +21 -0
  553. data/lib/authlete/models/operations/client_authorization_get_list_by_subject_api_response.rb +44 -0
  554. data/lib/authlete/models/operations/client_authorization_get_list_by_subject_api_response.rbi +19 -0
  555. data/lib/authlete/models/operations/client_authorization_update_api_request.rb +1 -2
  556. data/lib/authlete/models/operations/client_authorization_update_api_request.rbi +1 -1
  557. data/lib/authlete/models/operations/client_authorization_update_api_response.rb +0 -1
  558. data/lib/authlete/models/operations/client_authorization_update_api_response.rbi +1 -1
  559. data/lib/authlete/models/operations/client_create_api_request.rb +0 -1
  560. data/lib/authlete/models/operations/client_create_api_request.rbi +1 -1
  561. data/lib/authlete/models/operations/client_create_api_response.rb +1 -2
  562. data/lib/authlete/models/operations/client_create_api_response.rbi +1 -1
  563. data/lib/authlete/models/operations/client_delete_api_request.rb +0 -1
  564. data/lib/authlete/models/operations/client_delete_api_request.rbi +1 -1
  565. data/lib/authlete/models/operations/client_delete_api_response.rb +0 -1
  566. data/lib/authlete/models/operations/client_delete_api_response.rbi +1 -1
  567. data/lib/authlete/models/operations/client_extension_requestables_scopes_delete_api_request.rb +1 -2
  568. data/lib/authlete/models/operations/client_extension_requestables_scopes_delete_api_request.rbi +1 -1
  569. data/lib/authlete/models/operations/client_extension_requestables_scopes_delete_api_response.rb +0 -1
  570. data/lib/authlete/models/operations/client_extension_requestables_scopes_delete_api_response.rbi +1 -1
  571. data/lib/authlete/models/operations/client_extension_requestables_scopes_get_api_request.rb +1 -2
  572. data/lib/authlete/models/operations/client_extension_requestables_scopes_get_api_request.rbi +1 -1
  573. data/lib/authlete/models/operations/client_extension_requestables_scopes_get_api_response.rb +0 -1
  574. data/lib/authlete/models/operations/client_extension_requestables_scopes_get_api_response.rbi +1 -1
  575. data/lib/authlete/models/operations/client_extension_requestables_scopes_update_api_post_request.rb +41 -0
  576. data/lib/authlete/models/operations/client_extension_requestables_scopes_update_api_post_request.rbi +17 -0
  577. data/lib/authlete/models/operations/client_extension_requestables_scopes_update_api_post_response.rb +44 -0
  578. data/lib/authlete/models/operations/client_extension_requestables_scopes_update_api_post_response.rbi +19 -0
  579. data/lib/authlete/models/operations/client_extension_requestables_scopes_update_api_request.rb +1 -2
  580. data/lib/authlete/models/operations/client_extension_requestables_scopes_update_api_request.rbi +1 -1
  581. data/lib/authlete/models/operations/client_extension_requestables_scopes_update_api_response.rb +0 -1
  582. data/lib/authlete/models/operations/client_extension_requestables_scopes_update_api_response.rbi +1 -1
  583. data/lib/authlete/models/operations/client_flag_update_api_request.rb +0 -1
  584. data/lib/authlete/models/operations/client_flag_update_api_request.rbi +1 -1
  585. data/lib/authlete/models/operations/client_flag_update_api_response.rb +0 -1
  586. data/lib/authlete/models/operations/client_flag_update_api_response.rbi +1 -1
  587. data/lib/authlete/models/operations/client_get_api_request.rb +0 -1
  588. data/lib/authlete/models/operations/client_get_api_request.rbi +1 -1
  589. data/lib/authlete/models/operations/client_get_api_response.rb +0 -1
  590. data/lib/authlete/models/operations/client_get_api_response.rbi +1 -1
  591. data/lib/authlete/models/operations/client_get_list_api_request.rb +1 -2
  592. data/lib/authlete/models/operations/client_get_list_api_request.rbi +1 -1
  593. data/lib/authlete/models/operations/client_get_list_api_response.rb +0 -1
  594. data/lib/authlete/models/operations/client_get_list_api_response.rbi +1 -1
  595. data/lib/authlete/models/operations/client_granted_scopes_delete_api_request.rb +7 -13
  596. data/lib/authlete/models/operations/client_granted_scopes_delete_api_request.rbi +3 -5
  597. data/lib/authlete/models/operations/client_granted_scopes_delete_api_response.rb +0 -1
  598. data/lib/authlete/models/operations/client_granted_scopes_delete_api_response.rbi +1 -1
  599. data/lib/authlete/models/operations/client_granted_scopes_delete_by_subject_api_request.rb +42 -0
  600. data/lib/authlete/models/operations/client_granted_scopes_delete_by_subject_api_request.rbi +17 -0
  601. data/lib/authlete/models/operations/client_granted_scopes_delete_by_subject_api_response.rb +44 -0
  602. data/lib/authlete/models/operations/client_granted_scopes_delete_by_subject_api_response.rbi +19 -0
  603. data/lib/authlete/models/operations/client_granted_scopes_get_api_post_request.rb +41 -0
  604. data/lib/authlete/models/operations/client_granted_scopes_get_api_post_request.rbi +17 -0
  605. data/lib/authlete/models/operations/client_granted_scopes_get_api_post_requestbody.rb +32 -0
  606. data/lib/authlete/models/operations/client_granted_scopes_get_api_post_requestbody.rbi +13 -0
  607. data/lib/authlete/models/operations/client_granted_scopes_get_api_post_response.rb +44 -0
  608. data/lib/authlete/models/operations/client_granted_scopes_get_api_post_response.rbi +19 -0
  609. data/lib/authlete/models/operations/client_granted_scopes_get_api_request.rb +7 -13
  610. data/lib/authlete/models/operations/client_granted_scopes_get_api_request.rbi +3 -5
  611. data/lib/authlete/models/operations/client_granted_scopes_get_api_response.rb +0 -1
  612. data/lib/authlete/models/operations/client_granted_scopes_get_api_response.rbi +1 -1
  613. data/lib/authlete/models/operations/client_granted_scopes_get_by_subject_api_request.rb +42 -0
  614. data/lib/authlete/models/operations/client_granted_scopes_get_by_subject_api_request.rbi +17 -0
  615. data/lib/authlete/models/operations/client_granted_scopes_get_by_subject_api_response.rb +44 -0
  616. data/lib/authlete/models/operations/client_granted_scopes_get_by_subject_api_response.rbi +19 -0
  617. data/lib/authlete/models/operations/client_registration_api_request.rb +0 -1
  618. data/lib/authlete/models/operations/client_registration_api_request.rbi +1 -1
  619. data/lib/authlete/models/operations/client_registration_api_requestbody.rb +3 -4
  620. data/lib/authlete/models/operations/client_registration_api_requestbody.rbi +1 -1
  621. data/lib/authlete/models/operations/client_registration_api_response.rb +0 -1
  622. data/lib/authlete/models/operations/client_registration_api_response.rbi +1 -1
  623. data/lib/authlete/models/operations/client_registration_delete_api_request.rb +0 -1
  624. data/lib/authlete/models/operations/client_registration_delete_api_request.rbi +1 -1
  625. data/lib/authlete/models/operations/client_registration_delete_api_requestbody.rb +3 -4
  626. data/lib/authlete/models/operations/client_registration_delete_api_requestbody.rbi +1 -1
  627. data/lib/authlete/models/operations/client_registration_delete_api_response.rb +0 -1
  628. data/lib/authlete/models/operations/client_registration_delete_api_response.rbi +1 -1
  629. data/lib/authlete/models/operations/client_registration_get_api_request.rb +0 -1
  630. data/lib/authlete/models/operations/client_registration_get_api_request.rbi +1 -1
  631. data/lib/authlete/models/operations/client_registration_get_api_requestbody.rb +3 -4
  632. data/lib/authlete/models/operations/client_registration_get_api_requestbody.rbi +1 -1
  633. data/lib/authlete/models/operations/client_registration_get_api_response.rb +0 -1
  634. data/lib/authlete/models/operations/client_registration_get_api_response.rbi +1 -1
  635. data/lib/authlete/models/operations/client_registration_update_api_request.rb +0 -1
  636. data/lib/authlete/models/operations/client_registration_update_api_request.rbi +1 -1
  637. data/lib/authlete/models/operations/client_registration_update_api_requestbody.rb +3 -4
  638. data/lib/authlete/models/operations/client_registration_update_api_requestbody.rbi +1 -1
  639. data/lib/authlete/models/operations/client_registration_update_api_response.rb +0 -1
  640. data/lib/authlete/models/operations/client_registration_update_api_response.rbi +1 -1
  641. data/lib/authlete/models/operations/client_secret_refresh_api_request.rb +1 -2
  642. data/lib/authlete/models/operations/client_secret_refresh_api_request.rbi +1 -1
  643. data/lib/authlete/models/operations/client_secret_refresh_api_response.rb +0 -1
  644. data/lib/authlete/models/operations/client_secret_refresh_api_response.rbi +1 -1
  645. data/lib/authlete/models/operations/client_secret_update_api_request.rb +1 -2
  646. data/lib/authlete/models/operations/client_secret_update_api_request.rbi +1 -1
  647. data/lib/authlete/models/operations/client_secret_update_api_response.rb +0 -1
  648. data/lib/authlete/models/operations/client_secret_update_api_response.rbi +1 -1
  649. data/lib/authlete/models/operations/client_update_api_form_request.rb +0 -1
  650. data/lib/authlete/models/operations/client_update_api_form_request.rbi +1 -1
  651. data/lib/authlete/models/operations/client_update_api_form_response.rb +0 -1
  652. data/lib/authlete/models/operations/client_update_api_form_response.rbi +1 -1
  653. data/lib/authlete/models/operations/client_update_api_request.rb +0 -1
  654. data/lib/authlete/models/operations/client_update_api_request.rbi +1 -1
  655. data/lib/authlete/models/operations/client_update_api_response.rb +0 -1
  656. data/lib/authlete/models/operations/client_update_api_response.rbi +1 -1
  657. data/lib/authlete/models/operations/device_authorization_api_request.rb +0 -1
  658. data/lib/authlete/models/operations/device_authorization_api_request.rbi +1 -1
  659. data/lib/authlete/models/operations/device_authorization_api_response.rb +0 -1
  660. data/lib/authlete/models/operations/device_authorization_api_response.rbi +1 -1
  661. data/lib/authlete/models/operations/device_complete_api_request.rb +0 -1
  662. data/lib/authlete/models/operations/device_complete_api_request.rbi +1 -1
  663. data/lib/authlete/models/operations/device_complete_api_response.rb +0 -1
  664. data/lib/authlete/models/operations/device_complete_api_response.rbi +1 -1
  665. data/lib/authlete/models/operations/device_verification_api_request.rb +0 -1
  666. data/lib/authlete/models/operations/device_verification_api_request.rbi +1 -1
  667. data/lib/authlete/models/operations/device_verification_api_response.rb +0 -1
  668. data/lib/authlete/models/operations/device_verification_api_response.rbi +1 -1
  669. data/lib/authlete/models/operations/federation_configuration_api_request.rb +0 -1
  670. data/lib/authlete/models/operations/federation_configuration_api_request.rbi +1 -1
  671. data/lib/authlete/models/operations/federation_configuration_api_requestbody.rb +0 -1
  672. data/lib/authlete/models/operations/federation_configuration_api_requestbody.rbi +1 -1
  673. data/lib/authlete/models/operations/federation_configuration_api_response.rb +0 -1
  674. data/lib/authlete/models/operations/federation_configuration_api_response.rbi +1 -1
  675. data/lib/authlete/models/operations/federation_registration_api_request.rb +0 -1
  676. data/lib/authlete/models/operations/federation_registration_api_request.rbi +1 -1
  677. data/lib/authlete/models/operations/federation_registration_api_response.rb +0 -1
  678. data/lib/authlete/models/operations/federation_registration_api_response.rbi +1 -1
  679. data/lib/authlete/models/operations/get_api_lifecycle_healthcheck_request.rb +33 -0
  680. data/lib/authlete/models/operations/get_api_lifecycle_healthcheck_request.rbi +13 -0
  681. data/lib/authlete/models/operations/get_api_lifecycle_healthcheck_response.rb +44 -0
  682. data/lib/authlete/models/operations/get_api_lifecycle_healthcheck_response.rbi +19 -0
  683. data/lib/authlete/models/operations/grant_m_api_request.rb +0 -1
  684. data/lib/authlete/models/operations/grant_m_api_request.rbi +1 -1
  685. data/lib/authlete/models/operations/grant_m_api_response.rb +0 -1
  686. data/lib/authlete/models/operations/grant_m_api_response.rbi +1 -1
  687. data/lib/authlete/models/operations/hsk_create_api_request.rb +0 -1
  688. data/lib/authlete/models/operations/hsk_create_api_request.rbi +1 -1
  689. data/lib/authlete/models/operations/hsk_create_api_response.rb +0 -1
  690. data/lib/authlete/models/operations/hsk_create_api_response.rbi +1 -1
  691. data/lib/authlete/models/operations/hsk_delete_api_request.rb +0 -1
  692. data/lib/authlete/models/operations/hsk_delete_api_request.rbi +1 -1
  693. data/lib/authlete/models/operations/hsk_delete_api_response.rb +0 -1
  694. data/lib/authlete/models/operations/hsk_delete_api_response.rbi +1 -1
  695. data/lib/authlete/models/operations/hsk_get_api_request.rb +0 -1
  696. data/lib/authlete/models/operations/hsk_get_api_request.rbi +1 -1
  697. data/lib/authlete/models/operations/hsk_get_api_response.rb +0 -1
  698. data/lib/authlete/models/operations/hsk_get_api_response.rbi +1 -1
  699. data/lib/authlete/models/operations/hsk_get_list_api_request.rb +0 -1
  700. data/lib/authlete/models/operations/hsk_get_list_api_request.rbi +1 -1
  701. data/lib/authlete/models/operations/hsk_get_list_api_response.rb +0 -1
  702. data/lib/authlete/models/operations/hsk_get_list_api_response.rbi +1 -1
  703. data/lib/authlete/models/operations/idtoken_reissue_api_request.rb +0 -1
  704. data/lib/authlete/models/operations/idtoken_reissue_api_request.rbi +1 -1
  705. data/lib/authlete/models/operations/idtoken_reissue_api_response.rb +0 -1
  706. data/lib/authlete/models/operations/idtoken_reissue_api_response.rbi +1 -1
  707. data/lib/authlete/models/operations/jose_verify_api_request.rb +0 -1
  708. data/lib/authlete/models/operations/jose_verify_api_request.rbi +1 -1
  709. data/lib/authlete/models/operations/jose_verify_api_response.rb +0 -1
  710. data/lib/authlete/models/operations/jose_verify_api_response.rbi +1 -1
  711. data/lib/authlete/models/operations/native_sso_api_request.rb +0 -1
  712. data/lib/authlete/models/operations/native_sso_api_request.rbi +1 -1
  713. data/lib/authlete/models/operations/native_sso_api_response.rb +0 -1
  714. data/lib/authlete/models/operations/native_sso_api_response.rbi +1 -1
  715. data/lib/authlete/models/operations/native_sso_logout_api_request.rb +0 -1
  716. data/lib/authlete/models/operations/native_sso_logout_api_request.rbi +1 -1
  717. data/lib/authlete/models/operations/native_sso_logout_api_response.rb +0 -1
  718. data/lib/authlete/models/operations/native_sso_logout_api_response.rbi +1 -1
  719. data/lib/authlete/models/operations/pushed_auth_req_api_request.rb +0 -1
  720. data/lib/authlete/models/operations/pushed_auth_req_api_request.rbi +1 -1
  721. data/lib/authlete/models/operations/pushed_auth_req_api_response.rb +0 -1
  722. data/lib/authlete/models/operations/pushed_auth_req_api_response.rbi +1 -1
  723. data/lib/authlete/models/operations/service_configuration_api_request.rb +0 -1
  724. data/lib/authlete/models/operations/service_configuration_api_request.rbi +1 -1
  725. data/lib/authlete/models/operations/service_configuration_api_response.rb +0 -1
  726. data/lib/authlete/models/operations/service_configuration_api_response.rbi +1 -1
  727. data/lib/authlete/models/operations/service_create_api_response.rb +1 -2
  728. data/lib/authlete/models/operations/service_create_api_response.rbi +1 -1
  729. data/lib/authlete/models/operations/service_delete_api_request.rb +0 -1
  730. data/lib/authlete/models/operations/service_delete_api_request.rbi +1 -1
  731. data/lib/authlete/models/operations/service_delete_api_response.rb +0 -1
  732. data/lib/authlete/models/operations/service_delete_api_response.rbi +1 -1
  733. data/lib/authlete/models/operations/service_get_api_request.rb +0 -1
  734. data/lib/authlete/models/operations/service_get_api_request.rbi +1 -1
  735. data/lib/authlete/models/operations/service_get_api_response.rb +0 -1
  736. data/lib/authlete/models/operations/service_get_api_response.rbi +1 -1
  737. data/lib/authlete/models/operations/service_get_list_api_request.rb +0 -1
  738. data/lib/authlete/models/operations/service_get_list_api_request.rbi +1 -1
  739. data/lib/authlete/models/operations/service_get_list_api_response.rb +0 -1
  740. data/lib/authlete/models/operations/service_get_list_api_response.rbi +1 -1
  741. data/lib/authlete/models/operations/service_jwks_get_api_request.rb +0 -1
  742. data/lib/authlete/models/operations/service_jwks_get_api_request.rbi +1 -1
  743. data/lib/authlete/models/operations/service_jwks_get_api_response.rb +0 -1
  744. data/lib/authlete/models/operations/service_jwks_get_api_response.rbi +1 -1
  745. data/lib/authlete/models/operations/service_update_api_request.rb +0 -1
  746. data/lib/authlete/models/operations/service_update_api_request.rbi +1 -1
  747. data/lib/authlete/models/operations/service_update_api_response.rb +0 -1
  748. data/lib/authlete/models/operations/service_update_api_response.rbi +1 -1
  749. data/lib/authlete/models/operations/updateauthorizationticket_request.rb +0 -1
  750. data/lib/authlete/models/operations/updateauthorizationticket_request.rbi +1 -1
  751. data/lib/authlete/models/operations/updateauthorizationticket_response.rb +0 -1
  752. data/lib/authlete/models/operations/updateauthorizationticket_response.rbi +1 -1
  753. data/lib/authlete/models/operations/vci_batch_issue_api_request.rb +0 -1
  754. data/lib/authlete/models/operations/vci_batch_issue_api_request.rbi +1 -1
  755. data/lib/authlete/models/operations/vci_batch_issue_api_response.rb +0 -1
  756. data/lib/authlete/models/operations/vci_batch_issue_api_response.rbi +1 -1
  757. data/lib/authlete/models/operations/vci_batch_parse_api_request.rb +0 -1
  758. data/lib/authlete/models/operations/vci_batch_parse_api_request.rbi +1 -1
  759. data/lib/authlete/models/operations/vci_batch_parse_api_response.rb +0 -1
  760. data/lib/authlete/models/operations/vci_batch_parse_api_response.rbi +1 -1
  761. data/lib/authlete/models/operations/vci_deferred_issue_api_request.rb +0 -1
  762. data/lib/authlete/models/operations/vci_deferred_issue_api_request.rbi +1 -1
  763. data/lib/authlete/models/operations/vci_deferred_issue_api_response.rb +0 -1
  764. data/lib/authlete/models/operations/vci_deferred_issue_api_response.rbi +1 -1
  765. data/lib/authlete/models/operations/vci_deferred_parse_api_request.rb +0 -1
  766. data/lib/authlete/models/operations/vci_deferred_parse_api_request.rbi +1 -1
  767. data/lib/authlete/models/operations/vci_deferred_parse_api_response.rb +0 -1
  768. data/lib/authlete/models/operations/vci_deferred_parse_api_response.rbi +1 -1
  769. data/lib/authlete/models/operations/vci_jwks_api_request.rb +0 -1
  770. data/lib/authlete/models/operations/vci_jwks_api_request.rbi +1 -1
  771. data/lib/authlete/models/operations/vci_jwks_api_response.rb +0 -1
  772. data/lib/authlete/models/operations/vci_jwks_api_response.rbi +1 -1
  773. data/lib/authlete/models/operations/vci_jwtissuer_api_request.rb +0 -1
  774. data/lib/authlete/models/operations/vci_jwtissuer_api_request.rbi +1 -1
  775. data/lib/authlete/models/operations/vci_jwtissuer_api_response.rb +0 -1
  776. data/lib/authlete/models/operations/vci_jwtissuer_api_response.rbi +1 -1
  777. data/lib/authlete/models/operations/vci_metadata_api_request.rb +0 -1
  778. data/lib/authlete/models/operations/vci_metadata_api_request.rbi +1 -1
  779. data/lib/authlete/models/operations/vci_metadata_api_response.rb +0 -1
  780. data/lib/authlete/models/operations/vci_metadata_api_response.rbi +1 -1
  781. data/lib/authlete/models/operations/vci_offer_create_api_request.rb +0 -1
  782. data/lib/authlete/models/operations/vci_offer_create_api_request.rbi +1 -1
  783. data/lib/authlete/models/operations/vci_offer_create_api_response.rb +0 -1
  784. data/lib/authlete/models/operations/vci_offer_create_api_response.rbi +1 -1
  785. data/lib/authlete/models/operations/vci_offer_info_api_request.rb +0 -1
  786. data/lib/authlete/models/operations/vci_offer_info_api_request.rbi +1 -1
  787. data/lib/authlete/models/operations/vci_offer_info_api_response.rb +0 -1
  788. data/lib/authlete/models/operations/vci_offer_info_api_response.rbi +1 -1
  789. data/lib/authlete/models/operations/vci_single_issue_api_request.rb +0 -1
  790. data/lib/authlete/models/operations/vci_single_issue_api_request.rbi +1 -1
  791. data/lib/authlete/models/operations/vci_single_issue_api_response.rb +0 -1
  792. data/lib/authlete/models/operations/vci_single_issue_api_response.rbi +1 -1
  793. data/lib/authlete/models/operations/vci_single_parse_api_request.rb +0 -1
  794. data/lib/authlete/models/operations/vci_single_parse_api_request.rbi +1 -1
  795. data/lib/authlete/models/operations/vci_single_parse_api_response.rb +0 -1
  796. data/lib/authlete/models/operations/vci_single_parse_api_response.rbi +1 -1
  797. data/lib/authlete/models/operations.rb +20 -0
  798. data/lib/authlete/native_sso.rb +17 -69
  799. data/lib/authlete/pushed_authorization.rb +10 -5
  800. data/lib/authlete/revocation.rb +10 -98
  801. data/lib/authlete/sdkconfiguration.rb +3 -3
  802. data/lib/authlete/services.rb +48 -28
  803. data/lib/authlete/token_management.rb +44 -24
  804. data/lib/authlete/tokens.rb +24 -454
  805. data/lib/authlete/userinfo.rb +17 -224
  806. data/lib/authlete/utils/request_bodies.rb +8 -3
  807. data/lib/authlete/utils/security.rb +10 -0
  808. data/lib/authlete/utils/url.rb +11 -5
  809. data/lib/authlete/utils/utils.rb +45 -3
  810. data/lib/authlete/verifiable_credentials.rb +69 -34
  811. data/lib/authlete_ruby_sdk.rb +1 -0
  812. data/lib/crystalline/enum.rbi +17 -0
  813. data/lib/crystalline/metadata_fields.rb +85 -22
  814. data/lib/crystalline/module.rb +99 -13
  815. data/lib/crystalline/types.rb +90 -3
  816. metadata +66 -6
  817. data/lib/authlete/models/components/clientsource.rbi +0 -11
@@ -39,8 +39,10 @@ module Authlete
39
39
  end
40
40
 
41
41
 
42
- sig { params(authorization_ticket_info_request: Models::Components::AuthorizationTicketInfoRequest, service_id: ::String, timeout_ms: T.nilable(Integer)).returns(Models::Operations::AuthorizationTicketInfoPostApiResponse) }
43
- def ticket_info(authorization_ticket_info_request:, service_id:, timeout_ms: nil)
42
+
43
+
44
+ sig { params(authorization_ticket_info_request: Models::Components::AuthorizationTicketInfoRequest, service_id: ::String, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::AuthorizationTicketInfoPostApiResponse) }
45
+ def ticket_info(authorization_ticket_info_request:, service_id:, timeout_ms: nil, http_headers: nil)
44
46
  # ticket_info - Get Ticket Information
45
47
  request = Models::Operations::AuthorizationTicketInfoPostApiRequest.new(
46
48
  service_id: service_id,
@@ -60,7 +62,7 @@ module Authlete
60
62
  headers['content-type'] = req_content_type
61
63
  raise StandardError, 'request body is required' if data.nil? && form.nil?
62
64
 
63
- if form
65
+ if form && !form.empty?
64
66
  body = Utils.encode_form(form)
65
67
  elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
66
68
  body = URI.encode_www_form(T.cast(data, T::Hash[Symbol, Object]))
@@ -96,6 +98,9 @@ module Authlete
96
98
  req.headers.merge!(headers)
97
99
  req.options.timeout = timeout unless timeout.nil?
98
100
  Utils.configure_request_security(req, security)
101
+ http_headers&.each do |key, value|
102
+ req.headers[key.to_s] = value
103
+ end
99
104
 
100
105
  @sdk_configuration.hooks.before_request(
101
106
  hook_ctx: SDKHooks::BeforeRequestHookContext.new(
@@ -193,8 +198,8 @@ module Authlete
193
198
  end
194
199
 
195
200
 
196
- sig { params(authorization_ticket_update_request: Models::Components::AuthorizationTicketUpdateRequest, service_id: ::String, timeout_ms: T.nilable(Integer)).returns(Models::Operations::UpdateAuthorizationTicketResponse) }
197
- def update_ticket(authorization_ticket_update_request:, service_id:, timeout_ms: nil)
201
+ sig { params(authorization_ticket_update_request: Models::Components::AuthorizationTicketUpdateRequest, service_id: ::String, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::UpdateAuthorizationTicketResponse) }
202
+ def update_ticket(authorization_ticket_update_request:, service_id:, timeout_ms: nil, http_headers: nil)
198
203
  # update_ticket - Update Ticket Information
199
204
  request = Models::Operations::UpdateAuthorizationTicketRequest.new(
200
205
  service_id: service_id,
@@ -214,7 +219,7 @@ module Authlete
214
219
  headers['content-type'] = req_content_type
215
220
  raise StandardError, 'request body is required' if data.nil? && form.nil?
216
221
 
217
- if form
222
+ if form && !form.empty?
218
223
  body = Utils.encode_form(form)
219
224
  elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
220
225
  body = URI.encode_www_form(T.cast(data, T::Hash[Symbol, Object]))
@@ -250,6 +255,9 @@ module Authlete
250
255
  req.headers.merge!(headers)
251
256
  req.options.timeout = timeout unless timeout.nil?
252
257
  Utils.configure_request_security(req, security)
258
+ http_headers&.each do |key, value|
259
+ req.headers[key.to_s] = value
260
+ end
253
261
 
254
262
  @sdk_configuration.hooks.before_request(
255
263
  hook_ctx: SDKHooks::BeforeRequestHookContext.new(
@@ -345,5 +353,5 @@ module Authlete
345
353
 
346
354
  end
347
355
  end
348
- end
356
+ end
349
357
  end
data/lib/authlete/ciba.rb CHANGED
@@ -39,244 +39,15 @@ module Authlete
39
39
  end
40
40
 
41
41
 
42
- sig { params(backchannel_authentication_request: Models::Components::BackchannelAuthenticationRequest, service_id: ::String, timeout_ms: T.nilable(Integer)).returns(Models::Operations::BackchannelAuthenticationApiResponse) }
43
- def process_authentication(backchannel_authentication_request:, service_id:, timeout_ms: nil)
42
+
43
+
44
+ sig { params(backchannel_authentication_request: Models::Components::BackchannelAuthenticationRequest, service_id: ::String, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::BackchannelAuthenticationApiResponse) }
45
+ def process_authentication(backchannel_authentication_request:, service_id:, timeout_ms: nil, http_headers: nil)
44
46
  # process_authentication - Process Backchannel Authentication Request
45
- # This API parses request parameters of a [backchannel authentication request](https://openid.net/specs/openid-client-initiated-backchannel-authentication-core-1\_0.html#auth\_request)
47
+ # This API parses request parameters of a [backchannel authentication request](https://openid.net/specs/openid-client-initiated-backchannel-authentication-core-1_0.html#auth_request)
46
48
  # and returns necessary data for the authorization server implementation to process the backchannel
47
49
  # authentication request further.
48
- # ### Description
49
- # This API is supposed to be called from within the implementation of the [backchannel authentication
50
- # endpoint](https://openid.net/specs/openid-client-initiated-backchannel-authentication-core-1\_0.html#auth\_backchannel\_endpoint)
51
- # of the service. The endpoint implementation must extract the request parameters from the
52
- # backchannel authentication request from the client application and pass them as the value of parameters
53
- # request parameter for Authlete's `/backchannel/authentication` API.
54
- # The value of parameters is the entire entity body (which is formatted in `application/x-www-form-urlencoded`)
55
- # of the request from the client application.
56
- # The following code snippet is an example in JAX-RS showing how to extract request parameters from
57
- # the backchannel authentication request.
58
- # ```java
59
- # @POST
60
- # @Consumes(MediaType.APPLICATION\_FORM\_URLENCODED)
61
- # public Response post(String parameters)
62
- # {
63
- # // 'parameters' is the entity body of the backchannel authentication request.
64
- # ......
65
- # }
66
- # ```
67
- # The endpoint implementation does not have to parse the request parameters from the client application
68
- # because Authlete's `/backchannel/authentication` API does it.
69
- # The response from `/backchannel/authentication` API has various parameters. Among them, it is `action`
70
- # parameter that the authorization server implementation should check first because it denotes the
71
- # next action that the authorization server implementation should take. According to the value of
72
- # `action`, the service implementation must take the steps described below.
73
- # **INTERNAL\_SERVER\_ERROR**
74
- # When the value of `action` is `INTERNAL\_SERVER\_ERROR`, it means that the request from the authorization
75
- # server implementation was wrong or that an error occurred in Authlete.
76
- # In either case, from the viewpoint of the client application, it is an error on the server side.
77
- # Therefore, the service implementation should generate a response to the client application with
78
- # HTTP status of "500 Internal Server Error" and `application/json`.
79
- # The value of `responseContent` is a JSON string which describes the error, so it can be used
80
- # as the entity body of the response.
81
- # The following illustrates the response which the service implementation should generate and return
82
- # to the client application.
83
- # ```
84
- # HTTP/1.1 500 Internal Server Error
85
- # Content-Type: application/json
86
- # Cache-Control: no-store
87
- # Pragma: no-cache
88
- # {responseContent}
89
- # ```
90
- # **BAD\_REQUEST**
91
- # When the value of `action` is `BAD\_REQUEST`, it means that the request from the client application
92
- # is invalid.
93
- # The authorization server implementation should generate a response to the client application with
94
- # "400 Bad Request" and `application/json`.
95
- # The value of `responseContent` is a JSON string which describes the error, so it can be used as
96
- # the entity body of the response.
97
- # The following illustrates the response which the service implementation should generate and return
98
- # to the client application.
99
- # ```
100
- # HTTP/1.1 400 Bad Request
101
- # Content-Type: application/json
102
- # Cache-Control: no-store
103
- # Pragma: no-cache
104
- # {responseContent}
105
- # ```
106
- # **UNAUTHORIZED**
107
- # When the value of `action` is `UNAUTHORIZED`, it means that client authentication of the backchannel
108
- # authentication request failed. Note that client authentication is always required at the backchannel
109
- # authentication endpoint. This implies that public clients are not allowed to use the backchannel
110
- # authentication endpoint.
111
- # The authorization server implementation should generate a response to the client application with
112
- # "401 Unauthorized" and `application/json`.
113
- # The value of `responseContent` is a JSON string which describes the error, so it can be used as
114
- # the entity body of the response.
115
- # The following illustrates the response which the service implementation must generate and return
116
- # to the client application.
117
- # ```
118
- # HTTP/1.1 401 Unauthorized
119
- # WWW-Authenticate: (challenge)
120
- # Content-Type: application/json
121
- # Cache-Control: no-store
122
- # Pragma: no-cache
123
- # {responseContent}
124
- # ```
125
- # **USER\_IDENTIFICATION**
126
- # When the value of `action` is `USER\_IDENTIFICATION`, it means that the backchannel authentication
127
- # request from the client application is valid. The authorization server implementation has to follow
128
- # the steps below.
129
- # [1] END-USER IDENTIFICATION
130
- # The first step is to determine the subject (= unique identifier) of the end-user from whom the
131
- # client application wants to get authorization.
132
- # According to the CIBA specification, a backchannel authentication request contains one (and only
133
- # one) of the `login\_hint\_token`, `id\_token\_hint` and `login\_hint` request parameters as a hint
134
- # by which the authorization server identifies the subject of an end-user.
135
- # The authorization server implementation can know which hint is included in the backchannel authentication
136
- # request by the `hintType` parameter. For example, when the value of the parameter `LOGIN\_HINT`,
137
- # it means that the backchannel authentication request contains the `login\_hint` request parameter
138
- # as a hint.
139
- # The value of the `hint` parameter is the value of the hint. For example, when the value of the
140
- # `hintType` parameter is `LOGIN\_HINT`, The value of the `hint` parameter is the value of the `login\_hint`
141
- # request parameter.
142
- # It is up to the authorization server implementation how to determine the subject of the end-user
143
- # from the hint. Only when the `id\_token\_hint` request parameter is used, authorization server
144
- # implementation can use the sub response parameter, which holds the value of the sub claim in the
145
- # `id\_token\_hint` request parameter.
146
- # [2] END-USER IDENTIFICATION ERROR
147
- # There are some cases where the authorization server implementation encounters an error during
148
- # the user identification process. In any error case, the service implementation has to return an
149
- # HTTP response with the error response parameter to the client application. The following is an
150
- # example of such error responses.
151
- # ```
152
- # HTTP/1.1 400 Bad Request
153
- # Content-Type: application/json
154
- # Cache-Control: no-store
155
- # Pragma: no-cache
156
- # { "error":"unknown\_user\_id" }
157
- # ```
158
- # Authlete provides `/backchannel/authentication/fail` API that builds the response body (JSON)
159
- # of an error response. However, because it is easy to build an error response manually, you may
160
- # choose not to call the API. One good thing in using the API is that the API call can trigger
161
- # deletion of the ticket which has been issued from Authlete's `/backchannel/authentication` API.
162
- # If you don't call `/backchannel/authentication/fail` API, the ticket will continue to exist in
163
- # the database until it is cleaned up by the batch program after the ticket expires.
164
- # Possible error cases that the authorization server implementation itself has to handle are as
165
- # follows. Other error cases have already been covered by `/backchannel/authentication` API.
166
- # - `expired\_login\_hint\_token`
167
- # The authorization server implementation detected that the hint presented by the `login\_hint\_token`
168
- # request parameter has expired.
169
- # Note that the format of `login\_hint\_token` is not described in the CIBA Core spec at all and
170
- # so there is no consensus on how to detect expiration of `login\_hint\_token`. Interpretation
171
- # of `login\_hint\_token` is left to each authorization server implementation.
172
- # - `unknown\_user\_id`
173
- # The authorization server implementation could not determine the subject of the end-user by
174
- # the presented hint.
175
- # - `unauthorized\_client`
176
- # The authorization server implementation has custom rules to reject backchannel authentication
177
- # requests from some particular clients and found that the client which has made the backchannel
178
- # authentication request is one of the particular clients.
179
- # Note that `/backchannel/authentication` API does not return `action=USER\_IDENTIFICATION` in
180
- # cases where the client does not exist or client authentication has failed. Therefore, the
181
- # authorization server implementation will never have to use the error code `unauthorized\_client`
182
- # unless the server has intentionally implemented custom rules to reject backchannel authentication
183
- # requests based on clients.
184
- # - `missing\_user\_code`
185
- # The authorization server implementation has custom rules to require that a backchannel authentication
186
- # request include a user code for some particular users and found that the user identified by
187
- # the hint is one of the particular users.
188
- # Note that `/backchannel/authentication` API does not return `action=USER\_IDENTIFICATION` when
189
- # both the `backchannel\_user\_code\_parameter\_supported` metadata of the server and the
190
- # `backchannel\_user\_code\_parameter` metadata of the client are true and the backchannel authentication
191
- # request does not include the user\_code request parameter. In this case, `/backchannel/authentication`
192
- # API returns action=BAD\_REQUEST with JSON containing `"error":"missing\_user\_code"`. Therefore,
193
- # the authorization server implementation will never have to use the error code `missing\_user\_code`
194
- # unless the server has intentionally implemented custom rules to require a user code based
195
- # on users even in the case where the `backchannel\_user\_code\_parameter` metadata of the client
196
- # which has made the backchannel authentication request is `false`.
197
- # - `invalid\_user\_code`
198
- # The authorization server implementation detected that the presented user code is invalid.
199
- # Note that the format of user\_code is not described in the CIBA Core spec at all and so there
200
- # is no consensus on how to judge whether a user code is valid or not. It is up to each authorization
201
- # server implementation how to handle user codes.
202
- # - `invalid\_binding\_message`
203
- # The authorization server implementation detected that the presented binding message is invalid.
204
- # Note that the format of binding\_message is not described in the CIBA Core spec at all and
205
- # so there is no consensus on how to judge whether a binding message is valid or not. It is
206
- # up to each authorization server implementation how to handle binding messages.
207
- # - `invalid\_target`
208
- # The authorization server implementation rejects the requested target resources.
209
- # The error code invalid\_target is from "Resource Indicators for OAuth 2.0". The specification
210
- # defines the resource request parameter. By using the parameter, client applications can request
211
- # target resources that should be bound to the access token being issued. If the authorization
212
- # server wants to reject the request, call `/backchannel/authentication/fail` API with `INVALID\_TARGET`.
213
- # - `access\_denined`
214
- # The authorization server implementation has custom rules to reject backchannel authentication
215
- # requests without asking the end-user and respond to the client as if the end-user had rejected
216
- # the request in some particular cases and found that the backchannel authentication request
217
- # is one of the particular cases.
218
- # The authorization server implementation will never have to use the error code `access\_denied`
219
- # at this timing unless the server has intentionally implemented custom rules to reject backchannel
220
- # authentication requests without asking the end-user and respond to the client as if the end-user
221
- # had rejected the request.
222
- # [3] AUTH\_REQ\_ID ISSUE
223
- # If the authorization server implementation has successfully determined the subject of the end-user,
224
- # the next action is to return an HTTP response to the client application which contains `auth\_req\_id`.
225
- # Authlete provides `/backchannel/authentication/issue` API which generates a JSON containing `auth\_req\_id`,
226
- # so, your next action is (1) call the API, (2) receive the response from the API, (3) build a response
227
- # to the client application using the content of the API response, and (4) return the response to
228
- # the client application. See the description of `/backchannel/authentication/issue` API for details.
229
- # [4] END-USER AUTHENTICATION AND AUTHORIZATION
230
- # After sending a JSON containing `auth\_req\_id` back to the client application, the service implementation
231
- # starts to communicate with an authentication device of the end-user. It is assumed that end-user
232
- # authentication is performed on the authentication device and the end-user confirms the content of
233
- # the backchannel authentication request and grants authorization to the client application if everything
234
- # is okay. The authorization server implementation must be able to receive the result of the end-user
235
- # authentication and authorization from the authentication device.
236
- # How to communicate with an authentication device and achieve end-user authentication and authorization
237
- # is up to each authorization server implementation, but the following request parameters of the backchannel
238
- # authentication request should be taken into consideration in any implementation.
239
- # - `acr\_values`
240
- # A backchannel authentication request may contain an array of ACRs (Authentication Context Class
241
- # References) in preference order. If multiple authentication devices are registered for the end-user,
242
- # the authorization server implementation should take the ACRs into consideration when selecting
243
- # the best authentication device.
244
- # - `scope`
245
- # A backchannel authentication request always contains a list of scopes. At least, `openid` is
246
- # included in the list (otherwise `/backchannel/authentication` API returns `action=BAD\_REQUEST`).
247
- # It would be better to show the requested scopes to the end-user on the authentication device
248
- # or somewhere appropriate.
249
- # If the scope request parameter contains `address`, `email`, `phone` and/or `profile`, they are
250
- # interpreted as defined in "5.4. Requesting Claims using Scope Values of OpenID Connect Core 1.0".
251
- # That is, they are expanded into a list of claim names. The claimNames parameter returns the expanded
252
- # result.
253
- # - `binding\_message`
254
- # A backchannel authentication request may contain a binding message. It is a human readable identifier
255
- # or message intended to be displayed on both the consumption device (client application) and the
256
- # authentication device.
257
- # - `user\_code`
258
- # A backchannel authentication request may contain a user code. It is a secret code, such as password
259
- # or pin, known only to the end-user but verifiable by the authorization server. The user code should
260
- # be used to authorize sending a request to the authentication device.
261
- # [5] END-USER AUTHENTICATION AND AUTHORIZATION COMPLETION
262
- # After receiving the result of end-user authentication and authorization, the authorization server
263
- # implementation must call Authlete's `/backchannel/authentication/complete` API to tell Authlete
264
- # the result and pass necessary data so that Authlete can generate an ID token, an access token and
265
- # optionally a refresh token. See the description of the API for details.
266
- # [6] CLIENT NOTIFICATION
267
- # When the backchannel token delivery mode is either `ping` or `push`, the authorization server implementation
268
- # must send a notification to the pre-registered notification endpoint of the client after the end-user
269
- # authentication and authorization. In this case, the `action` parameter in a response from `/backchannel/authentication/complete`
270
- # API is `NOTIFICATION`. See the description of `/backchannel/authentication/complete` API for details.
271
- # [7] TOKEN REQUEST
272
- # When the backchannel token delivery mode is either `ping` or `poll`, the client application will make
273
- # a token request to the token endpoint to get an ID token, an access token and optionally a refresh
274
- # token.
275
- # A token request that corresponds to a backchannel authentication request uses `urn:openid:params:grant-type:ciba`
276
- # as the value of the `grant\_type` request parameter. Authlete's `/auth/token` API recognizes the
277
- # grant type automatically and behaves properly, so the existing token endpoint implementation does
278
- # not have to be changed to support CIBA.
279
- #
50
+ #
280
51
  request = Models::Operations::BackchannelAuthenticationApiRequest.new(
281
52
  service_id: service_id,
282
53
  backchannel_authentication_request: backchannel_authentication_request
@@ -295,7 +66,7 @@ module Authlete
295
66
  headers['content-type'] = req_content_type
296
67
  raise StandardError, 'request body is required' if data.nil? && form.nil?
297
68
 
298
- if form
69
+ if form && !form.empty?
299
70
  body = Utils.encode_form(form)
300
71
  elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
301
72
  body = URI.encode_www_form(T.cast(data, T::Hash[Symbol, Object]))
@@ -331,6 +102,9 @@ module Authlete
331
102
  req.headers.merge!(headers)
332
103
  req.options.timeout = timeout unless timeout.nil?
333
104
  Utils.configure_request_security(req, security)
105
+ http_headers&.each do |key, value|
106
+ req.headers[key.to_s] = value
107
+ end
334
108
 
335
109
  @sdk_configuration.hooks.before_request(
336
110
  hook_ctx: SDKHooks::BeforeRequestHookContext.new(
@@ -428,74 +202,12 @@ module Authlete
428
202
  end
429
203
 
430
204
 
431
- sig { params(backchannel_authentication_issue_request: Models::Components::BackchannelAuthenticationIssueRequest, service_id: ::String, timeout_ms: T.nilable(Integer)).returns(Models::Operations::BackchannelAuthenticationIssueApiResponse) }
432
- def issue_response(backchannel_authentication_issue_request:, service_id:, timeout_ms: nil)
205
+ sig { params(backchannel_authentication_issue_request: Models::Components::BackchannelAuthenticationIssueRequest, service_id: ::String, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::BackchannelAuthenticationIssueApiResponse) }
206
+ def issue_response(backchannel_authentication_issue_request:, service_id:, timeout_ms: nil, http_headers: nil)
433
207
  # issue_response - Issue Backchannel Authentication Response
434
- # This API prepares JSON that contains an `auth\_req\_id`. The JSON should be used as the response body
435
- # of the response which is returned to the client from the [backchannel authentication endpoint](https://openid.net/specs/openid-client-initiated-backchannel-authentication-core-1\_0.html#auth\_backchannel\_endpoint)
436
- # ### Description
437
- # This API is supposed to be called from within the implementation of the backchannel authentication
438
- # endpoint of the service in order to generate a successful response to the client application.
439
- # The description of the `/backchannel/authentication` API describes the timing when this API should
440
- # be called and the meaning of request parameters. See [AUTH\_REQ\_ID ISSUE] in `USER\_IDENTIFICATION`.
441
- # The response from `/backchannel/authentication/issue` API has some parameters. Among them, it is
442
- # `action` parameter that the authorization server implementation should check first because it denotes
443
- # the next `action` that the authorization server implementation should take. According to the value
444
- # of `action`, the authorization server implementation must take the steps described below.
445
- # ```java
446
- # @POST
447
- # @Consumes(MediaType.APPLICATION\_FORM\_URLENCODED)
448
- # public Response post(String parameters)
449
- # {
450
- # // 'parameters' is the entity body of the backchannel authentication request.
451
- # ......
452
- # }
453
- # ```
454
- # The endpoint implementation does not have to parse the request parameters from the client application
455
- # because Authlete's `/backchannel/authentication` API does it.
456
- # The response from `/backchannel/authentication` API has various parameters. Among them, it is `action`
457
- # parameter that the authorization server implementation should check first because it denotes the
458
- # next action that the authorization server implementation should take. According to the value of
459
- # `action`, the service implementation must take the steps described below.
460
- # **INTERNAL\_SERVER\_ERROR**
461
- # When the value of `action` is `INTERNAL\_SERVER\_ERROR`, it means that the request from the authorization
462
- # server implementation was wrong or that an error occurred in Authlete.
463
- # In either case, from the viewpoint of the client application, it is an error on the server side.
464
- # Therefore, the service implementation should generate a response to the client application with
465
- # HTTP status of "500 Internal Server Error" and `application/json`.
466
- # The value of `responseContent` is a JSON string which describes the error, so it can be used as
467
- # the entity body of the response.
468
- # The following illustrates the response which the service implementation should generate and return
469
- # to the client application.
470
- # ```
471
- # HTTP/1.1 500 Internal Server Error
472
- # Content-Type: application/json
473
- # Cache-Control: no-store
474
- # Pragma: no-cache
475
- # {responseContent}
476
- # ```
477
- # **INVALID\_TICKET**
478
- # When the value of `action` is `INVALID\_TICKET`, it means that the ticket included in the API call
479
- # was invalid. For example, it does not exist or has expired.
480
- # From a viewpoint of the client application, this is an error on the server side. Therefore, the
481
- # authorization server implementation should generate a response to the client application with
482
- # "500 Internal Server Error" and `application/json`.
483
- # You can build an error response in the same way as shown in the description for the case of `INTERNAL\_SERVER\_ERROR`.
484
- # **OK**
485
- # When the value of `action` is `OK`, it means that Authlete has succeeded in preparing JSON that
486
- # contains an `auth\_req\_id`. The JSON should be used as the response body of the response that is
487
- # returned to the client from the backchannel authentication endpoint. `responseContent` contains
488
- # the JSON.
489
- # The following illustrates the response which the authorization server implementation should generate
490
- # and return to the client application.
491
- # ```
492
- # HTTP/1.1 200 OK
493
- # Content-Type: text/html;charset=UTF-8
494
- # Cache-Control: no-store
495
- # Pragma: no-cache
496
- # {responseContent}
497
- # ```
498
- #
208
+ # This API prepares JSON that contains an `auth_req_id`. The JSON should be used as the response body
209
+ # of the response which is returned to the client from the [backchannel authentication endpoint](https://openid.net/specs/openid-client-initiated-backchannel-authentication-core-1_0.html#auth_backchannel_endpoint)
210
+ #
499
211
  request = Models::Operations::BackchannelAuthenticationIssueApiRequest.new(
500
212
  service_id: service_id,
501
213
  backchannel_authentication_issue_request: backchannel_authentication_issue_request
@@ -514,7 +226,7 @@ module Authlete
514
226
  headers['content-type'] = req_content_type
515
227
  raise StandardError, 'request body is required' if data.nil? && form.nil?
516
228
 
517
- if form
229
+ if form && !form.empty?
518
230
  body = Utils.encode_form(form)
519
231
  elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
520
232
  body = URI.encode_www_form(T.cast(data, T::Hash[Symbol, Object]))
@@ -550,6 +262,9 @@ module Authlete
550
262
  req.headers.merge!(headers)
551
263
  req.options.timeout = timeout unless timeout.nil?
552
264
  Utils.configure_request_security(req, security)
265
+ http_headers&.each do |key, value|
266
+ req.headers[key.to_s] = value
267
+ end
553
268
 
554
269
  @sdk_configuration.hooks.before_request(
555
270
  hook_ctx: SDKHooks::BeforeRequestHookContext.new(
@@ -647,33 +362,12 @@ module Authlete
647
362
  end
648
363
 
649
364
 
650
- sig { params(backchannel_authentication_fail_request: Models::Components::BackchannelAuthenticationFailRequest, service_id: ::String, timeout_ms: T.nilable(Integer)).returns(Models::Operations::BackchannelAuthenticationFailApiResponse) }
651
- def fail_request(backchannel_authentication_fail_request:, service_id:, timeout_ms: nil)
365
+ sig { params(backchannel_authentication_fail_request: Models::Components::BackchannelAuthenticationFailRequest, service_id: ::String, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::BackchannelAuthenticationFailApiResponse) }
366
+ def fail_request(backchannel_authentication_fail_request:, service_id:, timeout_ms: nil, http_headers: nil)
652
367
  # fail_request - Fail Backchannel Authentication Request
653
368
  # The API prepares JSON that contains an error. The JSON should be used as the response body of the
654
- # response which is returned to the client from the [backchannel authentication endpoint](https://openid.net/specs/openid-client-initiated-backchannel-authentication-core-1\_0.html#auth\_backchannel\_endpoint).
655
- # ### Description
656
- # This API is supposed to be called from within the implementation of the [backchannel authentication
657
- # endpoint](https://openid.net/specs/openid-client-initiated-backchannel-authentication-core-1\_0.html#auth\_backchannel\_endpoint)
658
- # of the service in order to generate an error response to the client application.
659
- # The response from `/backchannel/authentication/fails` API has some parameters. Among them, it is
660
- # `action` parameter that the authorization server implementation should check first because it denotes
661
- # the next action that the authorization server implementation should take. According to the value
662
- # of `action`, the authorization server implementation must take the steps described below.
663
- # **INTERNAL\_SERVER\_ERROR**
664
- # When the value of `action` is `INTERNAL\_SERVER\_ERROR`, it means that (1) the `reason` request parameter
665
- # of the API call was `SERVER\_ERROR`, (2) an error occurred on Authlete side, or (3) the request parameters
666
- # of the API call were wrong. In this case, the authorization server implementation should return
667
- # a "500 Internal Server Error" response to the client application. However, in most cases, commercial
668
- # implementations prefer to use other HTTP status code than 5xx.
669
- # **BAD\_REQUEST**
670
- # When the value of `action` is `BAD\_REQUEST`, the authorization server implementation should return a
671
- # "400 Bad Request" response to the client application.
672
- # **FORBIDDEN**
673
- # When the value of `action` is `FORBIDDEN`, it means that the `reason` request parameter of the API call
674
- # was `ACCESS\_DENIED`. In this case, the backchannel authentication endpoint of the authorization
675
- # server implementation should return a "403 Forbidden" response to the client application.
676
- #
369
+ # response which is returned to the client from the [backchannel authentication endpoint](https://openid.net/specs/openid-client-initiated-backchannel-authentication-core-1_0.html#auth_backchannel_endpoint).
370
+ #
677
371
  request = Models::Operations::BackchannelAuthenticationFailApiRequest.new(
678
372
  service_id: service_id,
679
373
  backchannel_authentication_fail_request: backchannel_authentication_fail_request
@@ -692,7 +386,7 @@ module Authlete
692
386
  headers['content-type'] = req_content_type
693
387
  raise StandardError, 'request body is required' if data.nil? && form.nil?
694
388
 
695
- if form
389
+ if form && !form.empty?
696
390
  body = Utils.encode_form(form)
697
391
  elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
698
392
  body = URI.encode_www_form(T.cast(data, T::Hash[Symbol, Object]))
@@ -728,6 +422,9 @@ module Authlete
728
422
  req.headers.merge!(headers)
729
423
  req.options.timeout = timeout unless timeout.nil?
730
424
  Utils.configure_request_security(req, security)
425
+ http_headers&.each do |key, value|
426
+ req.headers[key.to_s] = value
427
+ end
731
428
 
732
429
  @sdk_configuration.hooks.before_request(
733
430
  hook_ctx: SDKHooks::BeforeRequestHookContext.new(
@@ -825,92 +522,13 @@ module Authlete
825
522
  end
826
523
 
827
524
 
828
- sig { params(backchannel_authentication_complete_request: Models::Components::BackchannelAuthenticationCompleteRequest, service_id: ::String, timeout_ms: T.nilable(Integer)).returns(Models::Operations::BackchannelAuthenticationCompleteApiResponse) }
829
- def complete_request(backchannel_authentication_complete_request:, service_id:, timeout_ms: nil)
525
+ sig { params(backchannel_authentication_complete_request: Models::Components::BackchannelAuthenticationCompleteRequest, service_id: ::String, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::BackchannelAuthenticationCompleteApiResponse) }
526
+ def complete_request(backchannel_authentication_complete_request:, service_id:, timeout_ms: nil, http_headers: nil)
830
527
  # complete_request - Complete Backchannel Authentication
831
528
  # This API returns information about what action the authorization server should take after it receives
832
529
  # the result of end-user's decision about whether the end-user has approved or rejected a client application's
833
530
  # request on the authentication device.
834
- # ### Description
835
- # After the implementation of the backchannel authentication endpoint returns JSON containing an
836
- # `auth\_req\_id` to the client, the authorization server starts a background process that communicates
837
- # with the authentication device of the end-user. On the authentication device, end-user authentication
838
- # is performed and the end-user is asked whether they give authorization to the client or not. The
839
- # authorization server will receive the result of end-user authentication and authorization from
840
- # the authentication device.
841
- # After the authorization server receives the result from the authentication device, or even in the
842
- # case where the server gave up receiving a response from the authentication device for some reasons,
843
- # the server should call the `/backchannel/authentication/complete` API to tell Authlete the result.
844
- # When the end-user was authenticated and authorization was granted to the client by the end-user,
845
- # the authorization server should call the API with `result=AUTHORIZED`. In this successful case,
846
- # the `subject` request parameter is mandatory. If the token delivery mode is `push`, the API will generate
847
- # an access token, an ID token and optionally a refresh token. On the other hand, if the token delivery
848
- # mode is `poll` or `ping`, the API will just update the database record so that `/auth/token` API
849
- # can generate tokens later.
850
- # When the authorization server received the decision of the end-user from the authentication device
851
- # and it indicates that the end-user has rejected to give authorization to the client, the authorization
852
- # server should call the API with `result=ACCESS\_DENIED`. In this case, if the token delivery mode
853
- # is `push`, the API will generate an error response that contains the error response parameter and
854
- # optionally the `error\_description` and error\_uri response parameters (if the `errorDescription`
855
- # and `errorUri` request parameters have been given). On the other hand, if the token delivery mode
856
- # is `poll` or `ping`, the API will just update the database record so that `/auth/token` API can
857
- # generate an error response later. In any token delivery mode, the value of the error parameter will
858
- # become `access\_denied`.
859
- # When the authorization server could not get the result of end-user authentication and authorization
860
- # from the authentication device for some reasons, the authorization server should call the API with
861
- # `result=TRANSACTION\_FAILED`. In this error case, the API will behave in the same way as in the case
862
- # of `ACCESS\_DENIED`. The only difference is that `expired\_token` is used as the value of the `error`
863
- # parameter.
864
- # The response from `/backchannel/authentication/complete` API has various parameters. Among them,
865
- # it is `action` parameter that the authorization server implementation should check first because
866
- # it denotes the next action that the authorization server implementation should take. According to
867
- # the value of `action`, the service implementation must take the steps described below.
868
- # **SERVER\_ERROR**
869
- # When the value of `action` is `SERVER\_ERROR`, it means either (1) that the request from the authorization
870
- # server to Authlete was wrong, or (2) that an error occurred on Authlete side.
871
- # When the backchannel token delivery mode is `ping` or `push`, `SERVER\_ERROR` is used only when
872
- # an error is detected before the record of the ticket (which is included in the API call to `/backchannel/authentication/complete`)
873
- # is retrieved from the database successfully. If an error is detected after the record of the ticket
874
- # is retrieved from the database, `NOTIFICATION` is used instead of `SERVER\_ERROR`.
875
- # When the backchannel token delivery mode is `poll`, `SERVER\_ERROR` is used regardless of whether
876
- # it is before or after the record of the ticket is retrieved from the database.
877
- # **NO\_ACTION**
878
- # When the value of `action` is `NO\_ACTION`, it means that the authorization server does not have
879
- # to take any immediate action.
880
- # `NO\_ACTION` is returned when the backchannel token delivery mode is `poll`. In this case, the client
881
- # will receive the final result at the token endpoint.
882
- # **NOTIFICATION**
883
- # When the value of `action` is `NOTIFICATION`, it means that the authorization server must send a
884
- # notification to the client notification endpoint.
885
- # According to the CIBA Core specification, the notification is an HTTP POST request whose request
886
- # body is JSON and whose `Authorization` header contains the client notification token, which was
887
- # included in the backchannel authentication request as the value of the `client\_notification\_token`
888
- # request parameter, as a bearer token.
889
- # When the backchannel token delivery mode is `ping`, the request body of the notification is JSON
890
- # which contains the `auth\_req\_id` property only. When the backchannel token delivery mode is `push`,
891
- # the request body will additionally contain an access token, an ID token and other properties. Note
892
- # that when the backchannel token delivery mode is `poll`, a notification does not have to be sent
893
- # to the client notification endpoint.
894
- # In error cases, in the ping mode, however, the content of a notification is not different from the
895
- # content in successful cases. That is, the notification contains the `auth\_req\_id` property only.
896
- # The client will know the error when it accesses the token endpoint. On the other hand, in the
897
- # `push` mode, in error cases, the content of a notification will include the `error` property instead
898
- # of an access token and an ID token. The client will know the error by detecting that error is included
899
- # in the notification.
900
- # In any case, the value of `responseContent` is JSON which can be used as the request body of the
901
- # notification.
902
- # The client notification endpoint that the notification should be sent to the value of the `clientNotificationEndpoint`
903
- # parameter. Likewise, the client notification token that the notification should include as a bearer
904
- # token is the `clientNotificationToken` parameter. With these methods, the notification can be built
905
- # like the following.
906
- # ```
907
- # POST {clientNotificationEndpoint} HTTP/1.1
908
- # HOST: {The host of clientNotificationEndpoint}
909
- # Authorization: Bearer {notificationToken}
910
- # Content-Type: application/json
911
- # {responseContent}
912
- # ```
913
- #
531
+ #
914
532
  request = Models::Operations::BackchannelAuthenticationCompleteApiRequest.new(
915
533
  service_id: service_id,
916
534
  backchannel_authentication_complete_request: backchannel_authentication_complete_request
@@ -929,7 +547,7 @@ module Authlete
929
547
  headers['content-type'] = req_content_type
930
548
  raise StandardError, 'request body is required' if data.nil? && form.nil?
931
549
 
932
- if form
550
+ if form && !form.empty?
933
551
  body = Utils.encode_form(form)
934
552
  elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
935
553
  body = URI.encode_www_form(T.cast(data, T::Hash[Symbol, Object]))
@@ -965,6 +583,9 @@ module Authlete
965
583
  req.headers.merge!(headers)
966
584
  req.options.timeout = timeout unless timeout.nil?
967
585
  Utils.configure_request_security(req, security)
586
+ http_headers&.each do |key, value|
587
+ req.headers[key.to_s] = value
588
+ end
968
589
 
969
590
  @sdk_configuration.hooks.before_request(
970
591
  hook_ctx: SDKHooks::BeforeRequestHookContext.new(
@@ -1060,5 +681,5 @@ module Authlete
1060
681
 
1061
682
  end
1062
683
  end
1063
- end
684
+ end
1064
685
  end
@@ -16,7 +16,7 @@ module Authlete
16
16
  class Client
17
17
  extend T::Sig
18
18
 
19
- attr_accessor :services, :clients, :client_management, :authorization, :pushed_authorization, :tokens, :introspection, :revocation, :userinfo, :token_management, :grant_management, :jwk_set_endpoint, :dynamic_client_registration, :ciba, :device_flow, :jose_object, :federation, :hardware_security_keys, :verifiable_credentials, :authorization_management, :native_sso
19
+ attr_accessor :services, :clients, :client_management, :authorization, :pushed_authorization, :tokens, :introspection, :revocation, :userinfo, :token_management, :grant_management, :jwk_set_endpoint, :dynamic_client_registration, :ciba, :device_flow, :jose_object, :federation, :hardware_security_keys, :verifiable_credentials, :lifecycle, :authorization_management, :native_sso
20
20
 
21
21
  # Instantiates the SDK, configuring it with the provided parameters.
22
22
  #
@@ -97,6 +97,7 @@ module Authlete
97
97
  @federation = Federation.new(@sdk_configuration)
98
98
  @hardware_security_keys = HardwareSecurityKeys.new(@sdk_configuration)
99
99
  @verifiable_credentials = VerifiableCredentials.new(@sdk_configuration)
100
+ @lifecycle = Lifecycle.new(@sdk_configuration)
100
101
  @authorization_management = AuthorizationManagement.new(@sdk_configuration)
101
102
  @native_sso = NativeSso.new(@sdk_configuration)
102
103
  end
@@ -115,5 +116,6 @@ module Authlete
115
116
 
116
117
  return Utils.template_url base_url, url_variables
117
118
  end
118
- end
119
+
120
+ end
119
121
  end