Skip to content

Redmine Single Sign-On

Overview

This article describes the single sign-on configuration process between Redmine 3.0 and above and BambooCloud IDaaS, achieving unified login for Redmine and single sign-on effects between application systems, providing users with a simpler and more convenient login method and a better user experience.

Authentication Configuration

Redmine Configuration

  1. Install the plugin. This process takes the Linux environment as an example: Plugin address.

  2. Download the plugin to the plugins directory.

    shell
    git clone https://github.com/chrodriguez/redmine_omniauth_saml.git

    shell
    cd redmine_omniauth_saml/
    bundle install
    # Run from the root directory of Redmine
    RAILS_ENV=production bundle exec rake redmine:plugins
  3. Edit authentication parameters and add the saml.rb file to the <redmine_folder>/config/initializers directory.

    There is a sample file sample-saml-initializers.rb in the plugin folder.

    A sample file content is shown below:

    ParameterParameter Description
    assertion_consumer_service_urlRedmine actual address
    issuerRedmine actual address
    single_logout_service_urlRedmine logout address
    idp_sso_target_urlBambooCloud IDaaS login address
    idp_cert_fingerprintCertificate fingerprint
    name_identifier_formatFixed format: urn:oasis:names:tc:SAML:2.0:nameid-format:persistent
    idp_slo_target_urlBambooCloud IDaaS logout address
    name_identifier_valueFixed value: login
    attribute_mappingBambooCloud IDaaS and Redmine attribute mapping relationship:

:login => 'extra.raw_info.username'

:mail => 'extra.raw_info.email'

:firstname => 'extra.raw_info.firstname'

:lastname => 'extra.raw_info.lastname' |

To download BambooCloud IDaaS IDP metadata, visit https://{your_domain}/api/v1/saml2/idp/metadata.

TIP

How to obtain the IDP certificate fingerprint (choose one):

  • Copy the IDP certificate content from BambooCloud IDaaS Enterprise Center - Settings > Service Configuration > IDP Configuration, save it as an idp.cer file, and view the certificate file.

  • Copy the certificate content and calculate the certificate fingerprint through the online tool.

  1. Restart Redmine.

  2. Log in to the Redmine management console to configure the login page display content.

  3. Click Configre to configure the login page display content.

BambooCloud IDaaS Configuration

  1. Add the pre-integrated application Redmine.

  2. Authentication parameter configuration.

    ParameterDescription
    SP Entity IDThe issuer parameter in the saml.rb file
    Assertion Consumer Service URL (ACS URL)The assertion_consumer_service_url parameter in the saml.rb file
    Name IDApplication Account
    NameID FormatThe name_identifier_format in the saml.rb file
    Audience URIThe issuer parameter in the saml.rb file
  3. In the application details, Authentication Configuration > Mapping Configuration, add firstname, lastname, email, and username attributes.

  4. Enter the application details, Authorization Management > Application Account, click the Add Account button, and select the authorized user.

Login Verification

Two login methods are as follows:

  • Initiate authentication from the Redmine login page.

  • Click the application logo in the BambooCloud IDaaS User Center to single sign-on into Redmine.

BambooCloud IDaaS Open Platform