# Bug SI-235 - Required user custom field breaks OIDC user registration

Project: Stream Integration Basics
Status: closed
URL: https://community.openproject.org/work_packages/SI-235

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module | Authentication, Authentication / OpenID Connect (OIDC) |
| Target versions | 17.8.0 |
| Observed in versions | 17.7.0 |
| Bug found in version (deprecated) | 17.7.x |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers | Jan Sandbrink |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |
| Labor costs |  |

## Description

### Steps to reproduce

1.  Configure an OIDC provider
    
2.  Create a user custom field and make it required
    
3.  Log into OpenProject via OIDC, authenticate with a user that&#x27;s not yet registered on the OpenProject instance
    

**Alternative:**

1.  Configure an OIDC provider
    
2.  Make sure that the OIDC provider does not fill some required attributes of OpenProject (e.g. username/email)
    
3.  Log into OpenProject via OIDC, authenticate with a user that&#x27;s not yet registered on the OpenProject instance
    

### What is the buggy behavior?

A registration form is rendered that doesn&#x27;t make sense for someone logging in via OIDC:

*   It asks to choose a password plus confirmation
    
*   It offers to instead log-in via all of the registered authentication providers
    
*   Even if filling everything out, the registration fails without a meaningful error message
    

### What is the expected behavior?

*   There should be no prompt for a password (because none is needed)
    
*   No authentication providers should be offered (because we already use one)
    
*   Ideally only the required/missing custom fields should be asked for, not any of the other user data that was transmitted from the OIDC provider already
    
*   Filling the form leads to a successful registration and login
    

###   

### Environment information

**OpenProject version**

17.7 (probably also much earlier already)

<br>
