Skip to content

[feature][MGS][gateway] add support for sso/login path in addition to sso-login #1067

Description

@v-kkhuang

Search before asking

  • I had searched in the issues and found no similar feature requirement.

Problem Description

Is your feature request related to a problem? Please describe.

Currently, the gateway module only supports the sso-login path for SSO authentication. Some systems or configurations may prefer the standard RESTful path format sso/login, but this is not currently supported, limiting integration flexibility.

Description

A short description of your feature

Add support for the sso/login path in the gateway module to provide SSO authentication through both sso-login and sso/login paths, maintaining backward compatibility.

Use case

Describe the use case of your feature request and the solution you'd like.

Systems that integrate with Linkis gateway for SSO authentication can now use the more standard RESTful path format sso/login while maintaining compatibility with existing systems using sso-login.

Solutions

Describe alternatives you've considered.

  • Alternative 1: Replace sso-login with sso/login entirely - This would break backward compatibility.
  • Alternative 2: Support both paths (chosen) - This maintains backward compatibility while providing the new format.

Anything else

Additional context or screenshots about the feature request.

The change is minimal and only affects the path matching logic in the UserRestful class, allowing both path formats to route to the same SSO login handler.

Are you willing to submit a PR?

  • Yes I am willing to submit a PR!

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions