Esempio n. 1
0
 /// <summary>
 /// Sends a request of authentication
 /// </summary>
 public Authenticate(Credentials credentials)
 {
     this.Address = new Uri($"https://authserver.mojang.com/authenticate");
     this.Arguments.Add(credentials.Username);
     this.Arguments.Add(credentials.Password);
 }
Esempio n. 2
0
 /// <summary>
 /// Refreshes the access token. Must be the same instance as authenticate.
 /// </summary>
 public Signout(Credentials credentials)
 {
     this.Address = new Uri($"https://authserver.mojang.com/signout");
     this.Arguments.Add(credentials.Username);
     this.Arguments.Add(credentials.Password);
 }