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

Support Canner Enterprise's PAT authentication in VulcanSQL #177

Closed
Tracked by #168
onlyjackfrost opened this issue May 26, 2023 · 0 comments
Closed
Tracked by #168

Support Canner Enterprise's PAT authentication in VulcanSQL #177

onlyjackfrost opened this issue May 26, 2023 · 0 comments
Assignees
Labels

Comments

@onlyjackfrost
Copy link
Contributor

onlyjackfrost commented May 26, 2023

What’s the problem you're trying to solve

Support Canner Enterprise's PAT Authentication method

Describe the solution you’d like

Add a extension authenticator "CannerPATAuthenticator" to restrict only users of Canner Enterprise could access VulcanSQL API

YAML example:

extensions:
  authenticator-canner: @vulcan/module_path

auth:
  enabled: true

authenticator-canner:
  options:
    canner-pat:
        host: string
        port: number
        ssl: boolean

The CannerPATAuthenticator will recognize whether a token is a PAT token with the prefix "Canner-PAT"(case-insensitive) in the authorization header / payload / query string
eg:

Authorization: "Canner-PAT your_canner_pat_token"
@onlyjackfrost onlyjackfrost changed the title Support PAT and AccessToken authentication in VulcanSQL Support Canner Enterprise's PAT and AccessToken authentication in VulcanSQL May 26, 2023
@onlyjackfrost onlyjackfrost changed the title Support Canner Enterprise's PAT and AccessToken authentication in VulcanSQL Support Canner Enterprise's PAT authentication in VulcanSQL Jun 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant