SoundCloud OAuth 2 User Agent Authentication Flow Demo
✓ Published0🌍 Public
Aabernier
Last edited Sep 3, 2010
Created on Mar 14, 2012
This demo shows the SoundCloud OAuth 2 user-agent authentication flow, displaying a connect link initially and then revealing the authenticated user’s token and username after authorization. It uses jQuery’s `$.ajax` to request the `/me` resource from the SoundCloud API, extracting the access token from the URL hash and sending it in the `Authorization` header. The page toggles between hidden authentication and authenticated states based on token presence, with client ID and redirect URI configured in the inline JavaScript.
AI-generated description