User Resource
Authentication and session management
Authentication and authorization management for secure 7G API access. Provides user credential validation, JWT access token generation and refresh token workflows.
Usage Notes
When
- Authenticate and obtain access tokens
- Refresh tokens before expiration
- Establish API session
Requirements
- Valid credentials for Login
- Valid refresh token for RefreshToken
Notes
- Only 4 endpoints are anonymous:
/user/login,/user/refreshToken,/common/lookup, and/common/HealthCheck. All others require a valid access token. /user/refreshTokenvalidates the refresh token in the request body. The Authorization header is optional — if you send your current access token, it is revoked when the refresh succeeds.- Access tokens expire 20 minutes after issue.
- SDK auto-refreshes tokens 30 seconds before expiration via
EnsureValidTokenAsync(). - JWT-based authentication with separate access and refresh tokens; both rotate on successful refresh.
Description
User handles authentication and session management. Login to obtain access and refresh tokens. Use RefreshToken to extend sessions without re-authentication.
Available Endpoints
Authentication Services
Core Data Transfer Objects
Authentication Workflow & SDK Pattern
The SDK AuthClient manages authentication with automatic token refresh, ensuring continuous API access without manual token management or user interruption.
SDK Automatic Token Refresh
The SDK's EnsureValidTokenAsync() method automatically refreshes access tokens 30 seconds before expiration. All resource clients call this method before each request, enabling long-running sessions without manual refresh logic.
Business Rules & Constraints
Authentication & Access Control
- Access token requirement: All API endpoints require a valid JWT access token. The only anonymous endpoints are
/user/login,/user/refreshToken,/common/lookup, and/common/HealthCheck. /user/refreshTokenneeds only a valid refresh token in the request body. Each refresh token can be used once; an invalid, already-used or expired one returns 401 and you must log in again.- Token lifespan: access tokens expire after 20 minutes; refresh proactively to maintain continuous operations.
Session & Token Lifecycle
- Session extension: Refresh tokens provide session extension without credential re-entry or user interruption
- Token expiration enforcement: Token expiration policies maintained to balance security requirements with operational user experience