-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
CSRF value not present in session cookie in ory hydra login flow #1280
Comments
Seems like you're confusing some of the requests and doing AJAX requests where the browser should be used. Feel free to ask in the chat or community forums for more guidance :) |
Hi, @aeneasr can you please elaborate on the "some of the requests and doing AJAX requests where the browser should be used" what I am trying to do is just a log token which can communicate to ory hydra and return be back with an access token for that. And I have posted this question in the community https://community.ory.sh/t/can-consent-flow-be-done-without-csrf-token/926 |
You're calling the oauth2 auth URL from ajax (thus cors), that's not how OAuth2 works. Check the docs: https://www.ory.sh/docs/hydra/oauth2#the-flow-from-a-user-s-point-of-view Please note that issues are not intended general advice or support but only on technical issues in the project, not the depending implementation. |
Hi, @aeneasr I have gone through the link which you have given and I find that I stuck in the part where after the user login's successfully how to make a call to the |
I figured this out I don't know how I missed this so much embarrassed. |
How did you solve this @KishanRavindran ? I am stuck too. |
Sorry for the late reply meysam81. |
@KishanRavindran , You mean we need to send loginAccept to hydra from back end and the response from Hydra contains redirect url which we need to forward to front end where we open window with the redirect url ? |
Hi All,
I am trying to get an access token value with just login function. I have followed the steps as in this URL (https://github.com/ory/hydra-login-consent-node). I have my login form in angular 6 and backend is node service.
The login service is
I am able to do login and get a login challenge value [(http://localhost:4200/login?login_challenge=546dc17d7cab452a86608ea4d4f2f4db)]
After i enter the login creds and click login it is doing this api call which is
Also when i check the console i found this
which is going in options and not in get call so i tried the above url in postman by doing a get request and this is the response i am getting in postman
Can some one tell me what i am doing wrong here. What i trying to do is to get access token value with just login function. Any help is much appreciated I am been banging at this issue for past three days.
The text was updated successfully, but these errors were encountered: