Forums Mingle API

How do I turn on basic auth in Mingle 2.0?#612

Subscribe to How do I turn on basic auth in Mingle 2.0? 4 post(s), 4 voice(s)

 
Avatar ThomasD 15 post(s) #1550

I must be missing something, but I can’t seem to find a file called, ‘auth_config.ymlfile’ in the config directory.

Am I suppose to add this file?

 
Avatar LiXiao Administrator 21 post(s) #1560

auth_config.yml should be created in the <mingle_data>/config directory after Mingle installled and first user login Mingle.

If there is no one, you can create one for it.

 
Avatar amanking 9 post(s) #1704

I see a test_auth_config.yml and it has the following contents:

password_format: strict
basic_authentication_enabled: true
basic_authentication:
authentication:
ldap_settings: #ldapgroupattribute: #ldapbinduser: #ldapport: #ldapgroupdn: #ldapfilter: #ldapserver: #ldap_map_mail: #ldapobjectclass: #ldapbasedn: #ldap_map_fullname: #ldapgroupobjectclass: #ldapbindpasswd:
cas_settings: #cas_uri: #cas_port: #cas_host:

If we rename this file to auth_config.yml will basic authentication be turned on? Do we need to put values for basic_authentication and authentication? And I’m supposing that basic_authentication_enabled is the property to set and not basic_auth_enabled (the latter is the one mentioned in Help)?

Also after making the changes, do we need to restart the Mingle server?

 
Avatar Badri Janaki... Administrator 25 post(s) #1708

Aman – we support both forms of the key. So both basic_auth_enabled and basic_authentication_enabled should work.

Also the auth_config.yml file is a file that should be in the config subdirectory of your data directory. If you are on windows, this is a directory you configure when you install Mingle for the first time. On a Mac, it is the directory you enter in the application launcher. On a unix installer, this folder should be configured in your mingle.properties file.

The test_auth_config.yml which is present under the config directory of the application does not impact how mingle works.

The following help topic provides more info on how to get started with the API -> http://studios.thoughtworks.com/mingle/2.0.1/help/mingle_api.html

Changes to auth_config.yml will need a server restart.

Forums Mingle API