Authentication
Overview
The Web21C Authentication Service provides simple authentication and user management functionality to developers. Using a simple username and password combination, the Authentication Service validates a user's credentials. Additionally, typical administrative functionality is part of this service.The Web21C Authentication Service lets you integrate role-based security models into your applications. The Authentication Service can be used as a trusted identity provider for third-party services or for the other Web21C services requiring authentication.
Features
The Web21C Authentication Service currently has the following features:
- Username/ Password Authentication - Allows you to easily authenticate users based on their username and password within your application.
- User & Group Management - Allows you to manage users, groups and group memberships for your application, for role based security.
- Security Assertion Markup Language (SAML) - Allows you to use the Web21C Authentication Service as an identity provider for other services.
Applications
The Web21C Authentication Service is used to authenticate users with a username and password. The Authentication Service is used in the Role Provider and Membership Provider ASPNET providers sample application which are available as part of the Web21C SDK in the Downloads page. To go there, please click here.
Code Example: (C#, using the Windows Forms component)
//Drop an Authentication component onto your form from the Toolbox
try
{
authentication1.LogOn("user@domain.com", "password");
MessageBox.Show("username has been authenticated");
}
catch(SecurityException)
{
MessageBox.Show("username was not authenticated");
}
//To create a new user, simply use the "create user" functionality.
//Drop an Authentication Admin component onto
//your form from Toolbox authentication
authenticationAdmin1.CreateUser("user@domain");
