Skip to content

Latest commit

 

History

History
64 lines (39 loc) · 1.99 KB

AuthenticationApi.md

File metadata and controls

64 lines (39 loc) · 1.99 KB

\AuthenticationApi

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

AuthGeneratetokenPost

AuthGeneratetokenResponse AuthGeneratetokenPost(ctx, grantType, username, password) Create an authentication token

Create an authentication token

Required Parameters

Name Type Description Notes
ctx context.Context context for logging, tracing, authentication, etc.
grantType string
username string
password string

Return type

AuthGeneratetokenResponse

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/x-www-form-urlencoded
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

AuthValidatetokenGet

AuthValidatetokenResponse AuthValidatetokenGet(ctx, ) Validate authentication token

Validate the authentication token and get information about the user (roles, permissions, etc.)

Required Parameters

This endpoint does not need any parameter.

Return type

AuthValidatetokenResponse

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]