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

Question

Question

pass credentials to LF forms

asked on March 31, 2017

a customer has LF forms (Not the forms portal).

He needs that users can open a specific form without the need to enter a username and a password. so how possible to pass the credentials to LF Forms from their third party app? possible as in webaccess and weblink?

NB: Dont want to use AD

0 0

Replies

replied on March 31, 2017

Since Forms 10.1, you can use the login WebAPI which allow you to post username and password to do authentication.

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

1 0
replied on September 13, 2020

Hi Xiuhong Xiang,

Can you explain how to implement this?

0 0
replied on September 13, 2020

You can send a request from the third application using the API with the username and password and get the cookie named ".LFFORMSAUTH" from the request response then send that cookie value in the following requests.

0 0
replied on March 31, 2017

Hello,

Forms actually does support URL parameters, so for instance if you have a variable named UserId in the form http://hostName/Forms/Form/myForm, you can automatically supply that using http://hostName/Forms/Form/myForm?UserId=1234 for example.

If your solution uses cookies you can access those as a semicolon-delimited string with the JavaScript document.cookie, but I would personally recommend against this as it would depend on the end user having cookies enabled in the browser, which may or may not be appropriate to take as a given.

Regards

Clarification: This is if you need the user ID to fill a field in a form; if you are actually trying to log into Forms at the same time, there's no out-of-the-box method for automatic login, as it would depend on what type of authentication Forms is configured to use (LFS vs LFDS). If a user is not currently logged into Forms and attempts to navigate to such a URL, they will be prompted to log into Forms and then will be redirected to the form with the pre-populated User ID field.

0 0
replied on July 30, 2020

Hi Dory,

Did you ever find a solution to this?

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

Sign in to reply to this post.