CmlLib
한국어 (v3)
한국어 (v3)
  • 🧊CmlLib Projects
  • [AD] 커스텀 런처 주문제작
  • 🚀CmlLib.Core
    • 홈
    • 시작하기
      • CMLauncher
      • 게임 경로 설정
      • 실행 옵션 설정
      • 이벤트 처리
    • 로그인과 세션
      • 마이크로소프트 엑스박스 계정
      • 예전 모장 계정
      • 오프라인 계정
    • 고급 기능
      • VersionLoader
      • Version
      • FileChecker
      • Downloader
    • 모드 로더 인스톨러
      • Forge Installer
      • Fabric Installer
      • LiteLoader Installer
    • 유틸리티
      • Minecraft Changelogs
    • 자료
      • 자주 묻는 질문
      • 알려진 문제
      • 예시 런처
      • 라이센스
  • 🔓Auth.Microsoft
    • 홈
    • CmlLib.Core.Auth.Microsoft
      • JELoginHandler
      • JELoginHandlerBuilder
      • JEAuthenticator
    • XboxAuthNet.Game
      • OAuth
      • XboxAuth
      • XboxAuthException
      • AccountManager
      • Accounts
    • XboxAuthNet.Game.Msal
      • ClientID
      • MsalClientHelper
      • OAuth
    • CmlLib.Core.Bedrock.Auth
    • 자료
  • 🌐MojangAPI
    • 홈
    • Mojang API
    • SecurityQuestion
  • ⚒️Installer.Forge
    • 홈
    • 지원되는 버전
    • 시작하기
    • MForge
    • ForgeVersionLoader
Powered by GitBook
On this page
  • Example
  • CreateDefaultApplicationBuilder(string cid)
  • RegisterCache(IPublicClientApplication app, MsalCacheSettings cacheSettings)
  • RegisterCache(IPublicClientApplication app, StorageCreationProperties storageProperties)
  • BuildApplication(string cid)
  • BuildApplicationWithCache(string cid)
  • BuildApplicationWithCache(string cid, MsalCacheSettings cacheSettings)
  • BuildApplicationWithCache(string cid, StorageCreationProperties storageProperties)
  • ToMicrosoftOAuthResponse(AuthenticationResult result)
Edit on GitHub
  1. Auth.Microsoft
  2. XboxAuthNet.Game.Msal

MsalClientHelper

IPublicClientApplication 초기화를 위한 Helper 메서드를 제공합니다.

Example

using XboxAuthNet.Game.Msal;

IPublicClientApplication app = await MsalClientHelper.BuildApplicationWithCache("<CLIENT-ID>");

<CLIENT-ID> 에 발급받은 Azure App Id 를 입력하면 됩니다. 자세한 내용은 ClientID 문서를 참고하세요.

CreateDefaultApplicationBuilder(string cid)

Xbox authentication 을 위해 설정된 PublicClientApplicationBuilder 인스턴스를 만들어 반환합니다.

RegisterCache(IPublicClientApplication app, MsalCacheSettings cacheSettings)

캐시 설정 객체인 cacheSettings 를 app 에 적용합니다.

RegisterCache(IPublicClientApplication app, StorageCreationProperties storageProperties)

캐시 설정 객체인 storageProperties 를 app 에 적용합니다.

BuildApplication(string cid)

Xbox authentication 을 위해 설정된 IPublicClientApplication 을 만들어 반환합니다.

BuildApplicationWithCache(string cid)

Xbox authentication 을 위해 설정된 IPublicClientApplication 을 만들고 기본 계정 캐시 설정을 적용하여 반환합니다.

기본 캐시 설정은 다음과 같습니다:

BuildApplicationWithCache(string cid, MsalCacheSettings cacheSettings)

Xbox authentication 을 위해 설정된 IPublicClientApplication 을 만들고 캐시 설정인 cacheSettings 를 적용하여 반환합니다.

BuildApplicationWithCache(string cid, StorageCreationProperties storageProperties)

Xbox authentication 을 위햇 설정된 IPublicClientApplication 을 만들고 캐시 설정인 storageProperties 를 적용하여 반환합니다.

ToMicrosoftOAuthResponse(AuthenticationResult result)

MSAL 로그인 결과인 AuthenticationResult 를 XboxAuthNet 와 CmlLib.Core.Auth.Microsoft 에서 사용하는 MicrosoftOAuthResponse 객체로 변환합니다.

PreviousClientIDNextOAuth

Last updated 1 year ago

🔓