Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/saiupadhyayula/spring-security-oauth2-keycloak-demo
This repository contains source code to demonstrate OAuth2 features using Spring Security and KeyCloak Authorization Server
https://github.com/saiupadhyayula/spring-security-oauth2-keycloak-demo
angular angular-oauth2-oidc keycloak spring spring-security spring-security-oauth2 springboot
Last synced: 13 days ago
JSON representation
This repository contains source code to demonstrate OAuth2 features using Spring Security and KeyCloak Authorization Server
- Host: GitHub
- URL: https://github.com/saiupadhyayula/spring-security-oauth2-keycloak-demo
- Owner: SaiUpadhyayula
- Created: 2021-05-29T09:45:20.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-10-04T13:19:21.000Z (over 1 year ago)
- Last Synced: 2025-01-03T05:19:48.091Z (20 days ago)
- Topics: angular, angular-oauth2-oidc, keycloak, spring, spring-security, spring-security-oauth2, springboot
- Language: TypeScript
- Homepage:
- Size: 46.9 KB
- Stars: 107
- Watchers: 5
- Forks: 116
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Spring Security OAuth2 Keycloak Demo
This repository contains source code to demonstrate OAuth2 features using Spring Security and KeyCloak Authorization Server
After you checked out the project, run the following command:
`mvn clean verify`
This project contains examples for 3 OAuth2 Grant Types
- Authorization Code Flow (oauth2-authorization-code-demo)
- PKCE Authorization Code Flow (oauth2-pkce-demo)
- Client Credentials Flow (oauth2-client-credentials-demo)- ### 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.