oauth2.0-各种授权类型示例代码
authorization_code
请求临时令牌
请求
1 | https://oauth2server.com/oauth/authorize?client_id=a17c21ed&response_type=code&state=5ca75bd30&redirect_uri=https://oauth2client.com/auth |
响应
1 | https://oauth2client.com/cb?code=Yzk5ZDczMzRlNDEwY |
请求
1 | https://oauth2server.com/oauth/authorize?client_id=a17c21ed&response_type=code&state=5ca75bd30&redirect_uri=https://oauth2client.com/auth |
响应
1 | https://oauth2client.com/cb?code=Yzk5ZDczMzRlNDEwY |
1 | APP名称、APP描述、APP icon、HOME PAGE、回调地址、privacy policy、short tagline、是否公开 |
1 | 根据是否公开 |