This application is a service for managing users in ID-porten with two APIs:
- /login - for logging in users only available for idporten-login application internally in the namespace
- in case of accidentially exposing this endpoint, it is secured by a simple api-key known to idporten-login only
- since no TLS inside of the namespace, it has very limited security inside the namespace
- /admin - for managing users, available externally for admin-applications secured by Maskinporten (oauth2 token)
To build and run the application you need:
- JDK 21
- Maven
The application has profiles located in the resources directory.
Profile | Description |
---|
The application can be started with Maven:
mvn spring-boot:run -Dspring-boot.run.profiles=<profile>
General properties for a Spring Boot application (https://docs.spring.io/spring-boot/docs/current/reference/html/appendix-application-properties.html) has a default configuration in the application archive.
Key | Default value | Description |
---|
- DATASOURCE_PASSWORD (password to idporten_user database for user user_service)
- API_KEY (api-key for /login access)
- idporten-validators
- idporten-access-log-spring-boot-3-starter
- idporten-log-audit