Skip to content

Commit c8c6294

Browse files
Copilotfadidurah
andcommitted
Add AI instructions to check GitHub releases API for latest MSAL version
Co-authored-by: fadidurah <[email protected]>
1 parent 0771472 commit c8c6294

File tree

5 files changed

+16
-4
lines changed

5 files changed

+16
-4
lines changed

.github/copilot-instructions.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@
4848
- Enable broker integration (`broker_redirect_uri_registered: true`)
4949
- Copy patterns from golden examples: [`examples/hello-msal-multiple-account/`](../examples/hello-msal-multiple-account/) or [`examples/hello-msal-single-account/`](../examples/hello-msal-single-account/)
5050
- Prompt for `client_id`, `package_name`, and `signature_hash` if missing
51+
- Check the latest MSAL version via GitHub releases API when providing version guidance:
52+
- API endpoint: `https://api.github.com/repos/AzureAD/microsoft-authentication-library-for-android/releases/latest`
53+
- Parse the `tag_name` field (e.g., "v8.1.1") for the current version
54+
- Recommend `8.+` in build.gradle for automatic updates within the 8.x series
5155

5256
## 2. Authoritative Sources
5357

.github/issue-responses/customer-communication-guidelines.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ Thank you for reporting this issue! We appreciate you taking the time to help us
180180

181181
I'm looking into this now and will provide an update shortly. In the meantime, could you please provide:
182182

183-
1. **MSAL Version**: (e.g., 8.1.0)
183+
1. **MSAL Version**: (e.g., 8.+, currently 8.1.1)
184184
2. **Android Version**: (Device API level)
185185
3. **Account Mode**: (Single or Multiple)
186186
4. **Complete error message or stack trace**

.github/workflows/copilot-issue-response.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ jobs:
198198
if (needsInfo) {
199199
response += `To help us investigate this issue, please provide the following information:\n\n`;
200200
response += `**Required Information:**\n`;
201-
response += `- [ ] MSAL version (e.g., 8.1.0)\n`;
201+
response += `- [ ] MSAL version (e.g., 8.+, currently 8.1.1)\n`;
202202
response += `- [ ] Android version and device model\n`;
203203
response += `- [ ] Account mode (Single or Multiple)\n`;
204204
response += `- [ ] Complete error message or stack trace\n`;

Ai.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,11 @@ Add these activities to your AndroidManifest.xml inside the `<application>` tag:
186186
## Important Notes
187187
1. The signature hash in AndroidManifest.xml should NOT be URL encoded
188188
2. The redirect URI in auth_config.json MUST be URL encoded
189-
3. The latest MSAL version (8.+ or newer) should be used
189+
3. The latest MSAL version should be used (8.+, currently 8.1.1)
190+
- **For AI agents:** Query the latest version via GitHub releases API:
191+
- `https://api.github.com/repos/AzureAD/microsoft-authentication-library-for-android/releases/latest`
192+
- Parse the `tag_name` field (e.g., "v8.1.1")
193+
- Use `8.+` in build.gradle for automatic updates within the 8.x series
190194
4. Broker integration (Microsoft Authenticator, Company Portal, or Link To Windows) is strongly recommended and should always be enabled for enhanced security and SSO capabilities. Only disable broker integration if explicitly required by the user. See broker_redirect_uri_registered field in [auth_config.template.json](./auth_config.template.json) for configuration.
191195
5. Device Code Flow is not recommended due to security concerns in the industry. The AcquireToken authentication method should be used instead. There are some niche scenarios where some devices lack the input methods necessary for AcquireToken, and need to use AcquireTokenWithDeviceCode.
192196

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,14 @@ Add to your app's build.gradle:
5555

5656
```gradle
5757
dependencies {
58-
implementation 'com.microsoft.identity.client:msal:8.+' // Always use latest version (currently 8.+)
58+
implementation 'com.microsoft.identity.client:msal:8.+' // Always use latest version in 8.x series
5959
}
6060
```
6161

62+
> **Note for AI agents:** To get the current latest version, query the GitHub releases API:
63+
> `https://api.github.com/repos/AzureAD/microsoft-authentication-library-for-android/releases/latest`
64+
> Look for the `tag_name` field (e.g., "v8.1.1"). The `8.+` pattern in build.gradle automatically fetches the latest 8.x version at build time.
65+
6266
Please also add the following lines to your repositories section in your gradle script:
6367

6468
```gradle

0 commit comments

Comments
 (0)