Skip to content

Commit 3adfd6d

Browse files
committed
add API references
1 parent d373f05 commit 3adfd6d

26 files changed

Lines changed: 113 additions & 120 deletions

en/INSTRUCTIONS.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,16 @@ do the following:
5656
- API Reference
5757
- [CmlLib.Core](https://cmllib.github.io/CmlLib.Core/api/toc.html)
5858
- [CmlLib.Core.Commons](https://cmllib.github.io/CmlLib.Core.Commons/api/toc.html)
59+
- [CmlLib.Core.Auth.Microsoft](https://cmllib.github.io/CmlLib.Core.Auth.Microsoft/api/toc.html)
60+
- [CmlLib.Core.Installer.Forge](https://cmllib.github.io/CmlLib.Core.Installer.Forge/api/toc.html)
5961
- NuGet packages:
6062
- [CmlLib.Core](https://www.nuget.org/packages/CmlLib.Core)
6163
- [CmlLib.Core.Auth.Microsoft](https://www.nuget.org/packages/CmlLib.Core.Auth.Microsoft)
64+
- [CmlLib.Core.Installer.Forge](https://www.nuget.org/packages/CmlLib.Core.Installer.Forge)
6265
- Source codes:
6366
- [CmlLib.Core](https://github.com/CmlLib/CmlLib.Core)
6467
- [CmlLib.Core.Auth.Microsoft](https://github.com/CmlLib/CmlLib.Core.Auth.Microsoft)
68+
- [CmlLib.Core.Installer.Forge](https://github.com/CmlLib/CmlLib.Core.Installer.Forge)
6569
- LLM metadata:
6670
- [llms.txt](https://cmllib.github.io/CmlLib.Core-wiki/en/llms.txt)
6771
- [llms-full.txt](https://cmllib.github.io/CmlLib.Core-wiki/en/llms-full.txt)

en/auth.microsoft/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,11 @@ Provides functionality commonly used by `CmlLib.Core.Auth.Microsoft` and `CmlLib
1919
## [XboxAuthNet.Game.Msal](xboxauthnet.game.msal/README.md)
2020

2121
By default, `CmlLib.Core.Auth.Microsoft` and `CmlLib.Core.Bedrock.Auth` only work on Windows. `XboxAuthNet.Game.Msal` provides extensions for use on other platforms such as Linux and macOS.
22+
23+
## API Reference
24+
25+
For accurate type information, namespace, and method signatures, refer to the [API Reference](https://cmllib.github.io/CmlLib.Core.Auth.Microsoft/api/toc.html). When using with LLMs, make sure to include this URL as well.
26+
27+
## LLM
28+
29+
[llms.txt](https://cmllib.github.io/CmlLib.Core-wiki/en/llms.txt) is provided.

en/auth.microsoft/cmllib.core.auth.microsoft/authentication-with-msal.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,3 +82,11 @@ var session = await authenticator.ExecuteForLauncherAsync();
8282
```
8383

8484
For more methods in MSAL, such as `msal.Interactive()`, `msal.Silent()`, and more, see [OAuth](../xboxauthnet.game.msal/oauth.md).
85+
86+
## API Reference
87+
88+
- [JELoginHandler](https://cmllib.github.io/CmlLib.Core.Auth.Microsoft/api/CmlLib.Core.Auth.Microsoft.JELoginHandler.html)
89+
- [MsalClientHelper](https://cmllib.github.io/CmlLib.Core.Auth.Microsoft/api/XboxAuthNet.Game.Msal.MsalClientHelper.html)
90+
- [MsalCodeFlowProvider](https://cmllib.github.io/CmlLib.Core.Auth.Microsoft/api/XboxAuthNet.Game.Msal.OAuth.MsalCodeFlowProvider.html)
91+
- [MsalDeviceCodeProvider](https://cmllib.github.io/CmlLib.Core.Auth.Microsoft/api/XboxAuthNet.Game.Msal.OAuth.MsalDeviceCodeProvider.html)
92+
- [MsalOAuthBuilder](https://cmllib.github.io/CmlLib.Core.Auth.Microsoft/api/XboxAuthNet.Game.Msal.MsalOAuthBuilder.html)

en/auth.microsoft/cmllib.core.auth.microsoft/jeauthenticator.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,8 @@ If the OAuth token is from third-party client id, you should register the client
4444
### 404: NOT_FOUND
4545

4646
The user doesn't have the game. (Demo version)
47+
48+
## API Reference
49+
50+
- [Extensions](https://cmllib.github.io/CmlLib.Core.Auth.Microsoft/api/CmlLib.Core.Auth.Microsoft.Extensions.html)
51+
- [JEAuthenticatorBuilder](https://cmllib.github.io/CmlLib.Core.Auth.Microsoft/api/CmlLib.Core.Auth.Microsoft.Authenticators.JEAuthenticatorBuilder.html)

en/auth.microsoft/cmllib.core.auth.microsoft/jeloginhandler.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,3 +219,11 @@ Set Xbox authentication mode. Instead of `xbox => xbox.Basic()`, there are many
219219
### 4. JEAuthenticator
220220

221221
Set Minecraft: JE authentication mode. See [JEAuthenticator](jeauthenticator.md).
222+
223+
## API Reference
224+
225+
- [JELoginHandler](https://cmllib.github.io/CmlLib.Core.Auth.Microsoft/api/CmlLib.Core.Auth.Microsoft.JELoginHandler.html)
226+
- [Extensions](https://cmllib.github.io/CmlLib.Core.Auth.Microsoft/api/CmlLib.Core.Auth.Microsoft.Extensions.html)
227+
- [JEAuthenticatorBuilder](https://cmllib.github.io/CmlLib.Core.Auth.Microsoft/api/CmlLib.Core.Auth.Microsoft.Authenticators.JEAuthenticatorBuilder.html)
228+
- [JEGameAccount](https://cmllib.github.io/CmlLib.Core.Auth.Microsoft/api/CmlLib.Core.Auth.Microsoft.Sessions.JEGameAccount.html)
229+
- [IXboxGameAccountManager](https://cmllib.github.io/CmlLib.Core.Auth.Microsoft/api/XboxAuthNet.Game.Accounts.IXboxGameAccountManager.html)

en/auth.microsoft/cmllib.core.auth.microsoft/jeloginhandlerbuilder.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,9 @@ If you pass a string type, this method will call `WithAccountManager(new JsonXbo
3232
### WithLogger
3333

3434
Set [ILogger](https://learn.microsoft.com/en-us/dotnet/api/microsoft.extensions.logging.ilogger?view=dotnet-plat-ext-7.0) for logging. This library use [Microsoft.Extensions.Logging](https://learn.microsoft.com/en-us/dotnet/core/extensions/logging?tabs=command-line) to logging.
35+
36+
## API Reference
37+
38+
- [JELoginHandler](https://cmllib.github.io/CmlLib.Core.Auth.Microsoft/api/CmlLib.Core.Auth.Microsoft.JELoginHandler.html)
39+
- [JELoginHandlerBuilder](https://cmllib.github.io/CmlLib.Core.Auth.Microsoft/api/CmlLib.Core.Auth.Microsoft.JELoginHandlerBuilder.html)
40+
- [IXboxGameAccountManager](https://cmllib.github.io/CmlLib.Core.Auth.Microsoft/api/XboxAuthNet.Game.Accounts.IXboxGameAccountManager.html)

en/auth.microsoft/xboxauthnet.game.msal/clientid.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ Click 'Save' button
4545

4646
## 4. Register Client ID
4747

48+
After creating your application in Azure, you need to allowlist your Client ID to prevent 403: FORBIDDEN errors from the Minecraft authentication API. Follow the guidance in the official Minecraft help article to ensure your application is recognized.
49+
4850
https://help.minecraft.net/hc/en-us/articles/16254801392141
4951

5052
https://github.com/CmlLib/CmlLib.Core.Auth.Microsoft/issues/16

en/auth.microsoft/xboxauthnet.game.msal/msalclienthelper.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,7 @@ Create an `IPublicClientApplication` set up for Xbox authentication and return i
4747
## ToMicrosoftOAuthResponse(AuthenticationResult result)
4848

4949
Convert the MSAL login result, `AuthenticationResult`, to a `MicrosoftOAuthResponse` object used by `XboxAuthNet`.
50+
51+
## API Reference
52+
53+
- [MsalClientHelper](https://cmllib.github.io/CmlLib.Core.Auth.Microsoft/api/XboxAuthNet.Game.Msal.MsalClientHelper.html)

en/auth.microsoft/xboxauthnet.game.msal/oauth.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,3 +86,7 @@ authenticator.AddMsalOAuth(app, msal => msal.FromResult(result));
8686
```
8787

8888
Use MSAL authentication result.
89+
90+
## API Reference
91+
92+
- [MsalOAuthBuilder](https://cmllib.github.io/CmlLib.Core.Auth.Microsoft/api/XboxAuthNet.Game.Msal.MsalOAuthBuilder.html)

en/auth.microsoft/xboxauthnet.game/accountmanager.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,8 @@ loginHandler.AccountManager.ClearAccounts();
4949
```csharp
5050
loginHandler.AccountManager.SaveAccounts();
5151
```
52+
53+
## API Reference
54+
55+
- [JEGameAccount](https://cmllib.github.io/CmlLib.Core.Auth.Microsoft/api/CmlLib.Core.Auth.Microsoft.Sessions.JEGameAccount.html)
56+
- [IXboxGameAccountManager](https://cmllib.github.io/CmlLib.Core.Auth.Microsoft/api/XboxAuthNet.Game.Accounts.IXboxGameAccountManager.html)

0 commit comments

Comments
 (0)