Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/saiupadhyayula/springboot-angular-pkce-oauth2-demo
This repository contains sample source code to demonstrate how to implement Authorization Code Flow (PKCE) using Spring Boot, Angular and Keycloak.
https://github.com/saiupadhyayula/springboot-angular-pkce-oauth2-demo
angular keycloak pkce pkce-authentication spring-boot
Last synced: 2 days ago
JSON representation
This repository contains sample source code to demonstrate how to implement Authorization Code Flow (PKCE) using Spring Boot, Angular and Keycloak.
- Host: GitHub
- URL: https://github.com/saiupadhyayula/springboot-angular-pkce-oauth2-demo
- Owner: SaiUpadhyayula
- Created: 2021-05-24T08:53:41.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-05-24T08:57:30.000Z (over 3 years ago)
- Last Synced: 2024-12-01T13:54:39.365Z (2 months ago)
- Topics: angular, keycloak, pkce, pkce-authentication, spring-boot
- Language: TypeScript
- Homepage:
- Size: 185 KB
- Stars: 6
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Spring Boot Angular Keycloak Oauth2 PKCE Example
This repository contains source code to demonstrate how to implement Authorization Code Flow (PKCE) using Spring Boot, Angular and Keycloak.
## Instructions to run the project
- ### Run Keycloak
- Download Keycloak from https://www.keycloak.org/downloads
- If you are using standalone version, run the following command, by making sure you are inside the bin directory
`standalone.bat -Djboss.http.port=`, you can provide whatever port number you like.- ### Importing Realm
- Instead of creating the realm, you can make use of the `realm-export.json` file to import all the realm details into your Keycloak instance.
- ### Spring Boot Project
- Pre-Requisite: Make sure the Keycloak server is running.
- Run `mvn clean verify`
- Run `Oauth2SpaDemoApplication` class.
- ### Running Angular Project
- Go to the `src/main/resources/frontend` and run `npm install`
- Start the server using `npm start` command.
- Open `http://localhost:4200`