Configuring an Anonymous K2 SmartForms Runtime site
In K2, it is possible to create multiple runtime sites with different authentication types in the same server. In this article we will see how to create an anonymous K2 SmartForms Runtime site with anonymous access for public users.
Navigate to K2 server installed location and make a copy of the runtime folder
To share the same runtime license key, both runtime folder and anonymous runtime folder must be in the same folder level, So Paste the copied folder into the same location as runtime folder and provide a different name for the folder.
If the copied folder is not in the same location, then you can’t access new runtime URL and you will receive an error.
Open IIS Manager and add a new application under K2 Site
For New application, select application pool as same as original runtime site
Specify Alias name and copy the anonymous runtime folder location and specify in the physical path.
For newly created application, set IIS authentication to ONLY anonymous authentication.
Change the below configurations in web.config file under newly created anonymous runtime folder
- Set ConnectAsAppPool to “true”
- Under the <authorization> node comment out the <deny users=”?” />
- Uncomment the <allow users=”*” />.
Verify the new Runtime URL and that should be “https://ServerURL/AliasName/Runtime”