ClientModule
MS Auth Flow
End-to-end Microsoft authentication flow for Minecraft clients using Axolite.
Required setup
- Team owner creates a client with
/client/apps. - Team owner enables module with
/client/apps/:client_id/modules/ms-auth. - Client backend stores
client_id+client_secretsecurely.
Full flow
- Client starts auth via
/client/ms-auth/start. - Axolite returns
auth_urlandauth_request_id. - User signs in on Microsoft page.
- Microsoft redirects to Axolite callback
/client/ms-auth/callback. - Axolite fetches Minecraft profile and waits for consent.
- User confirms consent via
/client/ms-auth/authorize. - Client polls status with
/client/ms-auth/poll. - Client validates session with
/client/ms-auth/session/validate.
Consent text requirements
Your consent page should clearly state:
- Minecraft profile (
mc_uuid,mc_username) is processed. - Axolite session token is issued for login validation.
- User agrees to your terms and privacy policy.
Security checklist
- Keep
client_secreton server only. - Use short polling intervals with timeout (
2-3s, max60s). - Treat
axolite_session_tokenas bearer credential. - Validate session token immediately before establishing app login.