Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to use non-default auth #616

Open
vaultah opened this issue Feb 11, 2025 · 0 comments
Open

Unable to use non-default auth #616

vaultah opened this issue Feb 11, 2025 · 0 comments

Comments

@vaultah
Copy link
Contributor

vaultah commented Feb 11, 2025

This page says

The default authentication type is set using defaultType: "form" Following types of the authentications are supported.

However, when I set defaultType: "oauth" and provide both oauth and form configuration like

authentication:
  defaultType: "oauth"
  oauth:
    issuer: "..."
    clientId: "..."
    clientSecret: "..."
    tokenEndpoint: "..."
    authorizationEndpoint: "..."
    jwkEndpoint: "..."
    redirectUrl: "..."
    redirectWebUrl: "..."
    userIdField: "..."
    scopes:
      - "..."
  form:
    selfSignKeyPair:
      privateKeyRsa: "..."
      publicKeyRsa: "..."

and open /trino-gateway, I can only see login/password form.

I suspect this is because /loginType returns { "code": 200, "msg": "Ok", "data": "form" }

so the form is rendered instead of a "Sign in with External Authentication" button.

Is this expected? Can I support both form/basic auth and oauth (by default)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant