-
Notifications
You must be signed in to change notification settings - Fork 82
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
ConvertFromBase64String throw an error - Version 0.4 #191
Comments
Hi @Cyberlane :) What's interesting here is that Is there any chance you could use your browser dev tools (like Google Chrome dev tools) or Fiddler to see the traffic and see the cookie that is getting sent across the wire? |
This doesn't do anything. You still need to return a view or redirect. Either redirect with the login. Or login without redirect, and return a view, but you will need to manually attach the cookies to the result. |
@PureKrome I have both an |
Nope .. i don't really need those values. I'm just clutching at straws a bit here, because it feels like a weird Nancy issue, but I don't want to blame nancy cause that's been pretty rock solid, etc. Does @phillip-haydon 's reply, help you at all? |
You're on 1.4.0 of Nancy which has a bug in the cookie code, see Nancy/2093 and Nancy/2094 for more info. In short update to 1.4.2 which also has a memory leak fix. |
@xt0rted I upgraded to @PureKrome I can add the manual redirect, but surely adding a redirect will not fix a bug in the cookie storage? |
If you login without redirect then the response never has the author cookie. You can return a view but you need to add the cookies yourself. |
Ah... I assumed this was all handled automatically by the code I got off of your blog @phillip-haydon |
Unfortunately |
@Cyberlane you shouldn't get getting a 500 error from Google ... are you still getting that? Also, i was under the impression that Nancy handles all the cookie stuff for you , auto-magically. assuming you have wired up the correct middleware. |
@PureKrome the 500 is not on the Google side, it's on my application's side and only after I have successfully logged in. |
The packages I have installed
I login with Google, and it redirects me back just fine (woo)!
Next it hits this bit of code in the
CallbackProvider
just finebut my web browser remains on a blank page of:
/authentication/authenticatecallback?providerkey=google…blahblahblah
I open another tab and try access an admin page (thinking maybe the Redirect just failed), but am faced with an error 500!
The error is coming from the SimpleAuthentication code inside the
DecryptAndValidateAuthenticationCookie
method, when trying to executeConvertFromBase64String()
on the value stored in the cookie.This happens 100% of the time for me, I am curious if you have any ideas what it may be?
The text was updated successfully, but these errors were encountered: