Authentication
Authentication Method
We utilize the OAuth 2.0 authentication method, an industry standard for authorization, to ensure the security and integrity of user and system identification. This method involves the generation of tokens that allow secure access to our servers, software, and APIs. Authentication through OAuth 2.0 helps prevent cyber fraud and the leakage of confidential information by using public key encryption to validate identities.
Creation of Public and Private Keys
Before receiving the credential, it is necessary to generate a pair of keys: one private key and one public key. The private key will be used to sign the token, while the public key should be sent to us to validate the signature of the token.
First, generate the private key using the command below via terminal:
Next, generate the public key through the terminal:
Request for Public Key
We will request your email to open a request regarding the sending of the public key. After that, you will receive a message from notifications@heflo.com with instructions for sending the key.
Receiving the client_id
After validating your public key, our team will generate and send your client_id
, which will be used for authentication in the system.
Generating the JWT
Generate a TOKEN following the RS256 standard, containing crucial information such as unique identifier, issuance time, and expiration.
Bearer Token Generation Endpoint
To generate a TOKEN using the OAuth 2.0 method, the client must send a POST request with the Header Content-Type “application/x-www-form-urlencoded,” below is the CURL of the endpoint that will be used to generate the token:
After authentication, the access token obtained should be used in all subsequent requests in the authorization header.
Was this page helpful?