Skip to content

Oauth2 Provider must be enabled for Account Linking by login to work on Oauth2 Client #35744

@uriesk

Description

@uriesk

Description

When oauth2.ENABLED is false, the following happens to oauth2_client:

  • oauth login works with new accounts and auto registration
  • ACCOUNT_LINKING = auto still works, the accounts get linked on oauth login
  • but the unlink button in the user account settings doesn't work (403 Forbidden)
  • ACCOUNT_LINKING = login (default) doesn't work, the page for linking accounts returns 403 Forbidden

if !setting.Service.EnableOpenIDSignIn && !setting.Service.EnableOpenIDSignUp && !setting.OAuth2.Enabled {

Gitea Version

1.24.6

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

Image

Git Version

2.43.2

Operating System

Ubuntu 24.04.3 LTS

How are you running Gitea?

Downloaded binary

Database

MySQL/MariaDB

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