Skip to content

Session Management

View and manage active user sessions.

List Sessions

curl -X GET http://localhost:8000/api/sso/v1/sessions \
  -H "Authorization: Bearer TOKEN"

Get Session

curl -X GET http://localhost:8000/api/sso/v1/sessions/SESSION_ID \
  -H "Authorization: Bearer TOKEN"

Revoke Session

curl -X DELETE http://localhost:8000/api/sso/v1/sessions/SESSION_ID \
  -H "Authorization: Bearer TOKEN"

Revoke All Sessions

curl -X DELETE http://localhost:8000/api/sso/v1/sessions \
  -H "Authorization: Bearer TOKEN"

Session Information

{
  "id": "session:xyz789",
  "user_id": "user:abc123",
  "device_info": {
    "user_agent": "Mozilla/5.0...",
    "ip_address": "192.168.1.1",
    "location": "San Francisco, CA"
  },
  "created_at": "2025-10-04T10:00:00Z",
  "expires_at": "2025-11-03T10:00:00Z",
  "is_active": true
}