freme-project / e-services

Apache License 2.0
1 stars 1 forks source link

Separate user accounts for Tilde services #39

Closed jnehring closed 7 years ago

jnehring commented 7 years ago

When we install Tilde at our partner sites, we need different user accounts for each partner. So the user acccount needs to be configurable in the application.properties configuration file.

@andish how do we pass authentication credentials to Tilde services? Currently we pass a header "Authentication". Do we have to submit a separate value for Authentication for each installation?

andish commented 7 years ago

Authentication is realized using Basic authentication. It means that an authorization token is enough for bringing to global configuration file (it contains encoded username+password). Also URL would be grate if could be placed in configuration file, so we would change api endpoint and authorization without rebuilding the freme server. So for each e-service following properties would be good to bring to configuration:

  1. URL of endpoint;
  2. authorization token.
jnehring commented 7 years ago

In e-Translation and e-Terminology we send the authentication token in the request header "Authentication" to the Tilde service. So the header will look like

Authentication: Basic TOKEN_HERE

with TOKEN_HERE being replaced by the token.

Is this correct?

Configuraiton of URL endpoint is already implemented for the unit tests, we just need to document it.

andish commented 7 years ago

yes, exactly.

jnehring commented 7 years ago

@ArneBinder please

1) make the authentication token a configuration parameter in e-Terminology and e-Translation. Put the configuration in /home/u231015/freme-configs/broker-dev-private.properties on freme-dev because it should not be public. There should be separate parameters for e-Translation and e-Terminology. The config parameter does have no default value. When the parameter is not set then no authentication header should be send. 2) add documentation about the authentication token parameter and the parameter to configure both API endpoints to http://api-dev.freme-project.eu/doc/knowledge-base/freme-for-sysadmins/e-services.html .

jnehring commented 7 years ago

Please do not add the configuration to /home/u231015/freme-configs/broker-dev-private.properties but to

bgrusdt commented 7 years ago

Here is what I added to the documentation. @jnehring is this ok?

jnehring commented 7 years ago

Looks good. The functionality is implemented.