代码拉取完成,页面将自动刷新
###
# 根据用户名密码获取令牌
POST http://localhost:9000/oauth2/token
Authorization: Basic bWVzc2FnaW5nLWNsaWVudDpzZWNyZXQ=
Accept-Language: zh_CN
Content-Type: application/x-www-form-urlencoded
grant_type=password&username=admin&password=123456
###
# 访问资源服务器
GET http://localhost:8090/messages
Authorization: Bearer eyJraWQiOiIyZDNkZTAyMi02OGI5LTQzZDUtOTJhYi1lODhiYTdiMGI2ZGEiLCJhbGciOiJSUzI1NiJ9.eyJzdWIiOiJhZG1pbiIsImF1ZCI6Im1lc3NhZ2luZy1jbGllbnQiLCJuYmYiOjE2ODc4NDg4MTQsInNjb3BlIjpbIm9wZW5pZCIsIm1lc3NhZ2UucmVhZCIsIm1lc3NhZ2Uud3JpdGUiXSwiaXNzIjoiaHR0cDovL2xvY2FsaG9zdDo5MDAwIiwiZXhwIjoxNjg3ODQ5MTE0LCJpYXQiOjE2ODc4NDg4MTR9.MuC2Em9999trkOSovAxxIqcJHhmQdPxijXioqyKbuYOVDvHnyAo9kboyigKfzr31VS10NbKUQdfjrJmZpkYlyK4kbhIN8FjXf_fDK0wTBwmXioSo25oM2h92MmcazdlxE77ZYKT5YnZbOGdTqgDg6t82b6yk6MjKWDVPQzM-Gime_3nLQYsRpRptYOT1uoQBHbclR6XKjlzDKqevPQGt300idHvOluvL9iV81k4db-8L1DlgDYo01XpuynWPqJkfhTKhmGlTlp3qxoN_6KI__PJmxQw8iFGfOI1C6E3aGbGqFZf5r7dQArwQtEBR8gD2Af19_DG36T5ZLPyPUn0rkw
###
# 获取授权码 scope参数可以为空,不为空且consentAuthorization时则需要跳转至授权同意页面
http://localhost:9000/oauth2/authorize?client_id=messaging-client&client_secret=secret&response_type=code&
scope=message.write&redirect_uri=http://127.0.0.1:9000/hello
###
# 授权码登陆
POST http://localhost:9000/oauth2/token
Authorization: Basic bWVzc2FnaW5nLWNsaWVudDpzZWNyZXQ=
Accept-Language: zh_CN
Content-Type: application/x-www-form-urlencoded
grant_type=authorization_code&code=lNZwJBBL5Umu3rkRQzAz7Rjhul9bb5xlDg2foi2uw5Tsz-NgE6tJlko5n-SgaAZqbRFlG5rbGI8mh8IQL4vebaU668eamuvcjYmF6-AOUCq8I9FZSZP7UX1384Sg9xiE&redirect_uri=http://127.0.0.1:9000/hello
###
# 根据刷新令牌重置访问与刷新令牌
POST http://localhost:9000/oauth2/token
Authorization: Basic bWVzc2FnaW5nLWNsaWVudDpzZWNyZXQ=
Accept-Language: zh_CN
Content-Type: application/x-www-form-urlencoded
grant_type=refresh_token&refresh_token=IAL9pDq_qxzVWNnSIvbreRCA8DR8dnG6sM6NkF5lk7ii36xazaoOzY5r9RlZGajIU1iyFwIYVi6E_yk58wPaRmP1bHQm7dxFxo1WEM3b5pnL8G4iXqe8YpLrUixKdQIf
###
# 获取访问/刷新令牌信息
POST http://localhost:9000/oauth2/introspect
Authorization: Basic bWVzc2FnaW5nLWNsaWVudDpzZWNyZXQ=
Accept-Language: zh_CN
Content-Type: application/x-www-form-urlencoded
# token_type_hint 参数可选
#token_type_hint=access_token&token=xxx
#或
token=eyJraWQiOiIzODQ3ZjBiMS01YWEzLTQzMGMtOWI3ZC1hMWVhNDRiZWE1ZjMiLCJhbGciOiJSUzI1NiJ9.eyJzdWIiOiJhZG1pbiIsImF1ZCI6Im1lc3NhZ2luZy1jbGllbnQiLCJuYmYiOjE2ODc4NDYzNjQsInNjb3BlIjpbIm9wZW5pZCIsIm1lc3NhZ2UucmVhZCIsIm1lc3NhZ2Uud3JpdGUiXSwiaXNzIjoiaHR0cDovL2xvY2FsaG9zdDo5MDAwIiwiZXhwIjoxNjg3ODQ2NjY0LCJpYXQiOjE2ODc4NDYzNjR9.ZbKK73-xdaybuClTgQp0_T30i3ovhuSiG36wbAn1n8U0AN_pXktwPyyVuPlRDKKzKisYx0Wls1nzs2ofN-4euOQQTrVufJinLKJdZOQMw0USgUILp9iwrr2md2-YTvzjurNmu6v37NwMs_2y5w-mMr_FkpcUmXDkR74ijZHnSsYRAJnC-hOTRs_S3Mt2bhpe9dSga6d9r0zr1zlVCfeBwMnziIPOnNIl_cJpZwJADeTjqkXqwvRTvblv5ltcLtx8v-RaO1P2JP429zkTaxDus5Pj-zXj03ulR426rfNPYon5vZhuJR_bRZbw0VJTrGd_vpST2yoT1vs6Z0QKMTDCyQ
###
# 获取授权服务器的元信息
GET http://localhost:9000/.well-known/oauth-authorization-server
###
# JWKS端点
GET http://localhost:9000/oauth2/jwks
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。