← Back to Dashboard

Protected API Demo

Test authentication with the demo API service

Authentication Status

⚠️Not authenticated - You can still test all endpoints to see how they respond without authentication. Protected endpoints will return 401/403 errors. Sign in to access protected data.

Public Endpoint

Accessible without authentication

GET /public

Protected Endpoint

Requires valid JWT token

GET /protected

⚠️ No authentication - will return 401/403 error

Admin Endpoint

Requires authentication

GET /admin

⚠️ No authentication - will return 401/403 error

How This Works

1. When you sign in, a JWT token is issued by the auth service.

2. This token is stored in your browser and sent with API requests.

3. The demo service validates the token with the auth service.

4. Protected endpoints return data with valid authentication, or 401/403 errors without it.

5. You can test all endpoints regardless of authentication status to see the different responses.