googleanalytics / ga-dev-tools

A showcase of demos and tools built with the various Google Analytics APIs and Libraries.
https://ga-dev-tools.web.app/
Other
1.4k stars 559 forks source link

Bitly OAuth App Authentication Looping #1986

Open hstonebitly opened 3 weeks ago

hstonebitly commented 3 weeks ago

What page is this happening on https://bitly.com/oauth/authorize?client_id=70e3a2804f36daeec48079ca7213aee795c7e76b&redirect_uri=https://ga-dev-tools.google/bitly-auth

Describe the bug When a user attempts to authenticate their Bitly account in the authorization window that opens when they click "SHORTEN LINK" button, the authentication is not successful and the window loops back to https://ga-dev-tools.google/ga4/

This behavior is the same if the user is already logged in to Bitly in the browser session.

To Reproduce Steps to reproduce the behavior:

  1. Go to https://ga-dev-tools.google/ga4/campaign-url-builder/
  2. Enter values for the website URL and required campaign information
  3. Click on Shorten Link -> authentication window opens
  4. Log in to Bitly -> login is successful
  5. Click Allow
  6. Page loops back to https://ga-dev-tools.google/ga4/
  7. No short link is created

Expected behavior OAuth flow should authenticate the user's Bitly account and create a connection to the registered Bitly OAuth app, allowing the user to create Bitly link for their Google Campaign URL.

Screenshots Screen recording attached. https://github.com/user-attachments/assets/f04f223b-5e7f-4dbe-a133-0222061f8f7d

Desktop (please complete the following information):

Smartphone (please complete the following information): n/a

Additional context Please reach out directly to me - Hannah Stone, Manager, Technical Services at Bitly to discuss further - hannah.stone@bit.ly