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

Adding OIDC auths soure via CLI requires GUI manual update. #12938

Closed
1 of 6 tasks
Coleslaw3557 opened this issue Sep 24, 2020 · 2 comments
Closed
1 of 6 tasks

Adding OIDC auths soure via CLI requires GUI manual update. #12938

Coleslaw3557 opened this issue Sep 24, 2020 · 2 comments
Labels

Comments

@Coleslaw3557
Copy link

  • Git version: 1.12.4
  • Operating system: K8S (using official helm chart)
  • Database (use [x]):
    • [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

Hello, I am adding an oauth2 OIDC authentication source via the CLI with the following command:

gitea admin auth add-oauth --name keycloak --provider openidConnect --key git-client --secret $SECRET --auto-discover-url https://login.mydomain.net/auth/realms/merlin/.well-known/openid-configuration

The entry shows up correct under the GUI (screenshot below).

Unfortunately, when clicking the login with OIDC button at login, I am given the 500 error:

no provider for keycloak exists

The problem is resolved by clicking "update authentication source" under the GUI without making any changes.

To test, I tried running this command but without resolution:

gitea admin auth update-oauth --id 1 --name keycloak

I would expect that adding the the OIDC source via CLI would not require this extra step through the GUI.

Has anyone else had this issue?

Thank you kindly for any pointers.

Screenshots

image

@pat-s
Copy link
Member

pat-s commented Oct 18, 2020

This worked for me after restarting Gitea.

I would like to see configuration options directly in app.ini.

@noerw
Copy link
Member

noerw commented Dec 25, 2020

fixed via #14116

@noerw noerw closed this as completed Dec 25, 2020
@go-gitea go-gitea locked and limited conversation to collaborators Feb 11, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants