In the control background, I don’t see an entry like creating an application.
I want to know how to get the clientid and use it for OAuth authentication.
ex:in this url,how do i get the clientid
/*
* You will need a client ID to have access to the DatoCms Oauth2 API,
* to get one for your app contact: support@datocms.com.
*/
const clientId = 'eb321c597aec32598153b0c3cdb0dbdc438b742d1a77f59fc7eeb7a3900d1029';
const hash = document.location.hash;
const authLink = document.getElementById('auth-url');
const permissionList = document.getElementById('permission-list');
/*
* The Oauth2 implicit grant flow works by sending the user to DatoCms where she'll
* be asked to grant authorization to your application. DatoCms will then redirect
* back to the set Redirect URI and set an access_token parameter
* in the "hash" part of the URL.
* From this point we can start doing API requests on their behalf.
* If no hash is present, we'll trigger the first step.
*/
if (hash) {
This file has been truncated. show original
Hello @windingmonth
To get that ID you’ll need to contact us directly at support@datocms.com with your app information.