https://github.com/curityio/undertow-pac4j-example
An example Java website that implements OAuth 2.0 and OpenID Connect using Undertow
https://github.com/curityio/undertow-pac4j-example
code-example oauth2 openid-connect undertow website
Last synced: 8 months ago
JSON representation
An example Java website that implements OAuth 2.0 and OpenID Connect using Undertow
- Host: GitHub
- URL: https://github.com/curityio/undertow-pac4j-example
- Owner: curityio
- License: apache-2.0
- Created: 2021-04-21T10:27:05.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-04-21T10:27:40.000Z (almost 5 years ago)
- Last Synced: 2025-04-07T03:35:49.528Z (10 months ago)
- Topics: code-example, oauth2, openid-connect, undertow, website
- Language: Java
- Homepage: https://curity.io/resources/learn/oidc-java-undertow-pac4j/
- Size: 62.5 KB
- Stars: 0
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Example Java website with OIDC login
[](https://curity.io/resources/code-examples/status/)
[](https://curity.io/resources/code-examples/status/)
This repository is an example Java application which performs an OpenID Connect login to get ID and access tokens from an
Authorization Server.
## Running the example
To run the example follow these steps:
- Edit the configuration in the `Configuration` class to reflect your setup.
- Start the project by running the command `./gradlew bootRun`.
- Navigate to [http://localhost:8080](http://localhost:8080), you will be redirected to your Authorization Server to perform login.
- Once the login is complete, you will see the username and access token returned as JSON.
## More information
Please visit [curity.io](https://curity.io/) for more information about the Curity Identity Server.