-
-
Notifications
You must be signed in to change notification settings - Fork 253
Question about redirect_uri_path #43
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
Comments
Can you paste a browser trace and a server debug log? |
everything seems to be ok: the
assuming that that line 189 says something like:
it looks like a local config error where |
Here is the actual tail of the server-debug. That error was due to some typos on that line. Any pointers on where to start in getting this fixed? I am thinking of Re-redirect if the url has /secured?code..... Do you think this will work?
|
it would be interesting to see a full server debug log and check that the request to |
http://stackoverflow.com/questions/42940166/how-do-i-redirect-back-to-the-home-page-after-authentication/42976054?noredirect=1#comment73109697_42976054 suggests that there may be an issue with session management; @bungle may have some insights on what could cause the "alternating" behavior described in the stackoverflow comment |
I cannot help if I cannot see full config / code. Please note that @zandbelt, one thing I see as a small problem starts here: After that the return nil, err, session.data.original_url or return ngx.redirect(session.data.original_url) But you never check e.g. session presence with |
@bungle I am also suspecting the problem at the same line at session.open . I am just trying to execute a simple application nothing special, but I will try to get you the full config to debug. |
may address #43; thanks @venkatmarepalli and @bungle Signed-off-by: Hans Zandbelt <[email protected]>
the commit above may avoid the crash; it does not explain or solve the root problem of the non-existent session |
@zandbelt great. For the other question, I think I need more background information. There can be many different reasons:
|
my best guess is 4. since that is what I have observed multiple times in the past months; using a minimalized config would typically confirm that the problem is in the configuration/interference with other NINGX configs/routes/functionality; perhaps @venkatmarepalli can give it try with the default minimal config from the README.md |
@venkatmarepalli did you get a chance to test this? |
I had the same "alternating" behavior problem: when the port 80 is served by the same Nginx, you have to click twice on a url to load a page. When I served those pages in apache on port 80, the Nginx openidc works fine. Is it a bad idea to serve the reverse proxy authentication and the website in the same Nginx? My config file :
|
This fixes the alternating behaviour problem: replace the proxy_pass with try_files (for all html files served by Nginx) and proxy_pass to another webserver for the api's ''' |
This issue is similar to issue #7
Once the Authentication provider redirects the page back. The browser with redirect_uri in this case (/secured) with all the scope, state and code parameters doesn't show anything. I am trying to redirect the user to Home page in this case its http://xyz.abc.com:8888. When I manually modify the url by removing the string starting from secured, it works.
Sometimes the redirection happens correctly to the Home page http://xyz.abc.com:8888 without /secured querystring.
Here is the url that is coming back after authentication
Initial Url:
Return Url:
Here is the conf file
Thanks in advance!
The text was updated successfully, but these errors were encountered: