mirror of
https://github.com/wekan/wekan.git
synced 2026-11-25 10:48:06 -05:00
Many docs still used flat GitHub-wiki page-name links like [Backup](Backup), [OAuth2](OAuth2) or [FAQ](FAQ) that only resolved on the old wiki; in the docs/ hierarchy they were broken. Rewrite them to correct relative paths of the existing pages (e.g. ](Backup) -> ](Backup.md), ](OAuth2) -> ](../Login/OAuth2.md), ](Sandstorm) -> ](../Platforms/FOSS/Sandstorm/Sandstorm.md)). Mapping: page name -> docs/<...>/<Name>.md by filename, with explicit handling for renamed pages (Caddy/Nginx-Webserver-Config, Wekan-Markdown, the Sandstorm grain export page, Uberspace) and the REST-API-<X> family -> docs/API/<X>.md. Ambiguous names resolved by preferring a same-directory file or the primary page. Anchors and markdown titles preserved. 280 links across the docs tree. Out of scope (left as-is): source-code references (models/*.js etc.) and [Link](url) placeholders, which are not docs pages. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1.6 KiB
1.6 KiB
Azure AD B2C using OAuth2
- Original issue: https://github.com/wekan/wekan/issues/5242
- B2C feature added: https://github.com/wekan/wekan/commit/93be112a9454c894c1ce3146ed377e6a6aeca64a
- Similar like ADFS, but
emailis first of arrayuserinfo[emails]
Snap
sudo snap set wekan oauth2-enabled='true'
sudo snap set wekan oauth2-b2c-enabled='true'
sudo snap set wekan oauth2-username-map='sub'
sudo snap set wekan oauth2-request-permissions='openid email profile'
sudo snap set wekan oauth2-client-id='xxxxxxxx'
sudo snap set wekan oauth2-secret='xxxxxxx'
sudo snap set wekan oauth2-server-url='https://B2C_TENANT_NAME.b2clogin.com/B2C_TENANT_NAME.onmicrosoft.com/B2C_POLICY_NAME'
sudo snap set wekan oauth2-auth-endpoint='/oauth2/v2.0/authorize'
sudo snap set wekan oauth2-token-endpoint='/oauth2/v2.0/token'
sudo snap set wekan oauth2-username-map='sub'
sudo snap set wekan oauth2-email-map='email'
sudo snap set wekan oauth2-fullname-map='name'
sudo snap set wekan oauth2-id-map='sub'
Docker
- OAUTH2_ENABLED=true
- OAUTH2_B2C_ENABLED=true
- OAUTH2_USERNAME_MAP=sub
- OAUTH2_REQUEST_PERMISSIONS=openid email profile
- OAUTH2_CLIENT_ID=xxxxxxxx
- OAUTH2_SECRET=xxxxxxx
- OAUTH2_SERVER_URL=https://B2C_TENANT_NAME.b2clogin.com/B2C_TENANT_NAME.onmicrosoft.com/B2C_POLICY_NAME
- OAUTH2_AUTH_ENDPOINT=/oauth2/v2.0/authorize
- OAUTH2_TOKEN_ENDPOINT=/oauth2/v2.0/token
- OAUTH2_USERNAME_MAP=sub
- OAUTH2_EMAIL_MAP=email
- OAUTH2_FULLNAME_MAP=name
- OAUTH2_ID_MAP=sub
Others
Similar like above Docker.