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 rest mode and cookie mode at the same time #73

Open
dvc94ch opened this issue Nov 25, 2023 · 1 comment
Open

support rest mode and cookie mode at the same time #73

dvc94ch opened this issue Nov 25, 2023 · 1 comment

Comments

@dvc94ch
Copy link

dvc94ch commented Nov 25, 2023

I have a web interface and would like to add a cli tool too. Currently the user registers or signs in and gets a cookie. I would like to add a page create api token which creates a permanent until revoked session id and support using rest mode with these tokens. Is this a common use case or is it already possible?

@genusistimelord
Copy link
Member

currently we do support rest Header tokens in the latest version. But we don't not support rest header tokens and Cookies at the same time currently. Also we do not support Forever Session Tokens at this time either.We never added them since they can be a security risk. instead its probably more advisable to set the Sessions to a set time frame and upon a renewal time to renew the ID. this would enhance Security upon the Server side. just its more inconvenient to the API users.It however is more worth thinking about this style to enforce a relogin via API to get new Session Tokens ever once in a while and have the end user of the API keep track of these Tokens and the timing.

Other than that if it is something needed Feel free to request it OR make a PR to add this.

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