Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

How to add a user

Only users with role ACTUATOR can access endpoints.

By default the user 'blueriq' with password 'welcome' has been configured. 

ROLE_actuator can access endpoints. To add a user, follow these steps:Step 1, Add the user with a ROLE_actuator role to maintenance-users.properties

  1. Add the following configuration properties to blueriq-dcm-maintenance-app.yml. This will add user with username "blueriq" and password "welcome" and assign the role

...

  1. ACTUATOR to it.

...

titleexample maintenance-users.properties

...

  1. spring:
      security:
        user:
          name: blueriq
          password: '{noop}welcome

...

  1. '
          roles:
           - ACTUATOR

Step 2, Add the user.properties file to the configuration blueriq-dcm-maintenance-app.yml

Code Block
languageyml
titleexample blueriq-dcm-maintenance-app.yml
blueriq:
  dcm:
    maintenance:
      app:
        users:
          file: ${spring.config.additional-location}maintenance-users.properties

How to call endpoints

...

Currently, only the /health endpoint is enabled.


The actuator endpoint can be called using HTTP protocol:

Make sure to replace "{url}" with application domain.

...

GET

...

http://{url}/dcm-maintenance/actuator/health

...


Authorization:

...

Basic

...

blueriq

...

welcome