[[RFE] : creating users when authenticated through defined authentication source (like oauth2) #1538

Closed
opened 2025-11-02 04:04:16 -06:00 by GiteaMirror · 4 comments
Owner

Originally created by @arrfab on GitHub (Feb 16, 2018).

  • Gitea version (or commit ref): 1.3.2
  • Operating system: CentOS 7
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:

Description

Not a bug but request for enhancement : Actually, gitea permits users logged it through openid to have the corresponding user automatically created in gitea :
ENABLE_OPENID_SIGNIN = true
ENABLE_OPENID_SIGNUP = true

But it doens't work if one decides to create a authentication source like oauth2 (so tested with OpenID Connect on my side) : once authenticated, and redirected to gitea, it asks to either :

  • login with existing (local) user (doesn't exist yet)
  • create a new user account

Of course I'd like to only allow people authenticated through oauth2 to sign in and so be registered automatically (so DISABLE_REGISTRATION = true)

As discussed in #gitea on freenode, creating a RFE ticket here so that people can discuss it and/or track a potential status change

...

Originally created by @arrfab on GitHub (Feb 16, 2018). - Gitea version (or commit ref): 1.3.2 - Operating system: CentOS 7 - Database (use `[x]`): - [ ] PostgreSQL - [x] MySQL - [ ] MSSQL - [ ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [x] Yes (provide example URL) - [ ] No - [ ] Not relevant - Log gist: ## Description Not a bug but request for enhancement : Actually, gitea permits users logged it through openid to have the corresponding user automatically created in gitea : ENABLE_OPENID_SIGNIN = true ENABLE_OPENID_SIGNUP = true But it doens't work if one decides to create a authentication source like oauth2 (so tested with OpenID Connect on my side) : once authenticated, and redirected to gitea, it asks to either : * login with existing (local) user (doesn't exist yet) * create a new user account Of course I'd like to *only* allow people authenticated through oauth2 to sign in and so be registered automatically (so DISABLE_REGISTRATION = true) As discussed in #gitea on freenode, creating a RFE ticket here so that people can discuss it and/or track a potential status change ...
GiteaMirror added the issue/confirmedtype/enhancement labels 2025-11-02 04:04:16 -06:00
Author
Owner

@stale[bot] commented on GitHub (Jan 23, 2019):

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.

@stale[bot] commented on GitHub (Jan 23, 2019): This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.
Author
Owner

@schmitch commented on GitHub (Apr 5, 2019):

is there actually some progress on this?

@schmitch commented on GitHub (Apr 5, 2019): is there actually some progress on this?
Author
Owner

@jolheiser commented on GitHub (Apr 5, 2019):

@schmitch Looks like #5123 is the current PR

@jolheiser commented on GitHub (Apr 5, 2019): @schmitch Looks like #5123 is the current PR
Author
Owner

@6543 commented on GitHub (Apr 14, 2021):

closed by #5123

@6543 commented on GitHub (Apr 14, 2021): closed by #5123
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#1538