You are viewing limited content. For full access, please sign in.

Question

Question

opening a form directly from asp.net

asked on September 1, 2016

hi all,

 

my objective is to open a laserfiche form that have let's say the following link (http://localhost/Forms/npg7 ), but when i use the method post(with action="http://localhost/Forms/Account/Login? ") from the asp form it redirects me to the login page of the laserfiche e-forms and then i do not logout , i change the action to the link of the form, and then i go the form itself ...if i dont log in previously i go to the login page where i have to sign in and then access the required form.

 

so to summarize : from a web portal i want to sign in to eforms and access a required form in the same time 

 

can it be done ? if yes , how ?? i am working asp.net

 

please advise,

thank you

0 0

Replies

replied on September 2, 2016

Forms 10.1 has a login WebAPI which you can post username and password to do authentication in a request:

Url:

http(s)://SERVER_NAME/Forms/webapi/v1/Authentication/LogIn

Request method:

POST

Payload:

{username: USER_NAME, password: PASSWORD}

Expected return status:

204 No Content with Cookies set

0 0
replied on February 1, 2021

Hi Xiang,

Is there updated information on how to do this with MFA enabled? 

-Ben

0 0
replied on December 29, 2021

Did you ever get this to work?

I am following the above recommendation but getting the following error:

 

*************************

 ERROR MESSAGE              

*************************

Response: StatusCode: 400, ReasonPhrase: 'Bad Request', Version: 1.1, Content: System.Net.Http.HttpConnectionResponseContent, Headers:

{

  Cache-Control: no-cache

  Pragma: no-cache

  Server: Microsoft-IIS/10.0

  X-UA-Compatible: IE=edge

  P3P: CP="Laserfiche does not have a P3P policy."

  Date: Mon, 27 Dec 2021 22:01:46 GMT

  Content-Type: application/json; charset=utf-8

  Expires: -1

  Content-Length: 227

}

{"errors":[{"status":400,"code":"FailedToAuthenticateToServer","message":"An error occurred during sign-in. Please try again or, if the issue persists, contact your system administrator. [LFF17-FailedToAuthenticateToServer]"}]}

 

Thank you in advance for your help.

p

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.