Other Auth Providers¶
In addition to Microsoft Entra ID (SSO), xlwings Server supports various authentication providers, including custom ones, which are described here.
Custom authentication¶
Config: To use your own authentication method, activate the
custom
authentication provider:XLWINGS_AUTH_PROVIDERS=["custom"]
Server: To make this work on the backend, you need to implement the
validate_token
function underapp/auth/custom/__init__.py
.Integration: On the frontend, you need to provide the token depending on your integration:
Office.js add-ins: Adjust
globalThis.getAuth
underapp/static/auth.js
so that it returns the token that you will validate with thevalidate_token
function on the backend.Other integrations: provide the token via the
auth
config, see your specific integration for more details: Office.js Add-ins, VBA, Google Apps Script, or Office Scripts.
Google OAuth2 (SSO)¶
TODO