
JSON 웹 토큰 (JWT)은 두 당사자 간에 전송될 수 있는 클레임(claim)의 JSON 인코딩된 개방형 산업 표준 RFC 7519 메서드 표현입니다. 클레임은 토큰 발급자에 의해 디지털 서명되며, 이 토큰을 받은 당사자는 나중에 이 디지털 서명을 사용하여 클레임의 소유권을 증명할 수 있습니다.
At Aspose, we value data integrity and authentication as much as we focus on new features building. Therefore, all Aspose.Cloud APIs are only accessible to authorized persons. Also, the files that we store in cloud storage become available through that account that we use to upload. So in order to interact with Aspose.Cloud APIs, you need to first obtain your specific Client ID and Client Secret keys.
- 웹사이트 Aspose.Cloud dashboard를 방문해 주십시오. Aspose Single Sign-On 인증 서비스로 리디렉션됩니다.
- GitHub 또는 Google 계정이 있다면, 간단히 가입하세요. 그렇지 않다면 Create a new Account 버튼을 클릭하고 필요한 정보를 제공하세요.
축하합니다! 우리는 계정을 성공적으로 생성하였고 Aspose Cloud Dashboard에 접근할 수 있습니다.
이제 대시보드에 로그인하고 대시보드에서 애플리케이션 섹션을 확장한 다음 클라이언트 자격 증명 섹션으로 스크롤하여 클라이언트 ID 및 클라이언트 비밀 세부정보를 확인하십시오.

Image 1 :- 애플리케이션 메뉴 미리보기
클라이언트 자격 증명을 사용하여 SDK 사용하기
You may use Aspose Cloud SDKs to call Aspose REST APIs as SDKs take care of low-level details of authenticating, making requests, and handling responses and let you focus on writing code specific to your project. SDKs are provided for different programming languages and mobile platforms. So in order to access Cloud APIs using SDKs, you need to use your Client ID and Client Secret.
C# .NET
// 완전한 예제 및 데이터 파일은 https://github.com/aspose-words-cloud/aspose-words-cloud-dotnet 에서 확인하십시오.
using System;
using System.IO;
using Aspose.Words.Cloud.Sdk;
using Aspose.Words.Cloud.Sdk.Model;
using Aspose.Words.Cloud.Sdk.Model.Requests;
namespace Aspose.Words.Cloud.Examples.CSharp
{
public class ConvertPDFDocumentToWord
{
public static void Run()
{
WordsApi wordsApi = new WordsApi(Constants.AppKey, Constants.AppSID);
try
{
string fileName = "test_multi_pages.pdf";
string format = "docx";
string destName = "Out_test_multi_pages.docx";
// 원본 문서를 클라우드 스토리지에 업로드하세요.
wordsApi.UploadFile(new UploadFileRequest(File.Open("..\\..\\..\\Resources\\" + fileName, FileMode.Open), fileName, Constants.MYStorage));
SaveAsRequest request = new SaveAsRequest(fileName, new SaveOptionsData() { SaveFormat = format, FileName = destName }, null, Constants.MYStorage, null, null, null);
SaveResponse result = wordsApi.SaveAs(request);
}
catch (Exception e)
{
Console.WriteLine(e.ToString());
}
}
}
}
API References section
우리는 swagger 보기에서 Cloud API References에 액세스하기 위해 Client ID와 Client Secret을 사용해야 합니다. 따라서 swagger 보기에서 Aspose.Words Cloud에 액세스해야 하는 경우, Authorize 버튼을 클릭하고 Aspose.Cloud dashboard에서 얻은 개인화된 Client ID와 Client Secret 세부정보를 입력하세요.

Image 2 :- API 참조 자격 증명 화면 미리 보기
JWT 토큰 생성
명령 프롬프트를 통해 Cloud API를 사용하려면, 클라이언트 ID와 클라이언트 비밀을 사용하여 JWT 토큰을 생성해야 합니다.
curl -v "https://api.aspose.cloud/connect/token" \
-X POST \
-d "grant_type=client_credentials&client_id=xxxxxx-1c8e-4ea4-a948-3857547232fa&client_secret=xxxxxxx3e329cdf5694cc96a" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Accept: application/json"
JWT 토큰이 콘솔에 표시됩니다. 이제 같은 토큰을 사용하여 Aspose.Cloud API에 접근하고 필요한 기능을 수행할 수 있습니다. 다음 예제는 입력 marketing.pdf 파일을 MS Word (.docx)로 변환하는 방법을 보여줍니다. Aspose.Words Cloud API를 사용합니다.
curl -v "https://api.aspose.cloud/v4.0/words/marketing.pdf/saveAs" \
-X PUT \
-d "{'SaveFormat':'docx', 'FileName': 'Converted.docx'}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "Authorization: Bearer <JWT Access Token>"
결론
클라우드 API는 신뢰할 수 있고 원하는 기능을 신속하게 수행하는 편리한 방법입니다. 소프트웨어를 다운로드하거나 설치할 필요가 없습니다. 또한, 인증 계층은 추가적인 보안 감각을 제공하며, 귀하의 개인 데이터는 오직 귀하만 접근할 수 있습니다. 저희의 Cloud APIs를 사용해 보시고, 문제가 발생할 경우 Product support forums에 질문을 자유롭게 남겨 주시기 바랍니다.