nextcloud / nextcloud/user_oidc

Implement user provisioning on bearer token request with access token (userinfo validator)

Open
#1,258 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature request priority: normal
Dominant language
PHP
Stars
181
Forks
60
Avg merge
7h 34m
Merged PRs (30d)
26

Description

closes #1255

When using an access token as a bearer token to make API requests, the user can't currently be properly provisioned. The authentication works but the userinfo validator does not have a provisioning strategy.

https://github.com/nextcloud/user_oidc/blob/c3f44015ca089ae83b04c9d299133a6c3e46da8c/lib/User/Validator/UserInfoValidator.php#L36

We could use the attributes we get from the userinfo endpoint to provision the user.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in lib/User/Validator/UserInfoValidator.php at the referenced validator code and review how bearer access-token requests reach it. Use the attributes returned by the userinfo endpoint to provide a provisioning strategy, then verify that the user is properly provisioned when making an API request with an access token.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
authentication
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.