Class AuthenticationApi
java.lang.Object
fr.metabohub.users_apis_authorizations.client.AuthenticationApi
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2026-02-03T14:58:24.771631095Z[Etc/UTC]",
comments="Generator version: 7.10.0")
public class AuthenticationApi
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncheckUserApiAuthorization(CheckUserApiAuthorizationsRequest checkUserApiAuthorizationsRequest) Check if a token is valid, return token authorizations and user's roles for an API.checkUserApiAuthorizationWithHttpInfo(CheckUserApiAuthorizationsRequest checkUserApiAuthorizationsRequest) Check if a token is valid, return token authorizations and user's roles for an API.protected ApiExceptiongetApiException(String operationId, HttpResponse<InputStream> response)
-
Constructor Details
-
AuthenticationApi
public AuthenticationApi() -
AuthenticationApi
-
-
Method Details
-
getApiException
protected ApiException getApiException(String operationId, HttpResponse<InputStream> response) throws IOException - Throws:
IOException
-
checkUserApiAuthorization
public UserApiAuthorizationsResponse checkUserApiAuthorization(CheckUserApiAuthorizationsRequest checkUserApiAuthorizationsRequest) throws ApiException Check if a token is valid, return token authorizations and user's roles for an API. This endpoint is used par MetaboHUB's API to check if a provided token is valid. Furthermore it will return user's roles (User, Curator, Manager, Admin) for the provided API and token's authorizations (Create, Read, Update, Delete)- Parameters:
checkUserApiAuthorizationsRequest- (required)- Returns:
- UserApiAuthorizationsResponse
- Throws:
ApiException- if fails to make API call
-
checkUserApiAuthorizationWithHttpInfo
public ApiResponse<UserApiAuthorizationsResponse> checkUserApiAuthorizationWithHttpInfo(CheckUserApiAuthorizationsRequest checkUserApiAuthorizationsRequest) throws ApiException Check if a token is valid, return token authorizations and user's roles for an API. This endpoint is used par MetaboHUB's API to check if a provided token is valid. Furthermore it will return user's roles (User, Curator, Manager, Admin) for the provided API and token's authorizations (Create, Read, Update, Delete)- Parameters:
checkUserApiAuthorizationsRequest- (required)- Returns:
- ApiResponse<UserApiAuthorizationsResponse>
- Throws:
ApiException- if fails to make API call
-