Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Any way to manage OAuth2 apps via REST API? #7290

Closed
2 of 7 tasks
Ziars opened this issue Jun 25, 2019 · 3 comments
Closed
2 of 7 tasks

Any way to manage OAuth2 apps via REST API? #7290

Ziars opened this issue Jun 25, 2019 · 3 comments
Labels
modifies/api This PR adds API routes or modifies them type/proposal The new feature has not been accepted yet but needs to be discussed first.

Comments

@Ziars
Copy link

Ziars commented Jun 25, 2019

  • Gitea version (or commit ref): 1.8.3
  • Git version: 2.22.0
  • Operating system: Ubuntu 16.04
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant

Greetings!

I’m using Drone+Gitea (v.1.8.3) stack and just ran into a problem with automating the authorization process. To add an app I have to manually go to GUI (Settings => Applications), add the app through section “Manage OAuth2 Applications”, take the resulting ID and Secret for further usage in Drone. Authorization itself works fine, the problem is that I have lots of such Gitea instances, which are regularly created and deleted by scripts. So, without having a way of adding an app via API, I have to either add it manually on every Gitea instance, or use a rude INSERT into database. Is there a more graceful way, or maybe I’m missing something?

Thank you in advance.

@lunny lunny added modifies/api This PR adds API routes or modifies them type/proposal The new feature has not been accepted yet but needs to be discussed first. labels Jun 26, 2019
@n0guest
Copy link

n0guest commented Jul 24, 2019

Also, it'd be very good not only to create random credentials (as it now in Gitea UI). But also create your own - i.e. specify key and secret in API request.

PS: Are there any plans or milestone on this feature?

@lunny
Copy link
Member

lunny commented Jul 29, 2019

@n0guest There is no plan to do this.

@6543
Copy link
Member

6543 commented Sep 21, 2020

closed by #11008 and released since 1.12.0

@6543 6543 closed this as completed Sep 21, 2020
@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
modifies/api This PR adds API routes or modifies them type/proposal The new feature has not been accepted yet but needs to be discussed first.
Projects
None yet
Development

No branches or pull requests

4 participants