Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

SSO rest API for redirect is loaded if no SSO is configured #15402

@dklimpel

Description

@dklimpel

Description

Rest api is loaded and can be called if no SSO is configured.

API returns an error "Homeserver not configured for SSO." But I can not see why the server needs to be run this api.

Steps to reproduce

  • setup a new homeserver
  • request /_matrix/client/r0/login/sso/redirect?redirectUrl=www.example.org

Homeserver

another

Synapse Version

1.78.0

Installation Method

Docker (matrixdotorg/synapse)

Database

PostgreSQL

Workers

Single process

Platform

K8s

Configuration

only password login

Relevant log output

None

Anything else that would be useful to know?

Probably there could be a check here for SSO capabilities:

SsoRedirectServlet(hs).register(http_server)

Similar to:

if self.cas_enabled or self.saml2_enabled or self.oidc_enabled:

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-SSOSingle Sign-On (maybe OIDC)S-TolerableMinor significance, cosmetic issues, low or no impact to users.T-EnhancementNew features, changes in functionality, improvements in performance, or user-facing enhancements.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions