Giter Site home page Giter Site logo

Azure AD B2C about wekan HOT 9 CLOSED

snowsky avatar snowsky commented on May 26, 2024
Azure AD B2C

from wekan.

Comments (9)

snowsky avatar snowsky commented on May 26, 2024 1

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.

xet7 avatar xet7 commented on May 26, 2024 1

@snowsky

Thanks! I added those settings to wiki:

https://github.com/wekan/wekan/wiki/B2C

from wekan.

xet7 avatar xet7 commented on May 26, 2024

@snowsky

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.

xet7 avatar xet7 commented on May 26, 2024

@snowsky

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.

snowsky avatar snowsky commented on May 26, 2024

@xet7 thanks for the prompt response 👍 I think I found something may help for the case. Will keep you posted.

from wekan.

snowsky avatar snowsky commented on May 26, 2024

From

if(claimsInAccessToken)
, if 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.

xet7 avatar xet7 commented on May 26, 2024

@snowsky

Please try WeKan v7.24 , settings are at https://github.com/wekan/wekan/wiki/B2C

from wekan.

snowsky avatar snowsky commented on May 26, 2024

Thanks @xet7. It works 👍 by setting OAUTH2_USERNAME_MAP to sub, but didn't work if set to email.

from wekan.

xet7 avatar xet7 commented on May 26, 2024

@snowsky

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.