We have a customer who wants to allow the user into the forms inbox and be able to start forms without them having to enter their user credentials. We had this successfully working when Forms and Web Client were not using the LFDS to authenticate by using the WebAPI but now using the LFDS and STS to authenticate this no longer is successful.
They wont use AD so we have to use Directory accounts auser@lfds for example.
When logging into Laserfiche forms using the WEBAPI method Forms successfully created the LFFORMSAUTH cookie. But attempting this with the Community Licenses in LFDSSTS no longer works:
Call made to URL: https://Laserficheformsserver.here.com/forms/webapi/v1/Authentication/LogIn
Data in content:
{username: "fakeusername", password: "1C9AAC6720080228BD"}
Using LFDSSTS to authenticate user into forms rather than applying the users to the Repository.
Error generated in event viewer:
An unexpected error has occurred. [LFF502-UnexpectedError]
Details:
URL: /forms/webapi/v1/Authentication/LogIn
Error: UnexpectedError
Date: 11/27/2019 10:16:06 AM (GMT Standard Time)
HTTP Status Code: 500
Business Process ID: 0
User:
IP: 160.153.235.46
Browser: PostmanRuntime/7.20.1
Business Process Name:
Stack Trace:
Caught exception: Laserfiche.Forms.CommonUtils.Exceptions.LFFormsException
Message: An unexpected error has occurred. [LFF502-UnexpectedError]
Inner exception: System.Web.Http.HttpResponseException
Message: Processing of the HTTP request resulted in an exception. Please see the HTTP response returned by the 'Response' property of this exception for details.
at System.Web.Http.ModelBinding.FormatterParameterBinding.ReadContentAsync(HttpRequestMessage request, Type type, IEnumerable`1 formatters, IFormatterLogger formatterLogger, CancellationToken cancellationToken)
at System.Web.Http.ModelBinding.FormatterParameterBinding.ReadContentAsync(HttpRequestMessage request, Type type, IEnumerable`1 formatters, IFormatterLogger formatterLogger)
at System.Web.Http.ModelBinding.FormatterParameterBinding.<ExecuteBindingAsyncCore>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Controllers.HttpActionBinding.<ExecuteBindingAsyncCore>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Controllers.ActionFilterResult.<ExecuteAsync>d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Controllers.ExceptionFilterResult.<ExecuteAsync>d__0.MoveNext()