Im working on a case where i need to integrate a K2 form into another application. The concept of this solution is that the main application has some fields that are required. To get to these fields a user needs to authenticate first. After the required fields have been filled and submitted, a K2 form is shown on that same page. The problem is that we do not want to ask the user for credentials again. All suggestion on how to best implement this are welcome. We want to work with K2 having Forms Based Authentication enabled. Some thoughts of myself so far:
- To skip the K2 authentication form. Posting the credentials directly to some url that otherwise would have been done by the login form. Although i have seen this before, im not sure if the K2 implementation allows for this as well. Any thoughts on this idea are welcome.
- To authenticate somewhere else (an API?) that provides a token that can be supplied to the K2 form. Im just not sure what API i need to use, and how to implement that on the form.