Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

investigate creation of openid rodsusers on demand #275

Open
trel opened this issue May 5, 2024 · 1 comment
Open

investigate creation of openid rodsusers on demand #275

trel opened this issue May 5, 2024 · 1 comment
Labels
enhancement New feature or request
Milestone

Comments

@trel
Copy link
Member

trel commented May 5, 2024

Feature

Just an idea... needs more consideration...

new boolean configuration setting

  • http_server/authentication/openid_connect/create_new_rodsusers (default: false)

if this setting is true:

  • if openid authentication comes back good:
    • catch CAT_INVALID_USER from the iRODS server
    • create that rodsuser with no password
    • retry the original proxied operation

note: iinit rejects an empty password, but we should confirm that the protocol/server itself doesn't allow authentication via native with a missing/non-set/empty password.

@trel trel added the enhancement New feature or request label May 5, 2024
@korydraughn korydraughn added this to the 0.5.0 milestone Jul 11, 2024
@MartinFlores751
Copy link
Contributor

My question, ignoring the password part, is what would we use to determine the new username? OpenID, in its default claims, MAY contain preferred_username, and OAuth MAY provide a username in its token introspection endpoint.

Of possible interest is also the lack of a username in the JWT profile for OAuth 2.0 access tokens (for offline token validation): https://www.rfc-editor.org/rfc/rfc9068

More to think about, would this an extension of the user mapping plugin? (e.g. user_mapper_generate_username_from_access_or_id_token(...))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants