-
Notifications
You must be signed in to change notification settings - Fork 4
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
How to modify the redirect_uri? #18
Comments
You should be able to use: OpenIDCConfig redirect_uri=<url> where the Unfortunately resolving the Provider Discovery document from a URL is not yet implemented. Apologies for the lack of documentation: it should be improved over time, your help is welcome |
Thanks for your input. After adding OpenIDCConfig redirect_uri=, default redirect uri got changed and also recieved the response from SSO client. However,after receiving the successful response, it is again forwarding the request to same redirect uri instead of original url (proxy pass url). Can you suggest the configuration change that is required to forward the request back to original url. |
the redirect back from the OP is supposed to go through the call back URL (=redirect URI) first; after processing the authentication response it will then redirect back a 2nd time to the original URL I'd need a full server debug log to analyze what is happening and why you're not getting the 2nd redirect |
- see OpenIDC/ngx_openidc_module#18 - bump to 1.5.1dev Signed-off-by: Hans Zandbelt <[email protected]>
Please find the server logs below. Here after authentication response, it is redirecting back to redirect URL /uri. But my proxy_pass url which is mentioned in nginx.conf is different ( proxy_pass http://logs/headers$is_args$args) 2023/04/14 14:27:10 [error] 196252#0: *13762 open() "/usr/share/nginx/html/logs" failed (2: No such file or directory), client: xx.xxx.xxx.xxx, |
you need to make sure that the "/uri" location also has the OIDC primitives set |
After adding ngx_openidc_module, it is defaulting the redirect uri to http:///openid-connect/redirect_uri. Is there a way that we can specify/modify this url in the configuration ?(We can provide this redirect_uri in earlier module lua-resty-openidc). And in place of provider.json (OpenIDCProvider file /etc/nginx/conf.d/provider.json) how to use url endpoint?
The text was updated successfully, but these errors were encountered: