What problem does it solve?
This Skill provides a complete blueprint for implementing Soundcloud OAuth 2.0/2.1 authentication in Go applications, enabling secure user login and API access with minimal boilerplate.
Core Features & Use Cases
- OAuth 2.1 Authorization Code Flow: Implement user authentication with PKCE, code exchange, and session state management.
- Client Credentials Flow: Support server-to-server access to Soundcloud public data.
- Token Management: Exchange authorization codes for tokens, store access/refresh tokens securely, and refresh tokens before expiry.
- API Integration: Use the access token to call Soundcloud APIs and fetch user data or tracks.
- PocketBase Integration: Link Soundcloud-authenticated users to PocketBase records for seamless user management.
Quick Start
Set up your Go project with the required environment variables (SOUNDCLOUD_CLIENT_ID, SOUNDCLOUD_CLIENT_SECRET, SOUNDCLOUD_REDIRECT_URI), implement the OAuth config and routes as described, run the application, and navigate to the authorization URL to begin the flow.