Has anyone been able to successfully use authentication options in the webcontent portlet to sign-in to a site requiring a username and password?
We have a customer who would like to provide his customers with access to a site that requires authentication using the POST method. In the webcontent portlet configuration there are options to enable authentication.When enabled, a number of options become available, this is what we have configured:
Authentication Type: FORM
Form Method: POST
In the table below these options, are Fieldnames (which I tracked down using Firebug) and Values as follows:
User Name: user_name | Temp
Password: password | Nimsoft
Saving the configuration and opening the Tab in UMP always results in the webpage opening at the Login screen, so it looks like the authentication information isn't feeding through.
One thing I did notice in the HTML code of the website is that there is a flag action = "/login" set along with the form method.
So everything in the configuration matches the HTML except for the "/login action
<form method="POST" action="/login">
I've included screenshots in the attachments showing the WebContent configuration and the html code of the customer's site using firebug.
I think the action parameter in an HTML form indicates the URL that a submit of the form invokes. Are you using /login in your POST URL? If not, you might want to try it and see what happens.
Hey Keith, thanks for your post, not sure if I understand how to do this, if you mean appending /login to the url, then that does't work.
That was exactly what I meant. Bummer.
What is the URL you are using now? Is /login the only path part of the URL following the hostname? I think that is how it should be.
Does it fail in more or less the same way as the other URL?
You can try it out if you like, the customer has provided us with a temp account.
User is Temp, pass is Nimsoft
When you login, the url redirects to