Draft
Conversation
There was a problem hiding this comment.
Pull request overview
Adds a new device Maven module intended to demonstrate Keycloak’s OAuth 2.0 Device Authorization Grant (Device Flow) using Spring Boot + Thymeleaf.
Changes:
- Registers a new
devicemodule in the root Maven reactor. - Introduces a Spring Boot web app skeleton (controller/service + Thymeleaf templates) and DTOs for device authorization responses.
- Adds a Keycloak realm import and module-level README/configuration.
Reviewed changes
Copilot reviewed 12 out of 14 changed files in this pull request and generated 14 comments.
Show a summary per file
| File | Description |
|---|---|
| pom.xml | Adds the new device module to the multi-module build. |
| device/pom.xml | New module POM with Spring Boot dependencies and build plugin configuration. |
| device/src/main/java/org/keycloak/quickstarts/DeviceApplication.java | Spring Boot entrypoint for the new module. |
| device/src/main/java/org/keycloak/quickstarts/DeviceController.java | MVC endpoints to start device flow and (intended) token display/logout. |
| device/src/main/java/org/keycloak/quickstarts/DeviceFlowService.java | RestClient-based call to Keycloak device authorization endpoint and state handling. |
| device/src/main/java/org/keycloak/quickstarts/DeviceResponse.java | DTO for device authorization response JSON. |
| device/src/main/java/org/keycloak/quickstarts/TokenResponse.java | DTO for token endpoint response JSON. |
| device/src/main/resources/templates/index.html | Start page with “Log in” action to initiate device flow. |
| device/src/main/resources/templates/device-info.html | Displays verification URI and user code. |
| device/src/main/resources/application.properties | Basic app config (name/port/Thymeleaf cache). |
| device/config/realm-import.json | Keycloak realm/client/user configuration for the device flow. |
| device/README.md | Usage instructions and conceptual overview for the quickstart. |
| device/.DS_Store | macOS metadata file added to repo (should not be committed). |
| .DS_Store | macOS metadata file added to repo root (should not be committed). |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This was referenced Apr 22, 2026
0ee41d7 to
575d15f
Compare
Signed-off-by: uzmamansoor09 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #735.
Adding device 1 implementation.