mirror of
				https://github.com/YunaiV/ruoyi-vue-pro.git
				synced 2025-11-04 08:06:12 +08:00 
			
		
		
		
	增加 yudao-sso-demo-by-password 示例,基于密码模式,实现 SSO 单点登录
This commit is contained in:
		@ -31,7 +31,7 @@ public class OAuth2Client {
 | 
				
			|||||||
     */
 | 
					     */
 | 
				
			||||||
    public static final Long TENANT_ID = 1L;
 | 
					    public static final Long TENANT_ID = 1L;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    private static final String CLIENT_ID = "yudao-sso-demo-by-code";
 | 
					    private static final String CLIENT_ID = "yudao-sso-demo-by-password";
 | 
				
			||||||
    private static final String CLIENT_SECRET = "test";
 | 
					    private static final String CLIENT_SECRET = "test";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -57,9 +57,9 @@
 | 
				
			|||||||
	</script>
 | 
						</script>
 | 
				
			||||||
</head>
 | 
					</head>
 | 
				
			||||||
<body>
 | 
					<body>
 | 
				
			||||||
	账号:<input id="username" value="admin" /> <br />
 | 
					账号:<input id="username" value="admin" /> <br />
 | 
				
			||||||
	密码:<input id="password" value="admin123" > <br />
 | 
					密码:<input id="password" value="admin123" > <br />
 | 
				
			||||||
	<button style="float: right; margin-top: 5px;" onclick="login()">登录</button>
 | 
					<button style="float: right; margin-top: 5px;" onclick="login()">登录</button>
 | 
				
			||||||
</body>
 | 
					</body>
 | 
				
			||||||
<style>
 | 
					<style>
 | 
				
			||||||
    body { /** 页面居中 */
 | 
					    body { /** 页面居中 */
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user