[xwiki-users] Can I simulate Registration and Login form?
Hi, I'd like to link xWiki to a WebSite I'm developing. I've to simulate registration and login-in submission xwiki because access to xwiki is already restricted to registered user of my web application, but I can't easily (and fastly) understand interaction between struts and velocity. What I think is to register new xWiki user when they register in my WebSite, and to automatically submit the login form and data when they want to access to xwiki. Can anyone give me a hand? Some Ideas? Thanks! Riccardo Grazioli [email protected] Web Developer ------------------------------------------
Hi Riccardo, riccardo grazioli wrote:
Hi, I'd like to link xWiki to a WebSite I'm developing.
I've to simulate registration and login-in submission xwiki because access to xwiki is already restricted to registered user of my web application, but I can't easily (and fastly) understand interaction between struts and velocity.
What I think is to register new xWiki user when they register in my WebSite, and to automatically submit the login form and data when they want to access to xwiki.
Can anyone give me a hand? Some Ideas?
I'm afraid this won't be easy and/or fast! But, just in case you are not aware of this, have you visited jira.xwiki.org? If you look for "authentication" here http://jira.xwiki.org/jira/secure/QuickSearch.jspa, you will get a bunch of related entries. I think several of them could apply to your case. To the best of my knowledge, XWiki in its current state of development support basic authentication but username and password can not be passed with an URL yet. As a web developer I am sure you will be easy to follow the already created Jira issues! HTH, Ricardo -- Ricardo Rodríguez Your EPEC Network ICT Team
Thanks Ricardo, I'll have a look soon.. but for a more elegant and correct implementation I was thinking to get XWiki source code to emulate XWiki behavior.. The problem is that I've 3days to implement a good solution... :-S What do you think about? And the more... Am I right with XWiki license? I don't want to do bad things.. Thank you! Bye! --------------------------------------- Hi Riccardo, riccardo grazioli wrote:
Hi, I'd like to link xWiki to a WebSite I'm developing.
I've to simulate registration and login-in submission xwiki because access to xwiki is already restricted to registered user of my web application, but I can't easily (and fastly) understand interaction between struts and velocity.
What I think is to register new xWiki user when they register in my WebSite, and to automatically submit the login form and data when they want to access to xwiki.
Can anyone give me a hand? Some Ideas?
I'm afraid this won't be easy and/or fast! But, just in case you are not aware of this, have you visited jira.xwiki.org? If you look for "authentication" here http://jira.xwiki.org/jira/secure/QuickSearch.jspa, you will get a bunch of related entries. I think several of them could apply to your case. To the best of my knowledge, XWiki in its current state of development support basic authentication but username and password can not be passed with an URL yet. As a web developer I am sure you will be easy to follow the already created Jira issues! HTH, Ricardo -- Ricardo Rodríguez Your EPEC Network ICT Team _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
Hi Riccardo,
riccardo grazioli wrote:
Hi, I'd like to link xWiki to a WebSite I'm developing.
I've to simulate registration and login-in submission xwiki because access to xwiki is already restricted to registered user of my web application, but I can't easily (and fastly) understand interaction between struts and velocity.
What I think is to register new xWiki user when they register in my WebSite, and to automatically submit the login form and data when they want to access to xwiki.
Can anyone give me a hand? Some Ideas?
I'm afraid this won't be easy and/or fast! But, just in case you are not aware of this, have you visited jira.xwiki.org?
If you look for "authentication" here http://jira.xwiki.org/jira/secure/QuickSearch.jspa, you will get a bunch of related entries. I think several of them could apply to your case.
To the best of my knowledge, XWiki in its current state of development support basic authentication but username and password can not be passed with an URL yet.
You mean like /xwiki/bin/login/XWiki/XWikiLogin?j_jusername=XWiki.Username&j_password=xxxx ? Because this works :) Jerome.
As a web developer I am sure you will be easy to follow the already created Jira issues!
HTH,
Ricardo
-- Ricardo Rodríguez Your EPEC Network ICT Team
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
Hi Jerome, really really thanks! Yesterday I take all parameters of login form but then I did'n not try to call the page with a normal URL+QueryString... Sometimes the easy way is the solutions... Now I've tryed to register by same method... and it WORKS fine!!! ...like: /xwiki/bin/register/XWiki/Register?template=XWiki.XwikiUserTemplate®ister=1®ister_first_name=XXX®ister_last_name=XXX&xwikiname=XXXXXX®ister_password=YYYY®ister2_password=YYYY®ister_email=YYYY@YYYY Thanks a lot! Bye, Riccardo. ---------------------------------------
Hi Riccardo,
riccardo grazioli wrote:
Hi, I'd like to link xWiki to a WebSite I'm developing.
I've to simulate registration and login-in submission xwiki because access to xwiki is already restricted to registered user of my web application, but I can't easily (and fastly) understand interaction between struts and velocity.
What I think is to register new xWiki user when they register in my WebSite, and to automatically submit the login form and data when they want to access to xwiki.
Can anyone give me a hand? Some Ideas?
I'm afraid this won't be easy and/or fast! But, just in case you are not aware of this, have you visited jira.xwiki.org?
If you look for "authentication" here http://jira.xwiki.org/jira/secure/QuickSearch.jspa, you will get a bunch of related entries. I think several of them could apply to your case.
To the best of my knowledge, XWiki in its current state of development support basic authentication but username and password can not be passed with an URL yet.
You mean like /xwiki/bin/login/XWiki/XWikiLogin?j_jusername=XWiki.Username&j_password=xxxx ? Because this works :) Jerome.
As a web developer I am sure you will be easy to follow the already created Jira issues!
HTH,
Ricardo
-- Ricardo Rodríguez Your EPEC Network ICT Team
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
riccardo grazioli wrote:
Hi Jerome, really really thanks! Yesterday I take all parameters of login form but then I did'n not try to call the page with a normal URL+QueryString... Sometimes the easy way is the solutions...
Now I've tryed to register by same method... and it WORKS fine!!! ...like:
/xwiki/bin/register/XWiki/Register?template=XWiki.XwikiUserTemplate®ister=1®ister_first_name=XXX®ister_last_name=XXX&xwikiname=XXXXXX®ister_password=YYYY®ister2_password=YYYY®ister_email=YYYY@YYYY
Thanks a lot!
Bye, Riccardo.
Thanks God there are people out there with a perfect understanding about XWiki!!! :-) I am not able yet to get the point, I am afraid :-( And I am afraid I am messing things (URLs, agents, browsers, authentication, authorization,...) :-( and what I am trying to do is not what Riccardo was asking for. Please, allow me to put an example. How do you pass username and password in the URL to access this document? http://xepecnet.environmentalchange.net/xwiki/bin/view/ICT/RGraphicSample01?... username dummy, password dummy is has view rights on it. It will be great if you could help me with this issue. Thank you so much. Best, Ricardo -- Ricardo Rodríguez Your EPEC Network ICT Team
riccardo grazioli wrote:
Hi Jerome, really really thanks! Yesterday I take all parameters of login form but then I did'n not try to call the page with a normal URL+QueryString... Sometimes the easy way is the solutions...
Now I've tryed to register by same method... and it WORKS fine!!! ...like:
/xwiki/bin/register/XWiki/Register?template=XWiki.XwikiUserTemplate®ister=1®ister_first_name=XXX®ister_last_name=XXX&xwikiname=XXXXXX®ister_password=YYYY®ister2_password=YYYY®ister_email=YYYY@YYYY
Thanks a lot!
Bye, Riccardo.
Thanks God there are people out there with a perfect understanding about XWiki!!! :-)
I am not able yet to get the point, I am afraid :-( And I am afraid I am messing things (URLs, agents, browsers, authentication, authorization,...) :-( and what I am trying to do is not what Riccardo was asking for.
Please, allow me to put an example. How do you pass username and password in the URL to access this document?
http://xepecnet.environmentalchange.net/xwiki/bin/view/ICT/RGraphicSample01?...
Succeeded with this : http://xepecnet.environmentalchange.net/xwiki/bin/loginsubmit/XWiki/XWikiLog... Regards, Jerome.
username dummy, password dummy is has view rights on it.
It will be great if you could help me with this issue. Thank you so much.
Best,
Ricardo
-- Ricardo Rodríguez Your EPEC Network ICT Team
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
Jerome Velociter wrote:
Succeeded with this : http://xepecnet.environmentalchange.net/xwiki/bin/loginsubmit/XWiki/XWikiLog...
Regards, Jerome.
Thanks, thanks, thanks! You have today a happy Riccardo and a happy Ricardo! :-) Cheers, Ricardo -- Ricardo Rodríguez Your EPEC Network ICT Team
Basically, a happy rRicccardo if I understand well ;-) On Fri, Apr 11, 2008 at 12:08 PM, [Ricardo Rodriguez] Your EPEC Network ICT Team <[email protected]> wrote:
Jerome Velociter wrote:
Succeeded with this :
http://xepecnet.environmentalchange.net/xwiki/bin/loginsubmit/XWiki/XWikiLog...
Regards, Jerome.
Thanks, thanks, thanks! You have today a happy Riccardo and a happy Ricardo! :-)
Cheers,
Ricardo
-- Ricardo Rodríguez Your EPEC Network ICT Team
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
Jerome Velociter wrote:
Succeeded with this : http://xepecnet.environmentalchange.net/xwiki/bin/loginsubmit/XWiki/XWikiLog...
Regards, Jerome.
Thanks, thanks, thanks! You have today a happy Riccardo and a happy Ricardo! :-)
I'm very glad to hear that :) A while ago I started documenting XWiki URL and forms mappings to make it easier finding out this kind of URLs : http://dev.xwiki.org/xwiki/bin/view/Drafts/XWikiURLMappings. I really need to find some time to complete this draft. Regards, Jerome.
Cheers,
Ricardo
-- Ricardo Rodríguez Your EPEC Network ICT Team
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
Yes, I'm very happy!! I was afraid to have to do a bad week-end solving and implementing this Issue...!! Thanks to all!!! Riccardo. ---------------------------------> Jerome Velociter wrote:
Succeeded with this : http://xepecnet.environmentalchange.net/xwiki/bin/loginsubmit/XWiki/XWikiLog...
Regards, Jerome.
Thanks, thanks, thanks! You have today a happy Riccardo and a happy Ricardo! :-)
I'm very glad to hear that :) A while ago I started documenting XWiki URL and forms mappings to make it easier finding out this kind of URLs : http://dev.xwiki.org/xwiki/bin/view/Drafts/XWikiURLMappings. I really need to find some time to complete this draft. Regards, Jerome.
Cheers,
Ricardo
-- Ricardo Rodríguez Your EPEC Network ICT Team
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
Jerome Velociter wrote:
I'm very glad to hear that :) A while ago I started documenting XWiki URL and forms mappings to make it easier finding out this kind of URLs : http://dev.xwiki.org/xwiki/bin/view/Drafts/XWikiURLMappings. I really need to find some time to complete this draft.
But my happiness is frequently killed by my ambition :-) As for this document, please, how this relate, if in anyway, with REST and XMLRPC? I am just to create my own mental map about how XWiki is constructed and how will be the future... As for the proposed link, it access the document without a glitch, but it fails to be the option I need as parameter for a R function. Of course to deal with this R function is an option, so it is not only a XWiki issue, but I am guessing if I explain you the situation it will be possible to find an option within XWiki itself. Please, look at this: This R command works fine if unregistered users are allowed to view ICT.RGraphicSample01... source("http://xepecnet.environmentalchange.net/xwiki/bin/loginsubmit/XWiki/XWikiLog...") If I prevent unregisterd users to view this file, here the error...
source("http://xepecnet.environmentalchange.net/xwiki/bin/loginsubmit/XWiki/XWikiLog...") Error en file(file, "r", encoding = encoding) : no fue posible abrir la conexión Además: Warning message: In file(file, "r", encoding = encoding) : no fue posible abrir: el status HTTP fue '401 Unauthorized'
Even though part of the message is in Spanish, I thing it is clear with a 401 error http://xepecnet.environmentalchange.net/xwiki/bin/loginsubmit/XWiki/XWikiLog... Accesses correctly the document in any case. Could you figure out why? My happiness will be almost complete... until I move to the next issue :-) Thanks for your time and your help! Ricardo -- Ricardo Rodríguez Your EPEC Network ICT Team
participants (4)
-
[Ricardo Rodriguez] Your EPEC Network ICT Team -
Guillaume Lerouge -
Jerome Velociter -
riccardo grazioli