Support Admin users to operate Authentications through API/CLI #1407

Closed
opened 2025-11-02 03:59:51 -06:00 by GiteaMirror · 4 comments
Owner

Originally created by @danielfbm on GitHub (Dec 28, 2017).

  • Gitea version (or commit ref): index.docker.io/gitea/gitea:latest
  • Git version: not relevant
  • Operating system: not relevant
  • 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

To provide better automation and integration during deployment, I suggest adding Authentication APIs reserved to Administrators. This would greatly improve automated deployment methods having a Gitea deployed and running using our Authenticated method of choice.
...

Originally created by @danielfbm on GitHub (Dec 28, 2017). <!-- 1. Please speak English, this is the language all of us can speak and write. 2. Please ask questions or configuration/deploy problems on our Discord server (https://discord.gg/NsatcWJ) or forum (https://discourse.gitea.io). 3. Please take a moment to check that your issue doesn't already exist. 4. Please give all relevant information below for bug reports, because incomplete details will be handled as an invalid report. --> - Gitea version (or commit ref): index.docker.io/gitea/gitea:latest - Git version: not relevant - Operating system: not relevant - Database (use `[x]`): - [ ] PostgreSQL - [ ] MySQL - [ ] MSSQL - [x] SQLite - Can you reproduce the bug at https://try.gitea.io: - [x] Yes (provide example URL) - [ ] No - [ ] Not relevant - Log gist: ## Description To provide better automation and integration during deployment, I suggest adding Authentication APIs reserved to Administrators. This would greatly improve automated deployment methods having a Gitea deployed and running using our Authenticated method of choice. ...
GiteaMirror added the type/featureissue/confirmed labels 2025-11-02 03:59:51 -06:00
Author
Owner

@bkcsoft commented on GitHub (Jan 8, 2018):

Are you referring to adding users using the API or adding login sources (OAuth, OpenID, etc)?

@bkcsoft commented on GitHub (Jan 8, 2018): Are you referring to adding users using the API or adding login sources (OAuth, OpenID, etc)?
Author
Owner

@danielfbm commented on GitHub (Jan 11, 2018):

Both would be nice, but I am referring to login sources in this case

@danielfbm commented on GitHub (Jan 11, 2018): Both would be nice, but I am referring to login sources in this case
Author
Owner

@stale[bot] commented on GitHub (Feb 9, 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 (Feb 9, 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

@6543 commented on GitHub (Sep 7, 2020):

./gitea admin --help
NAME:
   Gitea admin - Command line interface to perform common administrative operations

USAGE:
   Gitea admin command [command options] [arguments...]

COMMANDS:
     create-user         Create a new user in database
     change-password     Change a user's password
     repo-sync-releases  Synchronize repository releases with tags
     regenerate          Regenerate specific files
     auth                Modify external auth providers

and api provides many ways to create/edit/things for admin too:
https://try.gitea.io/api/swagger#/admin

@6543 commented on GitHub (Sep 7, 2020): ```sh ./gitea admin --help NAME: Gitea admin - Command line interface to perform common administrative operations USAGE: Gitea admin command [command options] [arguments...] COMMANDS: create-user Create a new user in database change-password Change a user's password repo-sync-releases Synchronize repository releases with tags regenerate Regenerate specific files auth Modify external auth providers ``` and api provides many ways to create/edit/things for admin too: https://try.gitea.io/api/swagger#/admin
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#1407