Andreas Svanberg fb3ad6f8ab
All checks were successful
/ build (push) Successful in 2m20s
Include entitlements in UserInfo and ID token (#8)
Primary reason for this inclusion is for Nextcloud social login.
The login function uses the OIDC UserInfo endpoint to gather profile
data (name/email) as well as a way to assign group memberships in
Nextcloud which are based on some attribute in the UserInfo response.
We want to use entitlements as a way to assign groups in Nextcloud and
therefore the entitlements must be included in the UserInfo endpoint.
If they are included in the UserInfo endpoint then it makes sense to
also include them in the ID token.
2025-05-12 14:44:58 +02:00
2025-03-27 15:16:33 +01:00
2025-03-21 15:14:33 +01:00
2025-03-21 15:14:43 +01:00
2025-03-25 12:44:32 +01:00
2025-03-21 15:14:33 +01:00

Using as an embedded Docker Compose service

services:
  oauth2:
    build: https://gitea.dsv.su.se/DMC/oauth2-authorization-server.git
    restart: unless-stopped
    ports:
      - "<host_port>:8080"
    environment:
      CLIENT_ID=awesome-app
      CLIENT_SECRET=p4ssw0rd
      CLIENT_REDIRECT_URI=http://localhost/oauth2/callback

Development

Prerequisites

  • JDK 17 (or later)
  • Docker
  • Docker compose 2.24.0 (or later)

Run mvnw spring-boot:run to start the application.

If running via IntelliJ or some other means make sure the "dev" Spring profile is activated. You may have to run mvnw compile to generate any necessary files.

The application will be available at http://localhost:8080

Description
No description provided
Readme 543 KiB
Languages
Java 99%
Dockerfile 0.9%
CSS 0.1%