-
-
Notifications
You must be signed in to change notification settings - Fork 3
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
HTTP Error 500 while integrating SAML[BUG] #3
Comments
The exsaml code tries to execute a function as DB user In EXide, you could do this by executing Please report back whether that fixes the issue. Also, check spelling of the URIs: Looks like the documentation is lacking the required info to set the "exsaml" user password. That's a bug. And we did not notice because we set DB user passwords anyway using Ansible. Thanks for reporting. |
The org.exist.security.AuthenticationException: Wrong password for user [exsaml] is fixed and able to redirect to IDP endpoint. But the URL: http://localhost:8080/SAML2SP still has the same issue "HTTP ERROR 404 Not Found" Can you take a look? Thanks, |
Edited: This is most likely the problem:
The If you do have code like that in controller.xql, you may need to debug whether that particular code branch gets executed at all. |
I updated the controller.xql file as mentioned in README.md. (: This is the main controller for the web application. It is called from the (:~ ------------------------------------------------------- declare namespace c="http://exist-db.org/xquery/controller"; import module namespace request="http://exist-db.org/xquery/request"; declare function local:get-dashboard() { if (exsaml:is-enabled() and not(exsaml:check-valid-saml-token())) (: if logout, invalidate SAML token :) (: handle SP endpoint to process SAML response in HTTP POST :) else ( When I tried to debug, I am getting the below error "Error running 'controller.xql ': No data source found for name: null" FYI, Please the below config-exsaml.xml configurations used for testing
Thanks, |
Your config looks ok. The controller code you posted is badly formatted ( Check logfile |
Closing this issue. This is not a bug. Suboptimal documentation triggered user deployment errors. Has been fixed by enhancing README.md, will get further improved by some "debugging guide" documentation. Upendar, thanks for your input! Please open a new issue if you hit problems when dealing with SAML responses from your IDP. |
I uploaded the SAML and configured the controller.xql as mentioned in the Plugin on the application. When I tried to run the URL: http://localhost:8080/ and http://localhost:8080/SAML2SP, I am getting below errors.
URL: http://localhost:8080/
Error:
HTTP ERROR 500 javax.servlet.ServletException: javax.servlet.ServletException: An error occurred while processing request to /exist/: exerr:ERROR Authentication failed [at line 145, column 9] In function: exsaml:store-authnreqid(xs:string, xs:string) [114:19:/db/apps/existdb-saml/content/exsaml.xqm] exsaml:build-saml-authnreq() [92:17:/db/apps/existdb-saml/content/exsaml.xqm] exsaml:build-authnreq-redir-url(xs:string) [35:29:/db/apps/existdb-saml/content/exsaml.xqm]
URI: | /exist/
500
javax.servlet.ServletException: javax.servlet.ServletException: An error occurred while processing request to /exist/: exerr:ERROR Authentication failed [at line 145, column 9] In function: exsaml:store-authnreqid(xs:string, xs:string) [114:19:/db/apps/existdb-saml/content/exsaml.xqm] exsaml:build-saml-authnreq() [92:17:/db/apps/existdb-saml/content/exsaml.xqm] exsaml:build-authnreq-redir-url(xs:string) [35:29:/db/apps/existdb-saml/content/exsaml.xqm]
XQueryURLRewrite
javax.servlet.ServletException: javax.servlet.ServletException: An error occurred while processing request to /exist/: exerr:ERROR Authentication failed [at line 145, column 9] In function: exsaml:store-authnreqid(xs:string, xs:string) [114:19:/db/apps/existdb-saml/content/exsaml.xqm] exsaml:build-saml-authnreq() [92:17:/db/apps/existdb-saml/content/exsaml.xqm] exsaml:build-authnreq-redir-url(xs:string) [35:29:/db/apps/existdb-saml/content/exsaml.xqm]
javax.servlet.ServletException: An error occurred while processing request to /exist/: exerr:ERROR Authentication failed [at line 145, column 9] In function: exsaml:store-authnreqid(xs:string, xs:string) [114:19:/db/apps/existdb-saml/content/exsaml.xqm] exsaml:build-saml-authnreq() [92:17:/db/apps/existdb-saml/content/exsaml.xqm] exsaml:build-authnreq-redir-url(xs:string) [35:29:/db/apps/existdb-saml/content/exsaml.xqm]
org.exist.xquery.XPathException: exerr:ERROR Authentication failed [at line 145, column 9] In function: exsaml:store-authnreqid(xs:string, xs:string) [114:19:/db/apps/existdb-saml/content/exsaml.xqm] exsaml:build-saml-authnreq() [92:17:/db/apps/existdb-saml/content/exsaml.xqm] exsaml:build-authnreq-redir-url(xs:string) [35:29:/db/apps/existdb-saml/content/exsaml.xqm]
org.exist.security.AuthenticationException: Wrong password for user [exsaml]
Caused by:
URL: http://localhost:8080/SAML2SP
![image](https://user-images.githubusercontent.com/23036620/123331608-7dfdac80-d50d-11eb-8284-dc074b74fef6.png)
Can anyone let me know what the issues and how to fix them?
Thank you,
Upendar
The text was updated successfully, but these errors were encountered: