Code Examples

Ready-to-use code examples for various scenarios and platforms

Complete Integration Examples

Laravel Package

Complete Laravel integration with middleware and views

View Guide →

.NET MVC

ASP.NET MVC with JWT authentication

View Guide →

Quick Start Example

# 1. Register your application
curl -X POST http://localhost:5000/api/client-systems \
  -H "Content-Type: application/json" \
  -d '{
    "name": "My App",
    "url": "http://localhost:3000",
    "callback_url": "http://localhost:3000/cas/callback"
  }'

# 2. Set environment variables
export CAS_SERVER_URL=http://localhost:5000
export CAS_CLIENT_USERNAME=your_username
export CAS_CLIENT_PASSWORD=your_password

# 3. Integrate with your app

Need Help?