Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
154 commits
Select commit Hold shift + click to select a range
5edd1ce
update Organizations docs for My Org
brittany-okta Mar 11, 2026
eae061a
added warning in
brittany-okta Mar 13, 2026
90ab62b
typo fixes
brittany-okta Mar 17, 2026
cab9878
removed todos
brittany-okta Mar 17, 2026
e2b7a11
Updates to file
avanscoy Mar 25, 2026
21a762c
Fix formatting and wording in enable-connections.md
avanscoy Mar 25, 2026
0abda21
extra line
brittany-okta Mar 25, 2026
52ea5ca
update api explorer links
brittany-okta Apr 13, 2026
417cdc2
feat: add mgmt-api redirects (#720)
darrickyong Mar 11, 2026
7edf2cb
feat: update myoranization api docs (#758)
mikemimik Mar 11, 2026
e18018b
Revamp Java Springboot API Quickstart (#530)
tanya732 Mar 12, 2026
9df8fda
docs: update private cloud region documentation (#686)
nick-gagliardi Mar 12, 2026
e5aed64
feat: replicate mgmt-api index (#764)
darrickyong Mar 13, 2026
6b6836a
fixed cli command attribution (#763)
brth31 Mar 16, 2026
1f49bbf
fix: update myorganization oas (#768)
mikemimik Mar 16, 2026
9908cac
Updated to use backticks instead of div (#774)
avanscoy Mar 17, 2026
e591aaf
feat/refresh-session-metadata-use-cases (#747)
BcnCarlos Mar 17, 2026
e383de0
docs: add supported liquid variables for phone message templates (#778)
hazel-nut Mar 17, 2026
6a10d0c
refactor: clean up main/docs dir (#780)
hazel-nut Mar 17, 2026
d1c24d5
chore: update MyAccount API OAS artifacts (#779)
auth0-docs-automation[bot] Mar 17, 2026
ec817e8
Updated for session clarity and typos on Akamai (#785)
avanscoy Mar 18, 2026
131d616
Updated for clarity on phone number (#783)
avanscoy Mar 18, 2026
90bb84a
chore: update redirects for myaccount pages (#789)
agiannelli-auth0 Mar 18, 2026
e11289f
feat: update MyOrganization API docs (#787)
mikemimik Mar 19, 2026
502f2dd
docs: remove UI components page (#521)
hazel-nut Mar 19, 2026
b341520
docs: update front matter docs (#516)
hazel-nut Mar 19, 2026
5750cc3
chore: update MyAccount API OAS artifacts (#801)
auth0-docs-automation[bot] Mar 20, 2026
8e57a30
docs: add write org endpoint rate limits (#797)
hazel-nut Mar 20, 2026
4d1852a
feat: add ja-jp and fr-ca translations for api reference page (#793)
smwest3 Mar 20, 2026
e5ecf8d
removed invalid key from passkey section (#800)
avanscoy Mar 20, 2026
fa271ee
chore: update MyOrganization API OAS artifacts (#802)
auth0-docs-automation[bot] Mar 20, 2026
12dd052
chore: update Management API OAS artifacts (#803)
auth0-docs-automation[bot] Mar 20, 2026
8e9aaab
Fix: next js quickstart (#791)
rengarajan01 Mar 21, 2026
c75d222
fix: update Custom Token Exchange limitations (#765)
dlozlla Mar 23, 2026
fe1a763
fix: markdown table formatting (#806)
hazel-nut Mar 23, 2026
02c94be
feat: Implement adobe tag manager (#766)
smwest3 Mar 23, 2026
1416743
chore: update MyOrganization API OAS artifacts (#813)
auth0-docs-automation[bot] Mar 23, 2026
bb49c59
Updates for Deprecations (#794)
avanscoy Mar 23, 2026
fdb5796
chore: update Management API OAS artifacts (#814)
auth0-docs-automation[bot] Mar 23, 2026
8fdb2d9
fix(actions): replace event.request.query.audience with event?.resour…
agupta-ghub Mar 23, 2026
efa5eaa
docs(quickstarts): add FastAPI/Fastify cards, fix labels, logos and R…
rengarajan01 Mar 24, 2026
629d5db
Revamp MAUI quickstart (#753)
kailash-b Mar 24, 2026
7468809
chore: update custom-token-exchange event docs (#805)
wtwerner Mar 24, 2026
5757fbb
Create Landing Page for API Explorer
brittany-okta Mar 24, 2026
5a900b1
Create My_Organization_API_-_Activate.png
brittany-okta Mar 24, 2026
6a92210
Add files via upload
brittany-okta Mar 24, 2026
e4a8bee
Delete main/docs/images/api/myorganization/My_Organization_API_-_Acti…
brittany-okta Mar 24, 2026
6eb8c13
Rename my-org-api-activate.png to My_Organization_API_-_Activate.png
brittany-okta Mar 24, 2026
bfa209d
Update My Organization API documentation
brittany-okta Mar 24, 2026
2f57106
Revise My Organization API activation documentation
brittany-okta Mar 25, 2026
698810b
Update main/docs/api/myorganization/index.mdx
brittany-okta Apr 2, 2026
e4406aa
Update main/docs/api/myorganization/index.mdx
brittany-okta Apr 2, 2026
af15e1f
Update main/docs/api/myorganization/index.mdx
brittany-okta Apr 2, 2026
66324aa
Update main/docs/api/myorganization/index.mdx
brittany-okta Apr 2, 2026
6ce9b5e
Update main/docs/api/myorganization/index.mdx
brittany-okta Apr 2, 2026
8486bd6
chore: update MyOrganization API OAS artifacts (#820)
auth0-docs-automation[bot] Mar 24, 2026
6899e70
chore: update MyAccount API OAS artifacts (#819)
auth0-docs-automation[bot] Mar 24, 2026
b00ed24
Broken link and remove limited from EA notices (#812)
avanscoy Mar 24, 2026
88df28e
fix: convert html table to md table in custom db article (#817)
hazel-nut Mar 24, 2026
a37863c
docs: update linking account code sample for node sdk v5 (#796)
hazel-nut Mar 24, 2026
d635fc3
docs: remove manual duplication of action trigger props (#825)
hazel-nut Mar 24, 2026
6e10de3
Update create-tenants.mdx (#431)
nick-gagliardi Mar 24, 2026
2a80758
Update some references from TAMs to account team or Support (#804)
avanscoy Mar 24, 2026
361f57e
docs: add username to session-clearing attributes list (#815)
antonio-ortells Mar 24, 2026
bf695ee
chore: update MyOrganization API OAS artifacts (#826)
auth0-docs-automation[bot] Mar 24, 2026
5096b26
chore: remove EA notice from MRRT docs (#822)
nick-gagliardi Mar 24, 2026
10519fb
Docs 5354 (#556)
BcnCarlos Mar 24, 2026
133bd4f
docs: clarify back-channel logout uses async queue (#816)
antonio-ortells Mar 24, 2026
48b7d83
Validated architecture scenarios (#551)
lrzhou25 Mar 24, 2026
b82c4fa
chore: update MyAccount API OAS artifacts (#829)
auth0-docs-automation[bot] Mar 25, 2026
1e2ba13
chore: update Management API OAS artifacts (#832)
auth0-docs-automation[bot] Mar 25, 2026
b1443e5
Update log-streams.mdx (#833)
nick-gagliardi Mar 26, 2026
0806f63
fix: do not proxy playground api (#834)
mikemimik Mar 26, 2026
25ccc1e
chore: update MyAccount API OAS artifacts (#838)
auth0-docs-automation[bot] Mar 26, 2026
92de838
fix: Connected Accounts (#837)
lrzhou25 Mar 26, 2026
a312137
chore: update MyOrganization API OAS artifacts (#839)
auth0-docs-automation[bot] Mar 26, 2026
710f4d2
fix: removed mcp menu options from docs.json (#841)
lrzhou25 Mar 26, 2026
6cd2153
merge conflicts
brittany-okta Apr 13, 2026
15c6026
chore: update Management API OAS artifacts (#840)
auth0-docs-automation[bot] Mar 26, 2026
e8d5e40
docs: remove outdated regex for email validation (#846)
hazel-nut Mar 27, 2026
57f4dd7
chore: update MyOrganization API OAS artifacts (#847)
auth0-docs-automation[bot] Mar 27, 2026
64a9c1d
chore: update Management API OAS artifacts (#848)
auth0-docs-automation[bot] Mar 27, 2026
2d00c6d
Fix for markdown table (#849)
avanscoy Mar 27, 2026
a1cfa82
Adding Actions Real-time Logs troubleshooting section (#775)
daniloasis-auth0 Mar 29, 2026
89c71fa
chore: update MyAccount API OAS artifacts (#857)
auth0-docs-automation[bot] Mar 30, 2026
d0eae36
chore: update MyOrganization API OAS artifacts (#858)
auth0-docs-automation[bot] Mar 30, 2026
cf36c18
chore: update Management API OAS artifacts (#859)
auth0-docs-automation[bot] Mar 30, 2026
8ef47af
chore: update MyAccount API OAS artifacts (#867)
auth0-docs-automation[bot] Mar 31, 2026
8552382
chore: update MyOrganization API OAS artifacts (#868)
auth0-docs-automation[bot] Mar 31, 2026
e09975c
chore: update Management API OAS artifacts (#869)
auth0-docs-automation[bot] Mar 31, 2026
a3a9a20
Update set-up-apis.mdx (#872)
nick-gagliardi Apr 1, 2026
b3d49d7
fix: update image links in footer (#871)
mikemimik Apr 1, 2026
6159d94
fix: correct table indentation for nested tables in numbered lists (#…
nick-gagliardi Apr 1, 2026
acb9b64
chore: update MyAccount API OAS artifacts (#874)
auth0-docs-automation[bot] Apr 1, 2026
4e0019a
chore: update MyOrganization API OAS artifacts (#875)
auth0-docs-automation[bot] Apr 1, 2026
fa4a555
chore: update Management API OAS artifacts (#876)
auth0-docs-automation[bot] Apr 1, 2026
2c9d356
feat: update docs.json api config (#877)
abrien20 Apr 1, 2026
63fb368
Revamp WinForms/WPF quickstart (#761)
kailash-b Apr 2, 2026
c7e16de
fix: smtp-email-providers broken link (#879)
nick-gagliardi Apr 2, 2026
6537014
fix/update-acul-docs (#881)
BcnCarlos Apr 2, 2026
44e3e83
chore: update MyOrganization API OAS artifacts (#882)
auth0-docs-automation[bot] Apr 2, 2026
9cb7f85
chore: update Management API OAS artifacts (#883)
auth0-docs-automation[bot] Apr 2, 2026
7cf04c0
feat/DOCS-5404-update-partials-docs (#755)
BcnCarlos Apr 2, 2026
bc04e1f
chore: update MyOrganization API OAS artifacts (#886)
auth0-docs-automation[bot] Apr 3, 2026
70bbfb8
chore: update Management API OAS artifacts (#885)
auth0-docs-automation[bot] Apr 6, 2026
c6c331e
Update product-release-stages.mdx (#887)
carleennikzia0 Apr 6, 2026
c067843
[Auth API] Create redirects in `docs.json` to account for URL structu…
KelsiAnderson Apr 6, 2026
343dc14
chore: update MyOrganization API OAS artifacts (#888)
auth0-docs-automation[bot] Apr 6, 2026
efe2b8a
chore: update Management API OAS artifacts (#889)
auth0-docs-automation[bot] Apr 6, 2026
cfe985a
chore: update Authentication API OAS artifacts (#891)
auth0-docs-automation[bot] Apr 6, 2026
ac2fb71
feat: migrate events catalog overview to docs-v2 (#884)
KelsiAnderson Apr 6, 2026
2763081
Revert "feat: migrate events catalog overview to docs-v2 (#884)" (#892)
KelsiAnderson Apr 6, 2026
f133324
Removing setIUserId for now (#893)
daniloasis-auth0 Apr 7, 2026
7e75cb5
fix: assorted broken links in English docs (#390)
btiernay Apr 7, 2026
5d25609
docs: clarify actions definition in custom db docs (#648)
nick-gagliardi Apr 7, 2026
9851019
docs: content maintenance/ child tenants (#731)
nick-gagliardi Apr 7, 2026
afd8ccf
chore(docs): content maintenance (2026-03-04) (#733)
nick-gagliardi Apr 7, 2026
2cb1431
docs: update phone template variables (& doc structure) (#795)
hazel-nut Apr 7, 2026
bed1752
chore: update Management API OAS artifacts (#900)
auth0-docs-automation[bot] Apr 7, 2026
b22d17d
chore: update MyOrganization API OAS artifacts (#898)
auth0-docs-automation[bot] Apr 7, 2026
5ad4361
chore: update CODEOWNERS to include events under docs-mgmt (#901)
agiannelli-auth0 Apr 7, 2026
b20ef7e
chore: update Events Catalog artifacts (#897)
auth0-docs-automation[bot] Apr 7, 2026
8e67145
fix/universal-login-internationalization (#878)
BcnCarlos Apr 8, 2026
6e14281
docs: convert example ws-fed rule to action (#853)
patkub Apr 8, 2026
6ce271e
Feat/mcd ga documentation (#701)
nick-gagliardi Apr 8, 2026
b666e0e
docs: add metadata placeholder support for Third Party Initiated Logi…
dlozlla Apr 8, 2026
4f9f053
SuperFed GA release (#842)
avanscoy Apr 8, 2026
1957774
Fix/DR-2754-update-events-docs (#850)
BcnCarlos Apr 8, 2026
66981a7
chore: add `.mintignore` to `main` (#908)
nlucero Apr 8, 2026
0272562
Akamai Supplement Signal GA update (#830)
avanscoy Apr 8, 2026
6cb81aa
feat: update styling on API Explorer pills (#909)
darrickyong Apr 8, 2026
6052b60
docs: Added agent skill reference to Android quickstart (#911)
pmathew92 Apr 9, 2026
bc8988d
feat: serve custom agent skills via Mintlify discovery endpoint (#912)
brth31 Apr 9, 2026
7ec90d1
fix/DR-2756-Update-rate-limits (#851)
BcnCarlos Apr 9, 2026
09b0e22
First draft My Org API for Docs (#807)
avanscoy Apr 9, 2026
81b07a0
feat: add card + section for myorg api to api reference page (#790)
smwest3 Apr 9, 2026
e6949a5
feat: Mintlify components integration documentations (#744)
grandmaester Apr 9, 2026
1c2710c
Fix/add-warning-customize-classic-login (#913)
BcnCarlos Apr 9, 2026
e3dda7b
fix: update universal-components-overview.mdx (#916)
nick-gagliardi Apr 9, 2026
7c3d6e4
chore: update Events Catalog artifacts (#915)
auth0-docs-automation[bot] Apr 9, 2026
085c853
Feat/docs 5414 dpop for enterprise connections (#895)
avanscoy Apr 9, 2026
e371f23
chore: update MyOrganization API OAS artifacts (#919)
auth0-docs-automation[bot] Apr 9, 2026
e6203fb
chore: update Events Catalog artifacts (#918)
auth0-docs-automation[bot] Apr 9, 2026
259530e
chore: update Management API OAS artifacts (#920)
auth0-docs-automation[bot] Apr 9, 2026
2654355
doc: updated the android quickstart with applinks configuration (#924)
pmathew92 Apr 10, 2026
fff7c8c
docs: remove random kibana mention (#923)
hazel-nut Apr 10, 2026
11f5f12
docs: add srrt log type code (#921)
hazel-nut Apr 10, 2026
8762076
docs: tenant acl canonical domain changes (#922)
hazel-nut Apr 10, 2026
711021f
chore: update Events Catalog artifacts (#925)
auth0-docs-automation[bot] Apr 10, 2026
2e85391
chore: update MyAccount API OAS artifacts (#926)
auth0-docs-automation[bot] Apr 10, 2026
9b37a36
chore: update MyOrganization API OAS artifacts (#931)
auth0-docs-automation[bot] Apr 13, 2026
2ba5f83
chore: update Management API OAS artifacts (#933)
auth0-docs-automation[bot] Apr 13, 2026
6cf2962
fix merge conflicts
brittany-okta Apr 13, 2026
9ada08f
resolve conflicts
brittany-okta Apr 13, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
5 changes: 4 additions & 1 deletion .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,15 @@ scripts @auth0/project-docs-management-codeowner
**/package-lock.json @auth0/project-docs-management-codeowner
**/CLAUDE.md @auth0/project-docs-management-codeowner

# Docs Management ownership for generated API references
# Docs Management ownership for generated API & Schema references
main/docs/api.mdx @auth0/project-docs-management-codeowner
main/docs/api @auth0/project-docs-management-codeowner
main/docs/fr-ca/api @auth0/project-docs-management-codeowner
main/docs/ja-jp/api @auth0/project-docs-management-codeowner
main/docs/oas @auth0/project-docs-management-codeowner
main/docs/events @auth0/project-docs-management-codeowner
main/docs/fr-ca/events @auth0/project-docs-management-codeowner
main/docs/ja-jp/events @auth0/project-docs-management-codeowner

# Shared ownership for shared config files
.github @auth0/project-docs-writers-codeowner @auth0/project-docs-management-codeowner
Expand Down
71 changes: 71 additions & 0 deletions .github/workflows/sync-agent-skills.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
name: Sync agent skills

on:
schedule:
- cron: '23 9 * * 1' # Weekly Monday 9:23 UTC
workflow_dispatch:

jobs:
sync-skills:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write

steps:
- name: Checkout docs-v2
uses: actions/checkout@v4

- name: Fetch latest skills from agent-skills
run: |
SKILLS_DIR="main/.mintlify/skills"
REPO_URL="https://github.com/auth0/agent-skills.git"
TEMP_DIR=$(mktemp -d)

git clone --depth 1 --sparse "$REPO_URL" "$TEMP_DIR"
cd "$TEMP_DIR"
git sparse-checkout set plugins/*/skills/*/SKILL.md
cd -

rm -rf "$SKILLS_DIR"
mkdir -p "$SKILLS_DIR"

for skill_file in "$TEMP_DIR"/plugins/*/skills/*/SKILL.md; do
skill_name=$(basename "$(dirname "$skill_file")")
mkdir -p "$SKILLS_DIR/$skill_name"
cp "$skill_file" "$SKILLS_DIR/$skill_name/SKILL.md"
echo "Synced: $skill_name"
done

rm -rf "$TEMP_DIR"
echo "--- Skills synced ---"
ls "$SKILLS_DIR"

- name: Create PR if skills changed
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git add main/.mintlify/skills/
if git diff --cached --quiet; then
echo "Skills are up to date — nothing to do"
exit 0
fi

git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"

BRANCH="chore/sync-agent-skills-$(date +%Y%m%d)"
git checkout -b "$BRANCH"
git commit -m "chore: sync agent skills from auth0/agent-skills"
git push origin "$BRANCH"

gh pr create \
--title "chore: sync agent skills" \
--body "Automated weekly sync of SKILL.md files from [auth0/agent-skills](https://github.com/auth0/agent-skills).

These files are served via Mintlify's skills discovery endpoint at \`auth0.com/docs/.well-known/skills/\`.

---
Auto-generated by [sync-agent-skills](https://github.com/auth0/docs-v2/blob/main/.github/workflows/sync-agent-skills.yml). Approve to deploy." \
--head "$BRANCH" \
--base main
3 changes: 2 additions & 1 deletion CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ This is a **Mintlify-based documentation monorepo** for Auth0. It contains multi
- **`main/`** - Primary Auth0 documentation (https://auth0.com/docs)
- **`auth4genai/`** - Auth0 for AI Agents documentation (https://auth0.com/ai/docs)
- **`ui/`** - Shared React/Vite component library used across documentation sites
- **`universal-components/`** - Shared React/Vite component library used for interactive components documentations

Each documentation site (`main`, `auth4genai`) operates independently with its own `docs.json` Mintlify configuration file.

Expand Down Expand Up @@ -81,7 +82,7 @@ This is **not a managed monorepo** (no Lerna, pnpm workspaces, etc.). Each folde

**Content Structure:**
- `.mdx` and `.md` files for documentation pages
- YAML frontmatter for metadata (title, description, og/twitter tags)
- YAML frontmatter for metadata (title, description)
- `docs.json` defines navigation structure and Mintlify configuration

**Reusable Components:**
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,6 @@ This repo contains the content, configuration, and styling for much of Auth0's d

* The `ui` directory contains a shared React component library for both docs sites. (See [the Docs UI library README](./ui/README.md) for more information.)

* The `universal-components` directory contains a shared React universal component library for both docs sites. (See [the Docs UI library README](./universal-components/README.md) for more information.)

To contribute to the docs, please coordinate with the Auth0 Product Docs and/or Product Management team, then read our [contribution guide](./CONTRIBUTING.md).
1 change: 1 addition & 0 deletions main/.mintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_metadata.json
183 changes: 183 additions & 0 deletions main/.mintlify/skills/auth0-android/SKILL.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,183 @@
---
name: auth0-android
description: Use when adding authentication to Android applications (Kotlin/Java) with Web Auth, biometric-protected credentials, and MFA - integrates com.auth0.android:auth0 SDK for native Android apps
license: Proprietary
metadata:
author: Auth0 <support@auth0.com>
---

# Auth0 Android Integration

Add authentication to Android applications using `com.auth0.android:auth0`.

> **Agent instruction:** Before providing SDK setup instructions, fetch the latest release version by running:
> ```
> gh api repos/auth0/Auth0.Android/releases/latest --jq '.tag_name'
> ```
> Use the returned version in all `implementation` dependency lines instead of any hardcoded version below. If the command fails, fall back to checking https://github.com/auth0/Auth0.Android/releases.

## Prerequisites

- Android API 21 or higher
- Kotlin or Java project
- Auth0 account with a Native application configured
- If you don't have Auth0 set up, see [auth0-quickstart](/auth0-quickstart)

## When NOT to Use

- **React Native apps**: Use [auth0-react-native](/auth0-react-native)
- **Flutter apps**: Use the native Flutter Auth0 SDK
- **Web SPAs** (React, Angular, Vue): Use [auth0-react](/auth0-react), [auth0-angular](/auth0-angular), or [auth0-vue](/auth0-vue)
- **Node.js/Express servers**: Use [auth0-express](/auth0-express)
- **iOS/macOS apps**: Use [auth0-swift](/auth0-swift)

## Quick Start Workflow

1. **Install SDK**: Add the Auth0 Android SDK dependency to your `build.gradle`:
```gradle
implementation 'com.auth0.android:auth0:{LATEST_VERSION}'
```

2. **Configure Auth0**:

See [**Setup Guide**](references/setup.md) for automatic/manual setup, post-setup required project changes, and callback URL configuration.

3. **Initialize**: Create an Auth0 account instance:
```kotlin
import com.auth0.android.Auth0

val account = Auth0.getInstance(context)
```

4. **Add Auth UI**: Implement login and logout with Web Auth:

> **Agent instruction:** Before adding new UI elements, search the project for existing click handlers for login, logout, sign-in, or sign-out buttons (e.g., `loginButton`, `signInButton`, `logoutButton`, `signOutButton`, or `setOnClickListener` with auth-related naming). If existing handlers are found, hook the Auth0 code into them without modifying the existing UI. Only create new buttons if no existing handlers are found.

**Login:**
```kotlin
import com.auth0.android.Auth0
import com.auth0.android.authentication.AuthenticationAPIClient
import com.auth0.android.authentication.storage.SecureCredentialsManager
import com.auth0.android.authentication.storage.SharedPreferencesStorage
import com.auth0.android.callback.Callback
import com.auth0.android.authentication.AuthenticationException
import com.auth0.android.provider.WebAuthProvider
import com.auth0.android.result.Credentials

val account = Auth0.getInstance(context)
val authentication = AuthenticationAPIClient(account)
val storage = SharedPreferencesStorage(context)
val credentialsManager = SecureCredentialsManager(context, authentication, storage)

WebAuthProvider.login(account)
.withScheme(getString(R.string.com_auth0_scheme))
.withScope("openid profile email offline_access")
.start(this, object : Callback<Credentials, AuthenticationException> {
override fun onSuccess(result: Credentials) {
// User authenticated
val idToken = result.idToken
val accessToken = result.accessToken
// Store credentials securely
credentialsManager.saveCredentials(result)
}
override fun onFailure(error: AuthenticationException) {
// Handle authentication failure
Log.e("Auth0", "Authentication failed", error)
}
})
```

**Logout:**
```kotlin
WebAuthProvider.logout(account)
.withScheme(getString(R.string.com_auth0_scheme))
.start(this, object : Callback<Void?, AuthenticationException> {
override fun onSuccess(result: Void) {
// User logged out
}
override fun onFailure(error: AuthenticationException) {
Log.e("Auth0", "Logout failed", error)
}
})
```

5. **Build & Verify**:

> **Agent instruction:** After completing the integration, build the project to verify it compiles successfully:
> ```bash
> ./gradlew assembleDebug
> ```
> If the build fails, analyze the error output and fix the issues. Common integration build failures include:
> - **Unresolved reference**: Missing import statements — add the required `import com.auth0.android.*` imports
> - **Cannot resolve symbol `R.string.com_auth0_scheme`**: `strings.xml` not updated — verify `com_auth0_scheme`, `com_auth0_client_id`, and `com_auth0_domain` entries exist
> - **Incompatible types in callback**: Callback type parameters don't match — ensure `Callback<Credentials, AuthenticationException>` for login and `Callback<Void?, AuthenticationException>` for logout
> - **Unresolved `lifecycleScope`**: Missing dependency — add `implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.6.+'` or move code out of coroutine scope
> - **minSdk too low**: SDK requires API 21+ — update `minSdkVersion` to at least 21
> - **Java version mismatch**: SDK requires Java 8 — add `compileOptions` with `JavaVersion.VERSION_1_8`
>
> Re-run the build after each fix. Track the number of build-fix iterations.
>
> **Failcheck:** If the build still fails after 5–6 fix attempts, stop and ask the user using `AskUserQuestion`:
> _"The build is still failing after several fix attempts. How would you like to proceed?"_
> - **Let the skill continue fixing iteratively** — continue the build-fix loop for another 5–6 attempts
> - **Fix it manually** — show the remaining errors and let the user resolve them
> - **Skip build verification** — proceed without a successful build
>
> Repeat this check after every 5–6 iterations if errors persist. Do not leave the project in a non-compiling state without the user's explicit consent.

The callback URL must match your Auth0 application settings: `{SCHEME}://{YOUR_AUTH0_DOMAIN}/android/{YOUR_APP_PACKAGE_NAME}/callback`

## Detailed Documentation

- [**Setup Guide**](references/setup.md) — Install SDK, configure Auth0 application, set up callback URLs, Android App Links, custom schemes, ProGuard/R8
- [**Integration Patterns**](references/integration.md) — Web Auth login/logout, credential storage, biometric authentication, database login, passwordless authentication, MFA handling, custom tabs, error handling
- [**Testing & Reference**](references/api.md) — Testing checklist, common issues, security considerations, API reference

## Common Mistakes

| Mistake | Fix |
|---------|-----|
| App type not set to Native in Auth0 Dashboard | Create a Native application type in your Auth0 tenant. The Android SDK requires Native app configuration, not Machine-to-Machine or other types. |
| Missing callback URL in Allowed Callback URLs | Add `{SCHEME}://{YOUR_AUTH0_DOMAIN}/android/{YOUR_APP_PACKAGE_NAME}/callback` to your Auth0 application's Allowed Callback URLs setting, where `{SCHEME}` matches `com_auth0_scheme` in `strings.xml` (e.g., `demo` by default). |
| Missing `<uses-permission android:name="android.permission.INTERNET" />` | Add the INTERNET permission to `AndroidManifest.xml`. The SDK requires network access for authentication. |
| Custom scheme in lowercase | Android requires scheme names to be lowercase. Use `https` (recommended) or lowercase custom scheme like `myapp://callback`. |
| Forgetting `.validateClaims()` on direct auth calls | Always call `.validateClaims()` when using `AuthenticationAPIClient` directly (for database, passwordless, or API login). Web Auth validates automatically. |
| Storing tokens in SharedPreferences without encryption | Use `SecureCredentialsManager` to store credentials. Never store tokens manually in plain text. The manager encrypts tokens at rest. |
| Missing manifest placeholders | Add `manifestPlaceholders = [auth0Domain: "@string/com_auth0_domain", auth0Scheme: "@string/com_auth0_scheme"]` to your `build.gradle` `defaultConfig` block. |

## Related Skills

- [auth0-quickstart](/auth0-quickstart) — Set up an Auth0 account and application
- [auth0-mfa](/auth0-mfa) — Configure multi-factor authentication
- [auth0-swift](/auth0-swift) — iOS/macOS authentication

## Quick Reference

### Core Classes

| Class | Purpose |
|-------|---------|
| `Auth0` | Entry point for SDK, holds app credentials |
| `WebAuthProvider` | OAuth 2.0 login/logout via browser |
| `AuthenticationAPIClient` | Direct API calls (database login, passwordless, MFA) |
| `SecureCredentialsManager` | Secure storage and retrieval of credentials |
| `Credentials` | User tokens and expiration |

### Common Use Cases

- [Log in with Web Auth](references/integration.md#web-auth-login)
- [Log out](references/integration.md#web-auth-logout)
- [Store credentials securely](references/integration.md#credential-storage)
- [Require biometric authentication](references/integration.md#biometric-protected-credentials)
- [Database login](references/integration.md#database-login)
- [Passwordless authentication](references/integration.md#passwordless-authentication)
- [Handle MFA](references/integration.md#mfa-handling)
- [Call protected APIs](references/integration.md#calling-protected-apis)

## References

- [Auth0 Android SDK Documentation](https://auth0.com/docs/libraries/auth0-android)
- [Auth0 Android GitHub Repository](https://github.com/auth0/auth0-android)
- [Android SDK Javadoc](https://auth0.com/docs/references/android)
- [Auth0 Android Quickstart](https://auth0.com/docs/quickstart/native/android)
- [Sample App](https://github.com/auth0-samples/auth0-android-sample)
Loading