HistoryEndpoints
Attributes
- Graph
-
- Supertypes
Members list
Value members
Inherited methods
Attributes
- Inherited from:
- Endpoints
Attributes
- Inherited from:
- Endpoints
Attributes
- Inherited from:
- Endpoints
Attributes
- Inherited from:
- Endpoints
Like handleErrors but also maps access errors: missing credentials become Unauthorized (401) and any other AccessException (a known user who isn't allowed to do this) becomes Forbidden (403). Only use this with endpoints built from secureEndpoint, since openEndpoint does not declare those error variants.
Like handleErrors but also maps access errors: missing credentials become Unauthorized (401) and any other AccessException (a known user who isn't allowed to do this) becomes Forbidden (403). Only use this with endpoints built from secureEndpoint, since openEndpoint does not declare those error variants.
Attributes
- Inherited from:
- Endpoints
Attributes
- Inherited from:
- Endpoints
Works out who is calling, for endpoints whose rules depend on both the caller and the request (e.g. what's being changed). A user's account, including their role, is looked up with findUser rather than trusted from the token, so a user who has been demoted can't keep using a still-valid token.
Works out who is calling, for endpoints whose rules depend on both the caller and the request (e.g. what's being changed). A user's account, including their role, is looked up with findUser rather than trusted from the token, so a user who has been demoted can't keep using a still-valid token.
Attributes
- Returns
-
Caller.ApiKey for an API-key token, Caller.User for a user login, or an error: 401 for a missing or invalid token or a user that no longer exists, 500 if the user couldn't be looked up
- Inherited from:
- Endpoints
Attributes
- Inherited from:
- Endpoints
Attributes
- Inherited from:
- Endpoints
Security logic for endpoints that accept either an API-key token (issued by JwtService.authorize) or a logged-in user whose current role satisfies allowed. The user's role is looked up with findUser rather than trusted from the token's claims, so a user who has been demoted can't keep using a still-valid token.
Security logic for endpoints that accept either an API-key token (issued by JwtService.authorize) or a logged-in user whose current role satisfies allowed. The user's role is looked up with findUser rather than trusted from the token's claims, so a user who has been demoted can't keep using a still-valid token.
Value parameters
- allowed
-
Returns true if the user may call the endpoint
- findUser
-
Looks up a user account by name (normally
UserAccountService.findByUserName)
Attributes
- Inherited from:
- Endpoints
Attributes
- Inherited from:
- Endpoints
Attributes
- Inherited from:
- Endpoints
Attributes
- Inherited from:
- Endpoints
Attributes
- Inherited from:
- Endpoints
Like verifyApiKeyOrUser but API-key tokens are rejected: only a logged-in user whose current role (looked up with findUser, not trusted from the token) satisfies allowed may call the endpoint.
Like verifyApiKeyOrUser but API-key tokens are rejected: only a logged-in user whose current role (looked up with findUser, not trusted from the token) satisfies allowed may call the endpoint.
Attributes
- Inherited from:
- Endpoints
Attributes
- Inherited from:
- Endpoints
Concrete fields
Inherited fields
The 401 message when a request that needs a logged-in user or an API key token arrives without one
The 401 message when a request that needs a logged-in user or an API key token arrives without one
Attributes
- Inherited from:
- Endpoints
Attributes
- Inherited from:
- Endpoints
Attributes
- Inherited from:
- Endpoints
Attributes
- Inherited from:
- Endpoints
Implicits
Inherited implicits
Attributes
- Inherited from:
- Endpoints
Attributes
- Inherited from:
- Endpoints
Attributes
- Inherited from:
- Endpoints
Attributes
- Inherited from:
- Endpoints
Attributes
- Inherited from:
- Endpoints
Attributes
- Inherited from:
- Endpoints
Attributes
- Inherited from:
- Endpoints
Attributes
- Inherited from:
- Endpoints
Attributes
- Inherited from:
- Endpoints
Attributes
- Inherited from:
- Endpoints
Attributes
- Inherited from:
- Endpoints
Attributes
- Inherited from:
- Endpoints
Attributes
- Inherited from:
- Endpoints
Attributes
- Inherited from:
- Endpoints
Attributes
- Inherited from:
- Endpoints
Attributes
- Inherited from:
- Endpoints
Attributes
- Inherited from:
- Endpoints
Attributes
- Inherited from:
- Endpoints
Attributes
- Inherited from:
- Endpoints
Attributes
- Inherited from:
- Endpoints
Attributes
- Inherited from:
- Endpoints
Attributes
- Inherited from:
- Endpoints
Attributes
- Inherited from:
- Endpoints
Attributes
- Inherited from:
- Endpoints
Attributes
- Inherited from:
- Endpoints
Attributes
- Inherited from:
- Endpoints
Attributes
- Inherited from:
- Endpoints
Attributes
- Inherited from:
- Endpoints
Attributes
- Inherited from:
- Endpoints