Skip to content

Error 500 with Oauth2 and DISABLE_REGISTRATION #5551

@camlafit

Description

@camlafit
  • Gitea version (or commit ref): 1.5.3
  • Git version:
  • Operating system: Debian stretch
  • 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:
    2018/12/15 16:39:24 [...routers/user/auth.go:541 handleOAuth2SignIn()] [E] UserSignIn: could not find a matching session for this request

Description

If new registration is disbled and external connection allowed, we get a 500 error on callback url.
Workaround is to set on provider https://gitea/user/oauth2/[AuthnName] without callback part
or enable registration

Should be nice to redirect to association page to link oauth account with existing

Screenshots

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue/confirmedIssue has been reviewed and confirmed to be present or accepted to be implementedtype/bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions