We're sorry AsposeCloud doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.cloud

Get an Oauth2 token (Free plan)

I am using the free trial for proof of concept. I try to get an oath2 token with the sample curl command specified. I get an OK 200, but empty response:
< HTTP/2 200
< date: Thu, 08 Sep 2022 08:46:20 GMT
< content-length: 0
< server: Microsoft-IIS/10.0
< x-powered-by: ASP.NET

If I send a non matching secret, I get the error I expect.
client_id=23b80b3f-8a71-4cc0-a89c-9018893c86be

@bosma4u

Please note Aspose Cloud APIs use only JSON Web Token(JWT) for authentication of API Requests. It is working fine at my end. Please test the following cURL command with your credentials. Hopefully, it will help you to get JWT.

# Get Customer Key and Customer ID from https://dashboard.aspose.cloud/
curl -X POST "https://api.aspose.cloud/connect/token" 
-d "grant_type=client_credentials&client_id=xxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx&client_secret=xxxxxxxxxxxxxxxxxxx" 
-H "Content-Type: application/x-www-form-urlencoded" 
-H "Accept: application/json"

Thanks, in the documentation Authenticating API Requests|Documentation (aspose.cloud) you specify a different url (POST request to: https://api.aspose.cloud/oauth2/token ), if I use POST https://api.aspose.cloud/connect/token from the answer, it works.

@bosma4u

Please note Aspose.Storage Cloud is obsolete. Now, we only use JWT Access token for authentication. And please note each Aspose Cloud Product has its own APIs for storage operations.