# Security-Oauth2-Code **Repository Path**: luo-wenjie12/security-oauth2-code ## Basic Information - **Project Name**: Security-Oauth2-Code - **Description**: spring security oauth2.0 授权码模式 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-07-18 - **Last Updated**: 2022-02-12 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## Security-OAuth2-Code - 负责人: - 邮箱: ## 项目简介 spring security oauth2.0 授权码模式 resource-server 资源服务器 authorization-server 授权服务器 ## 相关文章 芋道 Spring Security OAuth2 入门: https://www.iocoder.cn/Spring-Security/OAuth2-learning/?self ## 日记 2021-07-18 授权码模式 浏览器访问: http://127.0.0.1:8080/oauth/authorize?client_id=clientapp&redirect_uri=http://127.0.0.1:9090/callback&response_type=code&scope=read_userinfo 获取token http://localhost:8080/oauth/token 请求说明: 通过 Basic Auth 的方式,填写 client-id + client-secret 作为用户名与密码,实现 Client 客户端有效性的认证。 - 请求参数 grant_type 为 "authorization_code",表示使用授权码模式。 - 请求参数 code,从授权服务器获取到的授权码。 - 请求参数 redirect_uri,Client 客户端的 Redirection URI 地址。