Skip to content

Commit 1eaebca

Browse files
committed
Remove org.webjars dependencies from demo-authorizationserver sample
Closes gh-1445
1 parent 471c38a commit 1eaebca

File tree

7 files changed

+6
-9
lines changed

7 files changed

+6
-9
lines changed

samples/demo-authorizationserver/samples-demo-authorizationserver.gradle

-3
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,6 @@ dependencies {
2020
implementation "org.springframework.boot:spring-boot-starter-oauth2-client"
2121
implementation "org.springframework.boot:spring-boot-starter-jdbc"
2222
implementation project(":spring-security-oauth2-authorization-server")
23-
implementation "org.webjars:webjars-locator-core"
24-
implementation "org.webjars:bootstrap:5.2.3"
25-
implementation "org.webjars:jquery:3.6.4"
2623
runtimeOnly "com.h2database:h2"
2724

2825
testImplementation "org.springframework.boot:spring-boot-starter-test"

samples/demo-authorizationserver/src/main/java/sample/config/DefaultSecurityConfig.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public SecurityFilterChain defaultSecurityFilterChain(HttpSecurity http) throws
4646
http
4747
.authorizeHttpRequests(authorize ->
4848
authorize
49-
.requestMatchers("/assets/**", "/webjars/**", "/login").permitAll()
49+
.requestMatchers("/assets/**", "/login").permitAll()
5050
.anyRequest().authenticated()
5151
)
5252
.formLogin(formLogin ->

samples/demo-authorizationserver/src/main/resources/templates/consent.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<meta charset="utf-8" />
55
<meta name="viewport" content="width=device-width, initial-scale=1">
66
<title>Custom consent page - Consent required</title>
7-
<link rel="stylesheet" href="/webjars/bootstrap/css/bootstrap.css" th:href="@{/webjars/bootstrap/css/bootstrap.css}" />
7+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css" integrity="sha384-rbsA2VBKQhggwzxH7pPCaAqO46MgnOM80zW1RWuH61DGLwZJEdK2Kadq2F9CUG65" crossorigin="anonymous">
88
<script>
99
function cancelConsent() {
1010
document.consent_form.reset();

samples/demo-authorizationserver/src/main/resources/templates/device-activate.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<meta charset="utf-8" />
55
<meta name="viewport" content="width=device-width, initial-scale=1">
66
<title>Spring Authorization Server sample</title>
7-
<link rel="stylesheet" href="/webjars/bootstrap/css/bootstrap.css" th:href="@{/webjars/bootstrap/css/bootstrap.css}" />
7+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css" integrity="sha384-rbsA2VBKQhggwzxH7pPCaAqO46MgnOM80zW1RWuH61DGLwZJEdK2Kadq2F9CUG65" crossorigin="anonymous">
88
</head>
99
<body>
1010
<div class="container">

samples/demo-authorizationserver/src/main/resources/templates/device-activated.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<meta charset="utf-8" />
55
<meta name="viewport" content="width=device-width, initial-scale=1">
66
<title>Spring Authorization Server sample</title>
7-
<link rel="stylesheet" href="/webjars/bootstrap/css/bootstrap.css" th:href="@{/webjars/bootstrap/css/bootstrap.css}" />
7+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css" integrity="sha384-rbsA2VBKQhggwzxH7pPCaAqO46MgnOM80zW1RWuH61DGLwZJEdK2Kadq2F9CUG65" crossorigin="anonymous">
88
</head>
99
<body>
1010
<div class="container">

samples/demo-authorizationserver/src/main/resources/templates/error.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<meta charset="utf-8" />
55
<meta name="viewport" content="width=device-width, initial-scale=1">
66
<title>Spring Authorization Server sample</title>
7-
<link rel="stylesheet" href="/webjars/bootstrap/css/bootstrap.css" th:href="@{/webjars/bootstrap/css/bootstrap.css}" />
7+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css" integrity="sha384-rbsA2VBKQhggwzxH7pPCaAqO46MgnOM80zW1RWuH61DGLwZJEdK2Kadq2F9CUG65" crossorigin="anonymous">
88
</head>
99
<body>
1010
<div class="container">

samples/demo-authorizationserver/src/main/resources/templates/login.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<meta charset="utf-8" />
55
<meta name="viewport" content="width=device-width, initial-scale=1">
66
<title>Spring Authorization Server sample</title>
7-
<link rel="stylesheet" href="/webjars/bootstrap/css/bootstrap.css" th:href="@{/webjars/bootstrap/css/bootstrap.css}" />
7+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css" integrity="sha384-rbsA2VBKQhggwzxH7pPCaAqO46MgnOM80zW1RWuH61DGLwZJEdK2Kadq2F9CUG65" crossorigin="anonymous">
88
<link rel="stylesheet" href="/assets/css/signin.css" th:href="@{/assets/css/signin.css}" />
99
</head>
1010
<body>

0 commit comments

Comments
 (0)