# Bug OP-19255 - Direct login prevents authentication from mobile app

Project: OpenProject
Status: closed
URL: https://community.openproject.org/work_packages/OP-19255

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | High |
| Module | Authentication |
| Target versions | 17.3.2 |
| Observed in versions |  |
| Sprint |  |
| Backlog bucket |  |
| Bug found in version (deprecated) |  |
| Found in mobile app version |  |
| Follow-up feedback e-mail |  |
| 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 for login and ensure that it works

2.  Enable "Direct Login" option on the OpenProject instance for this OIDC provider

3.  Enable the setting `login_required` on the instance

4.  Try to do a first-time login through the OpenProject mobile app

### What is the buggy behavior?

  - You see a screen that says you can login once your account has been activated
    
      - but you weren't even asked as who you want to login

### What is the expected behavior?

  - You can authenticate through the configured SSO provider

  - afterwards you see a confirmation screen whether you want to grant the mobile app access

### 

### Screenshots and other files

<img class="image_resized op-uc-image op-uc-image_inline" style="width:358px;" src="/api/v3/attachments/920785/content">

### Environment information

**OpenProject version**

*unknown*
