Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Section


Column

This Tutorial will show you how you can embed and frevvo and workflows in your web site or web application. In some cases, you may wish to integrate authentication between your application and so frevvo so that your users don't have to sign in twice yet are automatically authenticated to frevvo. You may want your users to be authenticated for access control, digital signatures, participating in workflows, viewing their task lists or for maintaining an audit trail.


Column
width240px

On this page:

Table of Contents
maxLevel1



...

If you do not require access control or authentication for other purposes, i.e. your forms are public forms on your Extranet, you can simply use  builtfrevvo built-in Share Dialog and copy and paste the code into your HTML, JSP, ASP, PHP or other web page. An example is frevvo'own contact form. No authentication is required and the form is completed and submitted anonymously. You can find instructions for embedding forms and workflows here.

...

The examples below use the API to authenticate to frevvo. Before using the API, you will need to install the client libraries for your language. frevvo offers Java and .NET client libraries. The examples below use the Java client libraries; the .NET versions are very similar. See these instructions for  Installing the Client Library and Dependencies.

...

In order to automatically integrate with frevvo, your web application will first need to establish a session using the  APIfrevvo API. This is done by using the com.frevvo.forms.client.FormsService class and by providing proper credentials to authenticate.

...

Auto-create users in a tenant

 can frevvo can also automatically create users in your tenant if you created it with the Delegating Security Manager.

...

This will log you in as the specified userId. If a user with that ID does not exist, the user will be automatically created. The user will have any existing roles as well as the role "manager". If you do not want to specify any roles, you may pass in null. Of course, you can pass in a List with as many roles as you want.

If you want  to frevvo to auto create a new user that can design forms, you need to pass in the frevvo.Designer role when calling loginAs(). This is typically not required unless you are an OEM customer embedding the frevvo Designer in your product. For instance:

...