Comments (9)
Here you go 👍
- name: OAUTH2_B2C_ENABLED
value: true
- name: OAUTH2_ENABLED
value: true
- name: OAUTH2_REQUEST_PERMISSIONS
value: "openid email profile"
- name: OAUTH2_CLIENT_ID
value: xxxxxxxxx
- name: OAUTH2_SECRET
value: xxxxxxxxx
- name: OAUTH2_SERVER_URL
value: "https://B2C_TENANT_NAME.b2clogin.com/B2C_TENANT_NAME.onmicrosoft.com/B2C_POLICY_NAME"
- name: OAUTH2_AUTH_ENDPOINT
value: /oauth2/v2.0/authorize
- name: OAUTH2_TOKEN_ENDPOINT
value: /oauth2/v2.0/token
- name: OAUTH2_USERNAME_MAP
value: sub
- name: OAUTH2_EMAIL_MAP
value: email
- name: OAUTH2_FULLNAME_MAP
value: name
- name: OAUTH2_ID_MAP
value: sub
from wekan.
Thanks! I added those settings to wiki:
https://github.com/wekan/wekan/wiki/B2C
from wekan.
Do you mean some custom endpoint like at Auth0 ?
https://github.com/wekan/wekan/wiki/OAuth2#auth0
Or ADFS ?
https://github.com/wekan/wekan/wiki/ADFS
Or something even more custom, where OIDC/OAuth2 was modifies to support ORACLE OIM ? Look at related commits at this wiki page:
https://github.com/wekan/wekan/wiki/Oracle-OIM
from wekan.
Code is here at directories wekan-accounts-oidc and wekan-oidc:
https://github.com/wekan/wekan/tree/main/packages
Here is how to build wekan and submit pull request:
https://github.com/wekan/wekan/wiki/Emoji
from wekan.
@xet7 thanks for the prompt response 👍 I think I found something may help for the case. Will keep you posted.
from wekan.
From
wekan/packages/wekan-oidc/oidc_server.js
Line 32 in 5a9a5df
OAUTH2_ADFS_ENABLED
is set to true
, the user info endpoint of B2C is not required.
The issue now is the user info returned from Azure B2C has emails
(array) instead of email
(string):
XXX: userinfo: {
...
name: 'a a',
given_name: 'a',
family_name: 'a',
emails: [ '<EMAIL_1>' ],
...
}
Probably is it possible to work with both emails
and email
?
Thanks!
from wekan.
Please try WeKan v7.24 , settings are at https://github.com/wekan/wekan/wiki/B2C
from wekan.
Thanks @xet7. It works 👍 by setting OAUTH2_USERNAME_MAP
to sub
, but didn't work if set to email
.
from wekan.
Do you use any other OAUTH2 settings, than those listed at https://github.com/wekan/wekan/wiki/B2C ? Please list all those remaining settings, anonymized, so that I can add them to that wiki page. Thanks!
from wekan.
Related Issues (20)
- People list (administrator shown many, many times) HOT 1
- API get_all_cards doesn't return SwimlaneId HOT 6
- Generating WeKan 7.32 OpenAPI docs does not work
- Bug when archiving card HOT 16
- Notification on card due date.
- export card does not work?
- Error on click on notification icon
- K8s - LDAP Authentification HOT 2
- Is there a Gantt Chart version available now? HOT 1
- RICHER_CARD_COMMENT_EDITOR is not working HOT 5
- Remove a non-existent (removed user) from a board member is not working HOT 3
- Card image cover should be margin-top:6px since hamburger menu and due date at the top
- en_US translations not consistently displaying in Firefox
- Azure SSO - correct redirect url? HOT 6
- In RTL, hamburger needs margin HOT 1
- Feature request: Remember trello user name association assigned during import HOT 1
- Feature request: default organization for new accounts registered via the same OAUTH provider HOT 1
- Filtering is slow HOT 4
- Import from Trello - Labels issue HOT 5
- Large Board, with "Uncaught RangeError: Maximum call stack size exceeded." or other error HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wekan.