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

add support to query string parameter tokens #10

Open
rrd108 opened this issue Mar 4, 2024 · 0 comments
Open

add support to query string parameter tokens #10

rrd108 opened this issue Mar 4, 2024 · 0 comments
Labels
question Further information is requested

Comments

@rrd108
Copy link
Owner

rrd108 commented Mar 4, 2024

Seeking feedback

Query String Tokens

Advantages

  • Simplicity: Including the token in the query string is easier to implement, especially for simple API calls.
  • Debugging: Tokens in the query string are easier to see and debug in browser developer tools.

Disadvantages

  • Security: The biggest drawback is security. Tokens in the query string are visible in the URL, making them susceptible to:
  • Interception: An attacker could intercept the token in transit if the communication is not encrypted (HTTPS).
  • Accidental exposure: The token could be accidentally leaked in server logs, browser history, or shared URLs.
  • Referrer leakage: If the token is included in a URL shared as a referrer, it might be exposed to unintended parties.

Token Headers

Advantages

  • Security: Headers are generally considered more secure than query strings because they are not logged in server logs and are not visible in the URL. This is especially important for sensitive tokens like API keys.
  • Standardization: The Authorization header is the standard way to send authentication credentials according to the HTTP specification.
  • Less error-prone: Including the token in the header avoids the need to manually construct the URL with the token appended.

Disadvantages

  • Complexity: Implementing header-based authentication can be slightly more complex compared to simply adding the token to the URL.
@rrd108 rrd108 added the question Further information is requested label Mar 4, 2024
@rrd108 rrd108 changed the title support token as query string parameter add support to query string parameter tokens Mar 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant