授权端点
/api/oauth/authorize
get
/api/oauth/authorize授权端点
查询参数
| 参数 | 位置 | 类型 | 说明 |
|---|---|---|---|
| response_type* | query | string · code | - |
| client_id* | query | string | - |
| redirect_uri* | query | string (uri) | - |
| scope | query | string | - |
| state* | query | string | 防 CSRF,必须携带 |
| nonce | query | string | 请求含 openid 时必须携带 |
| code_challenge* | query | string | - |
| code_challenge_method* | query | string · S256 | - |
| prompt | query | string · none | login | consent | - |
| max_age | query | integer | 认证最多可距今多少秒 |
响应
302跳转登录、同意页或客户端回调