Skip to content

Commit 0d449d0

Browse files
authored
Feature/spring security auth server (#2)
* Added spring security auth server * Custom error handler
1 parent aa1e3b2 commit 0d449d0

File tree

16 files changed

+696
-0
lines changed

16 files changed

+696
-0
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
HELP.md
2+
.gradle
3+
build/
4+
!gradle/wrapper/gradle-wrapper.jar
5+
!**/src/main/**/build/
6+
!**/src/test/**/build/
7+
8+
### STS ###
9+
.apt_generated
10+
.classpath
11+
.factorypath
12+
.project
13+
.settings
14+
.springBeans
15+
.sts4-cache
16+
bin/
17+
!**/src/main/**/bin/
18+
!**/src/test/**/bin/
19+
20+
### IntelliJ IDEA ###
21+
.idea
22+
*.iws
23+
*.iml
24+
*.ipr
25+
out/
26+
!**/src/main/**/out/
27+
!**/src/test/**/out/
28+
29+
### NetBeans ###
30+
/nbproject/private/
31+
/nbbuild/
32+
/dist/
33+
/nbdist/
34+
/.nb-gradle/
35+
36+
### VS Code ###
37+
.vscode/
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
plugins {
2+
id 'java'
3+
id 'org.springframework.boot' version '3.3.0'
4+
id 'io.spring.dependency-management' version '1.1.5'
5+
}
6+
7+
group = 'com.stacktips.app'
8+
version = '0.0.1-SNAPSHOT'
9+
10+
java {
11+
toolchain {
12+
languageVersion = JavaLanguageVersion.of(17)
13+
}
14+
}
15+
16+
repositories {
17+
mavenCentral()
18+
}
19+
20+
dependencies {
21+
implementation 'org.springframework.boot:spring-boot-starter-oauth2-authorization-server'
22+
implementation 'org.springframework.security:spring-security-oauth2-jose'
23+
implementation 'org.springframework.boot:spring-boot-starter-oauth2-resource-server'
24+
implementation 'org.springframework.boot:spring-boot-starter-security'
25+
26+
implementation 'org.springframework.boot:spring-boot-starter-web'
27+
implementation 'org.springframework.boot:spring-boot-starter-actuator'
28+
testImplementation 'org.springframework.boot:spring-boot-starter-test'
29+
testImplementation 'org.springframework.security:spring-security-test'
30+
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
31+
}
32+
33+
tasks.named('test') {
34+
useJUnitPlatform()
35+
}
42.4 KB
Binary file not shown.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
distributionBase=GRADLE_USER_HOME
2+
distributionPath=wrapper/dists
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.8-bin.zip
4+
networkTimeout=10000
5+
validateDistributionUrl=true
6+
zipStoreBase=GRADLE_USER_HOME
7+
zipStorePath=wrapper/dists

spring-security-auth-server/gradlew

Lines changed: 249 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)