Skip to content

bug: ability to let users to authenticate with a private oidc provider only #4882

@vladimirdulov

Description

@vladimirdulov

Steps To Reproduce

Hello,

We are packaged penpot app for Cloudron (https://cloudron.io).

Recently authentication seems to be changed in v2.1.0 and now we are facing with an issue that login via our Cloudron OIDC provider stopped to work until enable-registration flag is set.

The configuration we'd like to have working:

PENPOT_FLAGS="enable-login-with-oidc disable-registration disable-login-with-password disable-email-verification enable-smtp"

But it causes Registration is currently disabled error if OIDC user authenticates first time.

Screenshot 2024-07-15 at 12 36 07

If we set enable-registration flag, authentication via OIDC starts to work but also Create an account link appears on the login form which doesn't have any sense in our case as we'd like users from Cloudron user directory to authenticate.

Screenshot 2024-07-15 at 12 29 15

maybe you can implement enable-registration-with-oidc flag to automatically create OIDC users or create respective users automatically w/o additional flag?

Expected behavior

The configuration we'd like to have working:

PENPOT_FLAGS="enable-login-with-oidc disable-registration disable-login-with-password disable-email-verification enable-smtp"

maybe you can implement enable-registration-with-oidc flag to automatically create OIDC users or create respective users automatically w/o additional flag?

Actual behavior

But it causes Registration is currently disabled error if OIDC user authenticates first time.

Screenshot 2024-07-15 at 12 36 07

If we set enable-registration flag, authentication via OIDC starts to work but also Create an account link appears on the login form which doesn't have any sense in our case as we'd like users from Cloudron user directory to authenticate.

Screenshot 2024-07-15 at 12 29 15

Screenshots or video

No response

Desktop (please complete the following information)

any browser

Smartphone (please complete the following information)

No response

Environment (please complete the following information)

https://www.cloudron.io/store/app.penpot.cloudronapp.html

Frontend Stack Trace

No response

Backend Stack Trace

No response

Additional context

No response

Metadata

Metadata

Assignees

Labels

bugmanaged on taigaThis issue has been moved to our project at Taiga.ioself-hostedThe issue is happening on a self-hosted instance and cannot be reproduce in the cloud app.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions