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] Session support token communication not only using cookie. #1200

Closed
zheeeng opened this issue Feb 19, 2019 · 2 comments
Closed

[Request] Session support token communication not only using cookie. #1200

zheeeng opened this issue Feb 19, 2019 · 2 comments

Comments

@zheeeng
Copy link

zheeeng commented Feb 19, 2019

For some mobile application, it doesn't recognize set-cookie response header and the cookie communication has the CORS risk. I personally prefer using the token as the authentication ticket and the server auth validator check a specific request header, e.g. Authentication, likes the JWT does.

It is better that we can decide to use cookie or token to communicate with clients.

@zheeeng zheeeng changed the title cloud ld [Request] Session support token communication not only using cookie. Feb 19, 2019
@kataras
Copy link
Owner

kataras commented Feb 22, 2019

I agree, we have a plan in the roadmap for authentication and verification of API calls. To be honest that was ready for the current release, I've done it and tested it but I had to manage a lot of external products the last months, so it was posponded and removed from the release. Will be here on the upcoming release but this has nothing to do with Sessions. You can already use the current sessions + JWT without any issue, we do it everywhere.

@kataras
Copy link
Owner

kataras commented Feb 23, 2019

@zheeeng Forgot to mention that you can check the sessions/Config.Encode/Decode of cookie for more security, we have examples as well. There you can implement things like aes.

@kataras kataras added this to the v11.2.0 milestone Jul 2, 2019
kataras added a commit that referenced this issue Jul 2, 2019
…fication. With Examples and Tests.

Relative to this one as well: #1200
@kataras kataras closed this as completed Jul 23, 2019
github-actions bot pushed a commit to goproxies/github.com-kataras-iris that referenced this issue Jul 27, 2020
…fication. With Examples and Tests.

Relative to this one as well: kataras#1200


Former-commit-id: 3a29e7398b7fdeb9b48a118b742d419d5681d56b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants