пример oAuth

This commit is contained in:
kataus
2022-06-04 10:17:59 +03:00
parent 2469bf0e4c
commit c2abb52852
3 changed files with 24 additions and 1 deletions
+5
View File
@@ -68,6 +68,11 @@
<groupId>org.webjars</groupId>
<artifactId>webjars-locator-core</artifactId>
</dependency>
<dependency>
<groupId>org.webjars</groupId>
<artifactId>js-cookie</artifactId>
<version>2.1.0</version>
</dependency>
</dependencies>
@@ -0,0 +1,13 @@
package ru.otus.spring.sso.controller;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
@Controller
public class IndexController {
@GetMapping("/")
public String indexPage() {
return "index";
}
}
@@ -5,4 +5,9 @@ spring:
registration:
github:
clientId: fdec09b924be7f214eaa
clientSecret: 5436beb72dc2ec7f2320afcab5185c1ea03d484b
clientSecret: 5436beb72dc2ec7f2320afcab5185c1ea03d484b
logging:
level:
root: error
org.springframework.security: DEBUG