mirror of
https://github.com/OtusTeam/Spring.git
synced 2026-06-20 11:14:34 +00:00
пример oAuth
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
+13
@@ -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
|
||||
Reference in New Issue
Block a user