I have uploaded successfully my project on the RHEL7 server and it's running using the Nginx web server but when I am trying to login to my user then is throwing a Forbidden CSRF token. MY get request is working but not working POST request how do I solve it?
Related
I'm trying to do django authentication with JWT in my django+react app. I'm using part 1 of this tutorial: https://hackernoon.com/110percent-complete-jwt-authentication-with-django-and-react-2020-iejq34ta
Everything works fine when I use cURL in terminal to get access to my API, but when I run server in my browser I'm still getting
What does this behaviour mean?
In my django project I have added google authentication API for user login and have deployed that project in heroku server[https://artgreeh.herokuapp.com]. I tried login through Google it worked with no issue in some machine but it's showing error in other machine. error image. In the google I have given redirect url-"https://artgreeh.herokuapp.com/accounts/google/login/callback/". If something is wrong with redirect url then it should not work in any device but it's working in some device.
I replaced "https" with "http" in the redirect url and it worked.
In my Asp.Net Core 2.1 Web Api + Angular App setup, I am trying to reset user password token using identity framework. Token is generated by calling GeneratePasswordResetTokenAsync(), emailed and request is sent back from client, verified by ResetPasswordAsync. I have checked that the two tokens are same but still ResetPasswordAsync fails with Invalid Token result.
I am using PG SQL as database, and JWT for Authentication, The SecurityStamp is also not null, my client app is written in angular and served from a different web server than the one serving the web api. However when testing on local machine there is no problem.
I have enabled CORS in web api allowing any origin, however I have noticed that my client request contain
Origin: https://my-domain.com
Referer: https://my-domain.com/myangularapp
Please let me know if any info is missing, any help will be appreciated.
I am using Python social auth for login with Facebook and Google with Django 1.8.
It is working fine on localhost, but when I deployed it on a production server it is not working. When I click on a login with Facebook or Google button, the browser goes into a waiting state. After some time it gives me a 502 Bad Gateway error. I'm using gunicorn with nginx on the production server.
Try configure your Facebook App with the URL of your website
I have an Web application that require users to verify their email account after registration. It works when we run it locally and current server.
However when we migrate it to the a staging server, the verification brings the below error.
POST http://www.XXXXXXXXX.org/api/account/verify 403 (Forbidden)
Can i ask if anyone have any idea on this?
Thank you!
Jo