Class CookieMsaAuthService

java.lang.Object
net.raphimc.minecraftauth.msa.service.MsaAuthService
com.soulfiremc.server.account.CookieMsaAuthService

public class CookieMsaAuthService extends net.raphimc.minecraftauth.msa.service.MsaAuthService
MsaAuthService implementation that exchanges Microsoft Live browser cookies for an MsaToken. Uses prompt=none to silently obtain an authorization code from existing session cookies, then exchanges the code for tokens via the standard MsaAuthCodeTokenRequest.
  • Field Summary

    Fields inherited from class net.raphimc.minecraftauth.msa.service.MsaAuthService

    applicationConfig, httpClient
  • Constructor Summary

    Constructors
    Constructor
    Description
    CookieMsaAuthService(net.lenni0451.commons.httpclient.HttpClient httpClient, net.raphimc.minecraftauth.msa.model.MsaApplicationConfig applicationConfig, String cookieHeader)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    net.raphimc.minecraftauth.msa.model.MsaToken
     

    Methods inherited from class net.raphimc.minecraftauth.msa.service.MsaAuthService

    acquireTokenAsync, acquireTokenUnchecked, getApplicationConfig, getHttpClient

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • CookieMsaAuthService

      public CookieMsaAuthService(net.lenni0451.commons.httpclient.HttpClient httpClient, net.raphimc.minecraftauth.msa.model.MsaApplicationConfig applicationConfig, String cookieHeader)
  • Method Details

    • acquireToken

      public net.raphimc.minecraftauth.msa.model.MsaToken acquireToken() throws IOException
      Specified by:
      acquireToken in class net.raphimc.minecraftauth.msa.service.MsaAuthService
      Throws:
      IOException