This is the multi-page printable view of this section. Click here to print.

Return to the regular view of this page.

Core Tasks

What can you do with alt-seven?

This page shows some core tasks that you can tackle using alt-seven.

1 - User Authentication

A brief overview of the built-in user authentication system in alt-sever.

User Authentication

Alt-seven includes a built-in authentication mechanism that allows you to authenticate users against your back end server. Rather than using a custom authentication system, alt-seven uses HTTP Basic Authentication, sending an Authorization header with encoded username and password to the server via remote fetch. The framework sends back an X-Token response header that contains an encoded payload with the authenticated user’s information.

Because the authentication methods are included in the framework, all the programmer needs to do is configure the loginURL, logoutURL, and refreshURL in the application configuration, then call the auth.login event in the framework. The method then calls the specified loginURL and passes the username and password to the authentication URL. See more information in the authentication tutorial.

Authentication Tutorial