OCA/server-auth

auth_saml : fix saml login with no providers

Closed this issue · 3 comments

Module

auth_saml

Describe the bug

Traceback when trying to access /web/login without auth_oauth module installed

To Reproduce

Affected versions: 15.0

Steps to reproduce the behavior:

  1. Install auth_saml and ensure that auth_oauth is not installed
  2. Configure a saml provider
  3. Go back to web/login
    image

Related commit in which variables were renamed : 0dd018b

Fixed this on my locahost by changing this :

<em
  t-attf-class="d-block text-center text-muted small my-#{len(providers) if len(providers) &lt; 3 else 3}"
>- or -</em>

by

<em
  t-attf-class="d-block text-center text-muted small my-#{len(saml_providers) if len(saml_providers) &lt; 3 else 3}"
>- or -</em>

Reproduced on runboat.

Just checked, that does not apply to 16.0, the merged fix is already present for version 16.0.

I don’t have the right to change the issue, but it should be changed to solved.

THX