<aside> ⚠️ Although Link Money offers this capability for transitional ease from the MX platform, we strongly encourage using User Tokens instead, as they are more secure. If you still choose to use Basic Tokens, bear in mind that the encoded values in the header can be decoded by any party and should not be traded publically.

</aside>

Some platforms, like MX, use Basic Tokens. A basic token is a base64 encoding of your Oauth2.0 credentials which can be decoded server-side. These Basic Tokens can be both developer-level (generic) and user-level (specific).

‣ will specify whether they require generic or specific authentication.

Create a Generic Token

  1. Retrieve your client_id and client_secret from the Developer Dashboard.

  2. Concatenate these values into a single string separated by a colon: my_client_id:my_client_secret.

  3. Base64 encode the value. In this example, the encoded value is bXlfY2xpZW50X2lkOm15X2NsaWVudF9zZWNyZXQ=.

  4. Prepend Basic to the value to create the header:

    Basic bXlfY2xpZW50X2lkOm15X2NsaWVudF9zZWNyZXQ=

  5. In your HTTP call, use this as the Authorization header:

    curl -H "Authorization: Basic bXlfY2xpZW50X2lkOm15X2NsaWVudF9zZWNyZXQ=" <https://linkmoney.fingoal.com/v1/mx>
    

Create a Specific (User) Token

  1. Retrieve your client_id and client_secret from the Developer Dashboard.

  2. Retrieve the guid of the user.

  3. Concatenate these values into a single string seperated by colons:

    my_client_id:my_client_secret:user_guid

  4. Base64 encode the value. In this example, the encoded value is

    bXlfY2xpZW50X2lkOm15X2NsaWVudF9zZWNyZXQ6dXNlcl9ndWlk

  5. Prepend Basic to the value to create the header:

    Basic bXlfY2xpZW50X2lkOm15X2NsaWVudF9zZWNyZXQ6dXNlcl9ndWlk

  6. In your HTTP call, use this as the Authorization header:

     curl -H "Authorization: Basic bXlfY2xpZW50X2lkOm15X2NsaWVudF9zZWNyZXQ6dXNlcl9ndWlk" <https://linkmoney.fingoal.com/v1/mx/user-specific-resource>