Skip to content

[Bug]: OIDC login allows new user registration even when REGISTER_ENABLED=0 #16103

Description

@mginfn

Self Checks

  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (Language Policy).
  • Non-english title submitions will be closed directly ( 非英文标题的提交将会被直接关闭 ) (Language Policy).
  • Please do not modify this template :) and fill in all the required fields.

RAGFlow workspace code commit ID

v0.25.6

RAGFlow image version

v0.25.6

Other environment information

RAGFlow installed via Helm chart

Actual behavior

I configured RAGFlow OIDC authentication following the documentation:
https://ragflow.io/docs/configurations#oauth

I also set:

REGISTER_ENABLED=0

My expectation is that user self-registration should be disabled. In this setup, only users already created in the RAGFlow database by an administrator should be allowed to log in through OIDC.

However, users who do not already exist in the database can still authenticate via OIDC and are automatically registered/created in RAGFlow.

Could you clarify whether this is the intended behavior?

Expected behavior

With REGISTER_ENABLED=0:

  • Existing users can log in via OIDC.
  • New users are not automatically created via OIDC.
  • User accounts must be created beforehand by a RAGFlow administrator.

Steps to reproduce

Configure OIDC authentication and set REGISTER_ENABLED=0, register as a new OIDC user.

Additional information

No response

Metadata

Metadata

Assignees

Labels

🐞 bugSomething isn't working, pull request that fix bug.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions