Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/curityio/website-with-encrypted-id-tokens
How to use JWEs for ID tokens in a website secured by OAuth 2.0 and OpenID Connect
https://github.com/curityio/website-with-encrypted-id-tokens
code-example financial-grade jwe oauth2 openid-connect website
Last synced: about 2 months ago
JSON representation
How to use JWEs for ID tokens in a website secured by OAuth 2.0 and OpenID Connect
- Host: GitHub
- URL: https://github.com/curityio/website-with-encrypted-id-tokens
- Owner: curityio
- License: apache-2.0
- Created: 2021-09-28T09:13:08.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-03-22T08:55:51.000Z (almost 2 years ago)
- Last Synced: 2023-08-05T07:51:07.716Z (over 1 year ago)
- Topics: code-example, financial-grade, jwe, oauth2, openid-connect, website
- Language: Kotlin
- Homepage: https://curity.io/resources/learn/encrypted-id-tokens/
- Size: 9.25 MB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Website with Encrypted ID Tokens
A code example showing a method for protecting Personally Identifiable Information (PII) in ID tokens.
## Overview
A website application receives ID tokens that are encrypted using JSON Web Encryption (JWE).\
The example shows how to use the [jose4j library](https://github.com/RbkGh/Jose4j) in Spring Boot to perform decryption of a Nested JWT.## Create Encryption Keys
Run a script that uses OpenSSL to create some development encryption keys:
```bash
./create-keys.sh
```## Build the Website
Ensure that Java 8 or later is installed, along with Maven, then build and run the app:
```bash
mnv package
java -jar target/example-website-0.0.1-SNAPSHOT.jar
```## Use the Website
Browse to http://localhost:8080 to sign a user in.\
The app will then decrypt ID tokens and the UI will render user name claims.## Further Information
- See the [Website Tutorial](https://curity.io/resources/learn/website-using-encrypted-id-tokens) for further information on the setup.
- Please visit [curity.io](https://curity.io/) for more information about the Curity Identity Server.