Skip to content
This repository has been archived by the owner on Oct 20, 2024. It is now read-only.

Latest commit

 

History

History
61 lines (35 loc) · 2.15 KB

USER_HTTP.md

File metadata and controls

61 lines (35 loc) · 2.15 KB

Glewlwyd User Module HTTP Backend documentation

License: CC BY 4.0

mod-user-http

The http backend uses a HTTP service to authenticate users via Basic Auth. By design, this backend module instance is always read-only. Listing users will always return an empty list, getting a single user will always return a JSON object, even if the user doesn't exist in the backend.

The HTTP request GET /api/user/user1?backend=http may return the following response:

{
  "username": "user1",
  "scope": ["g_profile","scope1"],
  "enabled": true
}

The scopes returned are the one specified in the Default scopes property.

The authentication method used is the Basic HTTP authentication.

Installation

In the administration page, go to Parameters/Users data sources and add a new user module by clicking on the + button. In the modal, enter a name and a display name (the name must be unique among all user backend instances). Select the type LDAP backend user module in the Type drop-down button.

Below is the definition of all parameters.

Name

Name (identifier) of the module instance, must be unique among all the user backend module instances, even of a different type.

Display name

Name of the instance displayed to the user.

Read only

This option has no effect on this backend.

Multiple password

This option has no effect on this backend.

URL

URL of the HTTP service to connect to.

Validate server certificate

Check this option if the HTTP service uses TLS and if you want to validate the certificate.

Default scopes

Select all the scopes that will be available for a connected user. At least one scope is mandatory.

Username format on HTTP server

Fill this option if you want the users to enter their username only, without surrounding patterns. For example, if the login format on the HTTP server uses the format \\domain\username, then you can fill this option with \\domain\{username}. This option is optional, but if you fill it, the pattern {username} must be present in the format.