Versions Compared

Key

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

...

Embedded views requires a valid authentication method depending of your choice.

Anonymous Access

You can use anonymous access to fill out forms or generate reports in other applications without forcing user to login emakin. 

Info
titleTest Mode

Anonymous access requires processes in "Active" state. When you try to use anonymous access while process in test mode emakin silently ignores operation.


Initiating of a new process anonymously

...

https://ertan.emakin.com/app/?/report/55....6b/c2...18/08...c8&apiKey=58ea0f3d.....90b984be905a

Embedded form layout can be accessed from "http(s)://<mydomain>.emakin.com/app/embed" url. Embedded layout does not show any side bar and only shows the main content of the form with optionally actions. Example view of the embedded layout of a form.

Image Removed

Authentication

Embedded forms need valid authentication, so if the user is not logged in before, browser automatically redirects to the login page. Alternatively, you can specify an authentication token to login user automatically and skip login page.

Example embedded page url with authentication token;

Code Block
	http://ertan.emakin.com/app/embed?/workitem/d4c1adc7-c9d2-4af0-a2b3-b6d61d88df6d&auth=41AA3CE3CAFB..............BF8114

You can generate required authentication token with getToken method in rest service

...

Authenticated Access

You can also generate authentication tokens with rest api service GetToken method for specific user identity. After token is generated add token into address as "auth" parameter. Generated authentication tokens are limited to configured based time period and they can get expired. Please always generate new tokens as long as it's needed, and do not store in any place like disk or code.

Updated address link should be similar like to following address

https://ertan.emakin.com/app/?/report/55....6b/c2...18/08...c8&auth=41AA3CE3CAFB....BF8114

Embedding Form

You can embed emakin forms in a basic HTML IFrame tag like below;

...

Code Block
<html>
	<body>
        Hello!
		<iframe src="httphttps://ertan.emakin.com/app/embed?/workitem/d4c1adc7-c9d2-4af0-a2b3-b6d61d88df6d" width="100%" height="600" frameborder="0"></iframe>
	</body>
</html>

Default configuration prevents the use emakin in IFrame tag because of security. If you get any error please try to remove "X-XFrame-Options" header from your web configuration file to allow to use emakin in an iframe tag.

Action Toolbar

By default, emakin does not show action toolbar of work items. If you want the action toolbar to be shown, you can specify "actions=1" parameter in query string to show action toolbar.

Example:

Code Block
<html>
	<body>
        Hello!
		<iframe src="http://ertan.emakin.com/app/embed?/workitem/d4c1adc7-c9d2-4af0-a2b3-b6d61d88df6d&actions=1initiate/55....6b/c2...18/08...c8&apiKey=58ea0f3d.....90b984be905a" width="100%" height="600" frameborder="0"></iframe>
	</body>
</html>

...

You can specify "returnUrl" parameter in the query string, to redirect user the another address after the form is completed. This parameter is only meaningful if an action toolbar is visible. 

Example:

Code Block
<html>
	<body>
        Hello!
		<iframe src="httphttps://ertan.emakin.com/app/embed?/workitem/d4c1adc7-c9d2-4af0-a2b3-b6d61d88df6d&actions=1initiate/55....6b/c2...18/08...c8&apiKey=58ea0f3d.....90b984be905a&returnUrl=http://localhost" width="100%" height="600" frameborder="0"></iframe>
	</body>
</html>

...