Skip to content

[bug]: Cannot use OAuth2 OIDC over HTTPS behind a reverse proxy #7834

@egormanga

Description

@egormanga

Is there an existing issue for this?

  • I have searched the existing issues

Current behavior

Plane API uses request.is_secure to determine http vs https in the redirect URI, instead of just pasting request.scheme. Frontend already uses the correct scheme.

Steps to reproduce

  1. Link to an OIDC provider (e.g. GitLab).
  2. Try to log in using it.
  3. Get “Invalid redirect URI” error from the provider.
    The redirect_uri parameter will start with http://.

Environment

Production

Browser

None

Variant

Self-hosted

Version

v1.0.0

Metadata

Metadata

Labels

planesync issues to Plane🐛bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions