Giter Club home page Giter Club logo

Comments (2)

theferrit32 avatar theferrit32 commented on July 29, 2024

Very strange behavior using parentheses to background subshells in bash.

The following command launches 10 ils processes which overlap over each other, and all of them succeed in listing the actual irods directory for the current logged in user.

ils & ils & ils & ils & ils & ils & ils & ils & ils & ils 

The following command launches 10 ils processes in a for loop using parentheses subshells which overlap with each other, and most of them fail and think they are supposed to be listing the irods directory for the 'rods' user, which is not the currently logged in user:

for i in {0..9}; do (ils &); done

This does not occur when logged in as the system user 'irods' and running commands as the irods user 'rods'. All succeed. Suggests it is related to the auth plugin.

from irods_auth_plugin_openid.

theferrit32 avatar theferrit32 commented on July 29, 2024

Verified that authorization periods can overlap as of this commit:
c325bee

Callback requests from the openid provider can also be received and returned to the proper plugin instance in a different order than the authorization processes were started (iinit).

  • Two system users (separate ~/.irods directories)
  • Two irods accounts, with the subject id linked to their account (iadmin aua)

Process:

  1. Run iinit for both system users, one directly after the other.
  2. Now each of their agent-side plugins is waiting on the redirect_server mechanism to receive the authorization callbacks from the openid provider after the users log in using a browser.
  3. Each user can browse to the proper authorization url provided to them by the plugin.
  4. The redirect_server will receive reach callback from the openid provider after the user logs in.
  5. The 'state' param on these requests map to the auth request instances from the irods plugin.
  6. The redirect_server will route the authorization_code from these callbacks to the proper agent-side plugin through a Unix domain socket they are waiting on (up to 30 sec).
  7. Each agent-side plugin will proceed with their process of exchanging the authorization_code for the id_token, access_token, and refresh_token.
  8. The client-side plugins waiting on their corresponding sockets will receive the user/session information as well as the actual rcAuthResponse response, and exit.

from irods_auth_plugin_openid.

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.