Versions Compared
Key
- This line was added.
- This line was removed.
- Formatting was changed.
DRAFT
Overview
Admin App v3.0 supports two methods for authentication: web-forms authentication or single-sign on via Open ID Connect (OIDC). Both utilize ASP.NET Core Identity as the underlying framework. This page will provide details to configure Admin App based on the selected model. Please use this as reference for Admin App v2.x, however the single-sign on via Open ID Connect method is not supported in those product versions.
Table of Contents | ||
---|---|---|
|
Admin App Roles
Admin App uses two roles within the application for ODS/API management. The Super-Administrator role is used to register multiple users with separate roles and privileges along with all ODS / API instances and its functions. The Administrator role is allowed to access only specific ODS / API instances and its functions. This user authentication model pairs well with multi-instance support within Admin App.
1. Super-Administrator (default role for the first user)
The Super-Administrator role is intended for an IT Administrator managing a collection of individual ODS instances, such as found within district collaboratives.
Super-Administrator Permissions
- Add a user
- Assign a role to an added user
- Register and delete ODS / API instances
- Change and assign an ODS / API instance to an added user
- Change user settings for other users
- Delete a user
- Plus, all permissions of the Administrator role
2. Administrator
The Administrator role is one that can access one or more ODS instances assigned by the Super-Administrator. This means that users in the Administrator role can only administer ODS / API instances specifically assigned.
Administrator Permissions
- Manage applications
- API key/secret creation
- View descriptors
- Bulk data uploads
- Learning standards synchronization
Securing Admin App
3.0:- Existing form authentication (Please refer here for more details)
- Single sign on (SSO)
Web Form
AuthenicationGeneral Configuration
Below are instructions for Web FormAuthentication
Click here to open Web Form Authentication setup instructions:
Toggle cloak |
---|
Cloak | visible | true
---|
|
Single Sign-On with Open ID Connect (Admin App v3.x+)
Single sign on:Click here to open Single Sign-On with Open ID Connect setup instructions: Toggle cloak
Cloak | |||||
---|---|---|---|---|---|
Admin App SSO feature supports trusted 3rd party source as the source of identity for the application users. Enabling single sign on: To enable SSO on AdminApp, user needs to provide following appsettings values:
Type: EntityFramework or OpenId Default value is “EntityFramework” which enables form authentication. For enabling SSO, the type value will be set to “OpenId”. Authority: Autherity URL for making openIdConnect calls. ClientId: The client identifier from OP. This identifier is assigned when the client application is registered with OP, via the client registration API, a developer console, or some other method. ClientSecret: Secret value assigned/ generated for the client application on OP. UserProfileUri: User info endpoint. User will be redirected to this endpoint to change password. LoginProvider: OP name (ex: KeyCloak). GetClaimsFromUserInfoEndpoint: Boolean to set whether the handler should go to user info endpoint to retrieve additional claims or not after creating an identity from id_token received from token endpoint. The default value on Admin App is “true”. Scopes: List of permissions to request. Defining roles on third party OP:The users from third party OP should be provided with specific roles for working/ matching with existing Admin App roles. |
The role will be added as user attribute on third party OP. Please refer Steps 4 and 6 on Sign in to KeyCloak and configure the environment below.
Setting up third party OP(KeyCloak):User can use their own/ existing OpenId Connect provider to delegate authentication process. We are using KeyCloak as an example here to explain the setup. Please follow steps below to define client application, users, claims and roles on KeyCloak. Create and run the infrastructure required:
|
|
|
|
We might clarify we're looking to test Admin App's integration with OIDC, not the OIDC provider setup
Sign in to KeyCloak and configure the environment:
KeyCloak is now configured! Time to update Admin App config.
To verify: launch Admin App and sign in. You should be taken to KeyCloak and be able to sign in using the username and passwords you created. Singing into Admin App using KeyCloak:Image Modified Redirecting to KeyCloak for sign in:Image Modified After providing valid credentials and clicking Sign in, user will be navigated to Admin App Home Page and provided with Global and/or Settings as per their roles. Super Admin user from KeyCloak:Image Modified Admin user from KeyCloak:Image Modified No-role user from KeyCloak:Image Modified Clicking on SETTINGS will redirect to "Unauthorized" error page. Image Modified |
References:
https://www.keycloak.org/getting-started/getting-started-docker