Click or drag to resize


Wisej supports any type of authentication scheme simply by not forcing you to use any particular authentication technology. Web applications built using Wisej are secure by design - you control what is shown and to whom and it's impossible to access forms, pages or information not exposed intentionally.

Login Form

It's common for ASP.NET/MVC web sites to define a login form in Web.config to prevent access to the internal pages without displaying the login form first. With Wisej you may specify the initial window or you may decide dynamically (in your code) how to handle new sessions with absolute freedom.

Define your login form by setting the mainWindow property in the Default.json configuration file. This will be the first window that Wisej loads and shows when a new session is created. Right after creating and showing the mainWindow, Wisej calls the single main method defined using the startup property.

Both properties are optional - if they are both omitted nothing happens. If only mainWindow is defined, Wisej shows that window and then it's up to your code to proceed.

Once the user is authenticated - using any .NET authentication library - you can safely store user data in your application either in your main page, if you have one, or using the Application.Session object.

Configuration Example
    "url": "Default.html",
    "startup": "Wise.MyApp.Main, Wisej.MyApp",
    "mainWindow": "Wise.MyApp.LogonForm, Wisej.MyApp"
Browser Authentication

In addition or in alternative to your login form, you can also use the browser authentication. Wisej loads a single application HTML page, usually Default.html (but it can be Default.aspx, or just about anything else that can be processed by the server). If you configure the web server to use basic authentication for the application's page you'll get the standard browser authentication dialog.

When using the browser authentication, you can use these properties:

See Also

Other Resources