Skip to content

Login auto-redirec on single authenticationProviders missing #11064

@offtherailz

Description

@offtherailz

Description

As for documentation

If only one OpenID entry is present in authenticationProviders (and no geostore entry available), clicking on the login entry in the login menu will redirect directly to the OpenID provider login page configured, without showing the login window. If more than one entry is present in the authenticationProviders list, the the login window will be provided in the MapStore UI to be able choose the desired one for the authentication.

But if we configure only one openID entry, the login popup appears anyway.

How to reproduce

  • Configure in localConfig.json the following
 {
        "type": "openID",
        "provider": "oidc",
        "title": "My custom identity provider"
      },
  • Open mapstore homepage and click on login

Expected Result

You are redirected to the login page

Current Result

The popup appears with login link

Image

  • Not browser related
Browser info (use this site: https://www.whatsmybrowser.org/ for non expert users)
Browser Affected Version
Internet Explorer
Edge
Chrome
Firefox
Safari

Other useful information

Metadata

Metadata

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions