Salesforce

Setting up OAuth 2.0 - How to create an authorization string

Article Information
 
Inhoud van het artikel
This article is part of the article serie Setting up OAuth 2.0 - Introduction

To proof that you are the owner of a client ID you must create a string that looks like this:
client_id:client_secret

In this example your client secret is myapplication and your client secret is 1234567890abcdefghij. Your string will look like this (notice that there is a colon (:) in between the client id and client secret):
myapplication:1234567890abcdefghij

Good to know: Did you forget your client secret? Go back to the first step, open your existing client ID and generate a new client secret: Register a client ID for your application

Now you have to encode this string using Base64. Please refer to Wikipedia if you're not familiar with Base64: https://en.wikipedia.org/wiki/Base64

After encoding your string it should look like this:
bXlhcHBsaWNhdGlvbjoxMjM0NTY3ODkwYWJjZGVmZ2hpag==

Because Twinfield uses basic access authentication you must also add the word “Basic” to the start of your string followed by a space. In total your string will now look like this:
Basic bXlhcHBsaWNhdGlvbjoxMjM0NTY3ODkwYWJjZGVmZ2hpag==

 
detail information
18-12-2021 8:14
Setting up OAuth 2.0 - How to create an authorization string
479
URL
Setting-up-OAuth-2-0-How-to-create-an-authorization-string

Powered by