Coder Social home page Coder Social logo

magda-auth-oidc's People

Contributors

t83714 avatar

Watchers

 avatar  avatar

magda-auth-oidc's Issues

Allow `autoMapOrg` works when the user has multiple org membership

Allow autoMapOrg works when the user has multiple org membership

We currently rely on org_name claim to auto map user org to Magda org.

When a user has multiple org membership, the Idp should shows an org selection screen after correct credential is supplied by the user and the user is required to select one org to complete the sign in process.

In this case, org_name claim of the user's ID token would be the name of org that the user selects during the sign in process.

For this OIDC auth plugin, we have two options to handle this situation:

  • Option 1: update the orgUnitId field of the relevant Magda user record on the user's every sign in.
    • We will only need to maintain one Magda user record with orgUnitId changing depends on the user's selection.
    • Magda doesn't store all information of the user. e.g. we only know the user is associated with org at any point in time.
  • Option 2: Map user's multiple org membership to multiple Magda user record
    • When the user select different org, he actually sign into different Magda account
    • We actually maintain multiple Magda user records for one Idp user. But Magda does store all information of the user.

Option 2 might be the preferred solution as it allow Magda to generate full picture of the user without querying Idp.

Implement logout endpoints as per OpenID Connect RP-Initiated Logout 1.0

Implement logout endpoints as per OpenID Connect RP-Initiated Logout 1.0

The similar feature has already been Implemented in: https://github.com/magda-io/magda-auth-okta.
Reference:

This ticket will:

  • adopt the similar implementation
  • auto turn on / off logout endpoint by checking OIDC issuer config

Technical Notes:

  • Auth0's logout implementations not comfort OIDC spec and not list its endpoint on it's OIDC config
    • we will need to accommodate this

Sign In Failed: TimeoutError: Timeout awaiting 'request' for 2500ms

Getting error when attempting to login using an OIDC connection.
Sign In Failed: TimeoutError: Timeout awaiting 'request' for 2500ms

Happens consistently on the first login attempt and usually works on the second attempt, with an OIDC connection to AWS Cognito. Doing some searching around the internets It may be linked to a default value in an OIDC middleware library. (https://devforum.okta.com/t/timeouterror-timeout-awaiting-request-for-2500ms/9878/5) Is the only related post on this issue I could find.

I've tried setting the timeout value for this plugin, but the default value of 10000ms already far exceeds the value cause an error.

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.