molgenis
9.0
9.0
  • Introduction
  • What is MOLGENIS
  • Try out MOLGENIS
  • Quick start (docker)
  • Find, view, query
    • Using the navigator
    • Using the search-all
    • Using the dataexplorer
    • Setup authentication
  • Data management
    • EMX format
    • Using expressions in EMX
    • Quickly import data
    • Advanced data import
    • Modify metadata
    • Questionnaires
    • Downloading data
    • MagmaScript expressions (mapping service)
  • Access control
    • Users
    • Groups and roles
    • Finegrained permissions
  • Data processing
    • Scripts
    • R
    • Schedule jobs
  • Configuration
    • Settings
    • Customize MOLGENIS
    • Localization
    • Apps in MOLGENIS
    • Creating themes
    • Migration
    • Auditing
  • Interoperability
    • Swagger specification
    • Data API
    • Metadata API
    • REST api v1
    • REST api v2
    • Files api
    • Import api
    • Permission api
    • Python-api client
    • R-api client
    • Beacon api
    • FAIR api
    • RSQL operators
  • For developers
    • Developing MOLGENIS
    • Developing frontend in MOLGENIS
    • Developing Apps in MOLGENIS
    • Using an IDE (Intellij)
    • Technologies
    • Dynamic decorators
    • Running the integration tests
    • Jobs
    • Security
  • Deploy MOLGENIS
    • Using RPM
    • Technical Migration
Powered by GitBook
On this page
  • Application settings
  • ReCaptcha settings
  • Mail settings
  • Authentication settings
  • Form settings
  1. Configuration

Settings

PreviousConfigurationNextCustomize MOLGENIS

Last updated 3 years ago

There are different items where you can configure settings in MOLGENIS:

  • OpenCPU settings

Application settings

There are a three main sections in the application settings.

  • General settings

  • Tracking settings

ReCaptcha settings

ReCaptcha is a service currently only provided by Google. It basically works on determining a BOT-score. The value of this score is based on the request send to the server. The request is validated based on host-key comparison and other variables which are part of the inner workings of reCaptcha. To set it up you need to configure an account on (Check ). Secondly you need to define properties in MOLGENIS (please check: ).

Adding domain at reCaptcha

Configure reCaptcha in MOLGENIS

Filling out the settings in the Application settings in MOLGENIS.

You have to configure 6 properties:

  • Enable reCaptcha: If set to true then the reCaptcha is enabled in MOLGENIS

  • Verification URI: Fires a request for verification if the user is a BOT or not

  • BOT threshold: A number between 0.0 and 1.0. 1.0 is most likely a human and 0.0 is most likely a BOT. The threshold is compare to the score that reCaptcha calculates.

Mail settings

You should configure an email server to interact with your users for things like lost password recovery. You can find the mail settings in the Admin menu, under Settings. At the top of the page, type "Mail settings" into the selection box.

For backwards compatibility, the default settings are filled with the values provided in molgenis-server.properties under the keys mail.username and mail.password, but the values provided here will override those settings.

For basic configuration, you only need to provide the username and password fields with a valid Gmail username and password. But you may also specify a different (non-Gmail) SMTP server.

If you've filled in a username and password, the settings will be validated when you save them, by making a connection with the mail server. If you do not want the settings to be tested at all, you can set testConnection to false.

JavaMail properties

By default, the following low-level JavaMail properties, needed to interact with the Gmail SMTP server, are set:

mail.smtp.starttls.enable=true
mail.smtp.quitwait=false
  • IMAP

  • POP3

  • SMTP this is what we use

E.g. Add an entity with key mail.debug and value true if you'd like to debug the mail dialog with the server.

Mail server without authentication

When you want to setup a mail server without authentication you need to add the following properties:

mail.smtp.auth=false
mail.from=noreply@domain.ext

You can add them by entering them in the mail property table. Or override them in the environment or molgenis-server.properties.

Environment:

#!/bin/bash

export mail.smtp.auth=false
export mail.from=noreply@domain.ext

molgenis-server.properties:

mail.smtp.auth=false
mail.from=noreply@domain.ext

You need to add the mail.from property otherwise the server resolves to root@localhost.

note When you start the server clean it will populate the database with the environment variables. After that the database is your configuration truth.

Authentication settings

When you are a superuser in MOLGENIS, you can configure three authentication methods:

  • Username/password signin (default)

  • Google-signin

  • Token-authentication

Username/password signin (default) In the App Settings:

  • Set user-moderation to user can sign up

  • Set two factor authentication:

    • Disabled: users CAN NOT use two-factor-authentication

    • Enforced: users MUST use two-factor-authentication

    • Enabled: users CAN use two-factor-authentication

prompted: The default setting for tow-factor-authentication for a fresh installation "Disabled". When two-factor-authentication is "Enabled" it is default disabled for the users.

Google-signin The Google-signin setting is used to enable the possibility for users to login with their Google-account.

Token-authentication No specific superuser settings are necessary for the implementation of token-authentication.

Form settings

In forms, some attributes are displayed as radio button groups (categoricals, enums and booleans). If these attributes are also nullable, an extra value 'N/A' is added to their radio button groups. This makes it possible to "deselect" them. You can turn this feature on/off in the Form settings for each attribute type:

  • Add null option to nullable enums

  • Add null option to nullable booleans

  • Add null option to nullable categoricals

You have to configure a domain at . If you follow the this you can register your domain to use reCaptcha.

ReCaptcha secret: Can be obtained by configuring your domain in

ReCaptcha site: Can be obtained by configuring your domain in

note: Make sure you have your configured as well.

You may override these properties or add additional properties and override these defaults by adding entities to the JavaMailProperty repository in the Data Explorer. Each key may be provided at most once. For a list of valid keys, check and per protocol:

ReCaptcha
documentation
ReCaptcha from Google
ReCaptcha from Google
https://javamail.java.net/nonav/docs/api/
https://javaee.github.io/javamail/docs/api/com/sun/mail/imap/package-summary.html
https://javaee.github.io/javamail/docs/api/com/sun/mail/pop3/package-summary.html
https://javaee.github.io/javamail/docs/api/com/sun/mail/smtp/package-summary.html
Audit settings
DataExplorer settings
ReCaptcha
Application settings
Authentication settings
Mail settings
Form settings
ReCaptcha settings
Adding a domain at reCaptcha
Configure reCaptcha in MOLGENIS
Mail settings