Skip to content

Inconsistent OAuth callback URL generation between Craft 4 and 5 versions #10

@juddlyon

Description

@juddlyon

Describe the bug

Video Picker generates different callback URLs between Craft 4 and 5, causing OAuth redirect_uri_mismatch errors when using the same Google OAuth client credentials across sites.

  • Craft 4 (v1.x): https://example.com/video-picker/auth/callback/ (with trailing slash)
  • Craft 5 (v2.x): https://example.com/video-picker/auth/callback (no trailing slash)

Steps to reproduce

  1. Set up Video Picker on Craft 4.x (v1.x plugin)
  2. Set up Video Picker on Craft 5.x (v2.x plugin)
  3. Use same Google OAuth client credentials
  4. Compare generated callback URLs

Craft CMS version

Craft 4.15.0.2 & Craft 5.7.11

Plugin version

1.0.3 & 2.0.3

Multi-site?

Craft 4 (No), Craft 5 (Yes)

Additional context

Both sites have addTrailingSlashesToUrls(true) config and I double-checked site URLs in ENV vars.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions