All URIs are relative to https://penapi.pacnetconnect.com
Method | HTTP request | Description |
---|---|---|
AuthGeneratetokenPost | Post /1.0.0/auth/generatetoken | Create an authentication token |
AuthValidatetokenGet | Get /1.0.0/auth/validatetoken | Validate authentication token |
AuthGeneratetokenResponse AuthGeneratetokenPost(ctx, grantType, username, password) Create an authentication token
Create an authentication token
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for logging, tracing, authentication, etc. | |
grantType | string | ||
username | string | ||
password | string |
No authorization required
- Content-Type: application/x-www-form-urlencoded
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AuthValidatetokenResponse AuthValidatetokenGet(ctx, ) Validate authentication token
Validate the authentication token and get information about the user (roles, permissions, etc.)
This endpoint does not need any parameter.
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]