Skip to content

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

Closed
@Coleslaw3557

Description

@Coleslaw3557
  • 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions