Skip to content

Commit b90fb09

Browse files
committed
Remove SPA sample
1 parent 12768b5 commit b90fb09

30 files changed

Lines changed: 0 additions & 14036 deletions

samples/README.adoc

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -5,26 +5,6 @@
55

66
The default sample provides the minimal configuration to get started with Spring Authorization Server.
77

8-
[[spa-sample]]
9-
== SPA (Single Page Application) Sample
10-
11-
The SPA sample provides a reference implementation of the https://datatracker.ietf.org/doc/html/draft-ietf-oauth-browser-based-apps-19#name-backend-for-frontend-bff[Backend For Frontend (BFF)] application architecture pattern.
12-
The *spa-client* is the _frontend_ SPA implemented with Angular and the *backend-for-spa-client* is the _backend_ application.
13-
The *backend-for-spa-client* uses https://spring.io/projects/spring-cloud-gateway[Spring Cloud Gateway] to route `/userinfo` (UserInfo Endpoint) requests to *demo-authorizationserver* and `/messages` requests to *messages-resource*.
14-
The *backend-for-spa-client* performs the authorization flows and stores the access tokens.
15-
The *spa-client* is never exposed the access tokens and directly communicates with the *backend-for-spa-client* via an authenticated session cookie.
16-
17-
[[run-spa-sample]]
18-
=== Run the Sample
19-
20-
* Run Authorization Server -> `./gradlew -b samples/demo-authorizationserver/samples-demo-authorizationserver.gradle bootRun`
21-
* Run Resource Server -> `./gradlew -b samples/messages-resource/samples-messages-resource.gradle bootRun`
22-
* Run Backend -> `./gradlew -b samples/backend-for-spa-client/samples-backend-for-spa-client.gradle bootRun`
23-
* Run Frontend -> `ng serve` (from `samples/spa-client` directory)
24-
** *NOTE:* Angular must be installed locally before running `ng serve`. See https://angular.dev/installation[installation instructions].
25-
* Go to `http://127.0.0.1:4200`
26-
** Login with credentials -> user1 \ password
27-
288
[[demo-sample]]
299
== Demo Sample
3010

samples/backend-for-spa-client/gradle.properties

Lines changed: 0 additions & 1 deletion
This file was deleted.

samples/backend-for-spa-client/samples-backend-for-spa-client.gradle

Lines changed: 0 additions & 35 deletions
This file was deleted.

samples/backend-for-spa-client/src/main/java/sample/BackendForSpaClientApplication.java

Lines changed: 0 additions & 32 deletions
This file was deleted.

samples/backend-for-spa-client/src/main/java/sample/config/CorsConfig.java

Lines changed: 0 additions & 52 deletions
This file was deleted.

samples/backend-for-spa-client/src/main/java/sample/config/GatewayFilterFunctions.java

Lines changed: 0 additions & 64 deletions
This file was deleted.

samples/backend-for-spa-client/src/main/java/sample/config/SecurityConfig.java

Lines changed: 0 additions & 118 deletions
This file was deleted.

samples/backend-for-spa-client/src/main/java/sample/web/DefaultController.java

Lines changed: 0 additions & 43 deletions
This file was deleted.

samples/backend-for-spa-client/src/main/resources/META-INF/spring.factories

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)