Skip to main content
Version: Next

User access

Users can connect to Qodly applications through two distinct access modes: authenticated access or public access.

Authenticated access

For the authenticated access, the user must be registered in the Qodly directory (relying on Amazon Cognito for authentication and storage). You add users to the Qodly directory using the Users management page of the Console. In this page, the user is assigned a specific profile, i.e. a role and allowed to access one or more enviromnents (such as the Development environment).

The user connects to the application via the Authenticated URL (screen mode) or the Endpoint URL (API mode) of the allowed environment. The user session gets automatically the privileges corresponding to its role at authentication step.

Public access

For the public access, the user connects to the application through the Public URL (must be activated explicitely in the Console).

The user only has Guest privilege by default (Session.isGuest returns true).

It's up to the Qodly developer to authenticate the user and grant them a privilege or role using the Session class API. For example, you can get the list of privileges associated to the session using the getPrivileges() function, or store user information in the session's storage property.