-
Notifications
You must be signed in to change notification settings - Fork 117
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
Problems with using superlogin on apps #52
Comments
That is a strange issue. You should dig deep to figure out what is happening to the bearer header? Is it being suppressed by the client or by the server? Meanwhile check out the source code for my bearer implementation. You can use the But since the |
I believe this answer may solve your issue without modifying any SuperLogin code on client or server. |
The simplest solution is to disable |
Ok, So I followed you advice and looked about the header. I noticed that the authorization wasn't included. So I search about it in the client, and BOUM I found
What does it means ? It's just a problem of endpoints, and I didn't declared any endpoint in the config. So, if you have the same problem as me, you simply have to configure your app like this :
|
@colinskow The query string is absolutely encrypted over an SSL (https) connection. The server might be writing it to log files or something similar but the entire request including the query string, the whole URL, and the type of request like GET or POST is encrypted. |
What's the problem ?
I've some problems using superlogin while creating an app with nodewebkit
I've used superlogin-demo as a base.
But had to overwrite some parts like the logout in routers and the authorization on the profile refresh.
The main problem is that in superlogin, passeport's "bearer" and header.authorization on http request are often used to find the user's session. But it looks like if the server and the client aren't hosted on the same computer, it doesn't work.
Here are some "patch" that I used in my fork :
Commit 1
Commit 2
How to repeat the problem, without Nodewebkit ?
<base href="/">
" in index.html, and remove the use of $location in src/app.js and src/token/token.js (By passing the problem parts as comment)If you try it in localhost on you computer, you should need to add cors to the nodejs server
I'll try to easily upload a .zip with the nodejs server and apache client ready, so it'll be more easy to setup.
I've also tried it with a distant server, to see if it's not the cors and localhost the problem but the same problem occurs.
The text was updated successfully, but these errors were encountered: