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

Enhance Project Resources with Request Header Authorization Mechanisms #6

Open
PromiseFru opened this issue Aug 14, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@PromiseFru
Copy link
Member

The project resources currently rely on session-based authorization for protecting access. This works well for browser-based clients.

To enable more flexibility for non-browser clients and integrations, we should add support for request header authorization using Basic Auth.

With Basic Auth, the client would pass an account_sid and auth_token in the request headers rather than relying on a session cookie.

Proposed Solution:

  • Allow a header like Authorization: Basic <base64encoded[account_sid:auth_token]>
  • The account_sid/auth_token can be validated against each user's account
  • Session-based auth would continue to work alongside Basic Auth

Benefits:

This would enable building integrations and non-browser clients while continuing to support the current browser-based flows.

@PromiseFru PromiseFru added the enhancement New feature or request label Aug 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant