Features
Learn CAL (Chevron Authentication Library) implementation in TypeScript applications.
This interactive example demonstrates how to integrate CAL into your TypeScript projects. Explore the complete authentication workflow:
- đ§ Initialize and configure CAL library
- đ¤ Authenticate users and manage claims
- đ Retrieve data from Microsoft Graph API
- đ Access secured APIs with proper tokens
- đ Implement role-based authorization
Use the sidebar navigation to jump to specific sections, or scroll through all examples to see the complete CAL implementation flow.
take the tourâī¸ CAL Configuration Guide
Initialize and configure the CAL library. This is the foundation for all CAL operations and should be done first.
- Initialize CAL
- Get Configuration
- Library Version
Initialize the CAL library with configuration settings. See CAL Instance Setup for details.
đ¤ Using the CvxClaimsPrincipal
Learn how to authenticate users and access their claims. This covers the complete authentication flow and user identity.
- Sign In User
- Check Auth Status
- Get Claims
- Sign Out
Check if user is currently authenticated. See Authentication Status Check for details.
đ Retrieving Data from Microsoft Graph
Access user profile data and organizational information from Microsoft Graph API.
- Get User Profile
- Check Group Membership
- Get Roles
- Roles by Resource
- Roles by Resources
Retrieve current user's profile information from Microsoft Graph. See Basic User Properties Retrieval for details
đ Retrieving Data from an API
Learn how to get access tokens and call secured APIs. This is essential for accessing protected resources.
- Get Access Token
- ID Token Claims
- Token from Cache
- Clear Cache
Retrieve the current user's access token for API calls. See Token Acquisition Methods for details.