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

Request: allow api key to be used in place of session token #184

Open
SnowySailor opened this issue May 1, 2020 · 1 comment
Open

Request: allow api key to be used in place of session token #184

SnowySailor opened this issue May 1, 2020 · 1 comment

Comments

@SnowySailor
Copy link

SnowySailor commented May 1, 2020

Managing a session token in a long-running application can present issues. What if the session times out? What if the session is invalidated by the server? There are many things regarding the session that we cannot control as API consumers, so if a session somehow stops working we need to write code that can request a new one and handle that. This can add a lot of complexity that I'm sure many people want to avoid. It is possible to just request a new session every time you make a request, but that is not ideal because it adds an additional request into the process and consumes some time and network resources.

Instead of requiring the session in most of the POST bodies, I propose that the API accepts the apikey as a valid form of authentication. In order to get a session in the first place, all one needs to do is provide their API key and they are given back a session. It doesn't seem like accepting the apikey would decrease security and it would make writing code that interacts with the API much simpler and less error-prone.

@dstndstn
Copy link
Owner

dstndstn commented May 4, 2020

If I recall correctly, sessions last for a week.

Still, this seems like a reasonable request (especially now that we have https for nova). But I don't foresee having time to implement it in the near future.

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

No branches or pull requests

2 participants