Announcements

Help Wizard

Step 1

NEXT STEP

Topics with Label: authorization

Labels

Forum Posts

Welcome to the Spotify for Developers board!

Welcome to the Spotify for Developers board! This forum is the place for conversations about Spotify's Web API, Web Playback SDK, Widgets, and other developer tools. Here you can ask questions about the Spotify platform, chat with other developers, a...

  • Spotify
  • Spotify
  • 22594 Views
  • 0 replies
  • 61 likes
  • Discussion
  • 22594 Views
  • 0 replies
  • 61 likes

Android SDK Auth window not popping up

Android Studio 2022.2.1 Patch 2United StatesPixel 4 API 33 Emulator Kotlin I've been working off of this and this to try to get Spotify playback SDK on my Android app (for authentication going with the first option, using the Spotify client as oppose...

  • Casual Listener
  • ...uilder = AuthorizationRequest.Builder( CLIENT_ID, AuthorizationResponse.Type.TOKEN, REDIRECT_URI ) builder.setScopes(arrayOf("streaming")) val request: Authorization...
  • 19 Views
  • 0 replies
  • 0 likes
  • Android
    authentication
    authorization
    SDK
  • 19 Views
  • 0 replies
  • 0 likes

Implicit grant and get user's queue

PlanFree/PremiumCountry Device(iPhone 8, Samsung Galaxy 9, Macbook Pro late 2016)Operating System(iOS 10, Android Oreo, Windows 10,etc.) My Question or IssueI want to create an app that retrieves the user's queue and allows to pushes tracks into this...

  • Newbie
  • ...ant to create an app that retrieves the user's queue and allows to pushes tracks into this user's queue. Can I do it with the implicit grant flow or do I absolutely have to do it with the authorization c...
  • 66 Views
  • 0 replies
  • 0 likes
  • authorization
    question
  • 66 Views
  • 0 replies
  • 0 likes

Authorization in React(NodeJS)

Is it possible to generate Access Token using a Client ID and Client Secret in NodeJS?

  • Visitor
  • Is it possible to generate Access Token using a Client ID and Client Secret in NodeJS? 
  • Peter_Schorn
  • Roadie
  • 200 Views
  • 1 replies
  • 0 likes
  • authorization
  • 200 Views
  • 1 replies
  • 0 likes

Adding scope to Client credentials calls

HiI'm sending request with Client credentials according to instructions. I get my Bearer token and this works with some endpoints. When I'm trying to send requests to some Spotify API endpoints I'm getting 403 e.g. post for creating a playlist, or ev...

  • Newbie
  • ...s generating properly. I assume that it has some low access rights and where is my question is there a way to add scope for the token like in Authorization code + PKCE extension method? I d...
  • Ximzend
  • Roadie
  • 190 Views
  • 1 replies
  • 0 likes
  • authorization
    Client credentials
    Scope
  • 190 Views
  • 1 replies
  • 0 likes

Auth flow stopped working

PlanPremiumCountryNetherlandsDevicen/aOperating SystemLinuxMy Question or IssueSince this week our application stopped working. We're using the spotify SDK and use a client id created in the account I'm also posting with on this forum.When a user in ...

  • Newbie
  • Plan Premium Country Netherlands Device n/a Operating System Linux My Question or Issue Since this week our application stopped working. We're using the spotify SDK and use a client id cre...
  • Ximzend
  • Roadie
  • 231 Views
  • 1 replies
  • 0 likes
  • authorization
    Possible Bug
    SDK
  • 231 Views
  • 1 replies
  • 0 likes

Solved!! Central OAuth2.0 Authorization on the Backend-Side using PHP and curl

I am creating an application which aims at automatically creating Spotify Playlists in a central Spotify account (not the account of the end users). On the backend side I am using PHP to authorize this central user, and it is working as long as I am ...

  • Newbie
  • ...potify Web API without the need to authorize their account nor being logged in at all.   Is it somehow possible to perform this authorization process only on the backend side without the need f...
  • Ximzend
  • Roadie
  • 570 Views
  • 1 replies
  • 0 likes
  • authorization
    curl
    OAuth
    php
  • 570 Views
  • 1 replies
  • 0 likes

Solved!! Spotify API PKCE Refresh Token Process

Hello, I've created authorization code flow with PKCE in JavaScript for my personal website to access top tracks and artists from the user and display them on the page. My issue right now is that I'm new to API's and I'm not sure how to use the refre...

  • Casual Listener
  • Hello,   I've created authorization code flow with PKCE in JavaScript for my personal website to access top tracks and artists from the user and display them on the page. My issue right now i...
  • AmitVaidya
  • Newbie
  • 1644 Views
  • 2 replies
  • 1 likes
  • authorization
    refresh tokens
    spotify api
  • 1644 Views
  • 2 replies
  • 1 likes

Authorization Process

PlanPremiumCountryUSA DeviceiPhone 11 Pro MaxOperating SystemiOS 15.5 My Question or Issue HelloI am seeking to find help on having a one-time "Authorization" process between our app and spotify. Please see the attached for your reference. In the "Sp...

  • Newbie
  • Plan Premium Country USA   Device iPhone 11 Pro Max Operating System iOS 15.5   My Question or Issue   Hello I am seeking to find help on having a one-time "Authorization...
  • 157 Views
  • 0 replies
  • 0 likes
  • authorization
  • 157 Views
  • 0 replies
  • 0 likes

Obtaining authorization from Spotify to stream their content in my app

I have developed an app that utilizes the Spotify iOS SDK. Unfortunately, when I submitted my app to the Apple App Store, it was rejected. Apple provided the following information: “To resolve this issue, please attach documentary evidence in the App...

  • Music Fan
  • ...ideo streaming, catalogs, and discovery services in your app. The documentation from Spotify should include specific rights (authorization) to stream their content in your app. Please note that p...
  • RndTBit
  • Regular
  • 2764 Views
  • 16 replies
  • 0 likes
  • authorization
    Permission
  • 2764 Views
  • 16 replies
  • 0 likes

Removing User Access to Application

I am developing a programing integrating the Spotify web API in a school project. After reading the guidelines provided by Spotify it has become evident that there needs to be an easy way for the user to opt out of using the application, removing our...

  • Newbie
  • I am developing a programing integrating the Spotify web API in a school project. After reading the guidelines provided by Spotify it has become evident that there needs to be an easy way for the use...
  • 138 Views
  • 0 replies
  • 0 likes
  • api
    authorization
    users
  • 138 Views
  • 0 replies
  • 0 likes

Auth API Invalid Client: Invalid Redirect URI

I access Spotify API on my local machine without any problem. I supply to spotify auth request my local address as redirect_uri parameter(http://localhost:8080) and I also added this URI in the Spotify Developer Console to the whitelist. But when I d...

  • Regular
  • ...potify Developer Console too and sending this url to Spotify authorization request as redirect_uri parameter. But this time spotify returns 'Invalid Client: Invalid Redirect URI' error. Is there s...
  • bluecun
  • Regular
  • 772 Views
  • 1 replies
  • 0 likes
  • API Support
    authorization
  • 772 Views
  • 1 replies
  • 0 likes

Authorization Endpoint return CORS error

PlanPremiumCountryUSADevice(iPhone 8, Samsung Galaxy 9, Macbook Pro late 2016)Operating SystemMacOS 10 My Question or Issue Hi Spotify team, I am trying to call the User Authorization endpoint as specified here: https://developer.spotify.com/document...

Screen Shot 2022-03-12 at 8.48.44 PM.JPG
  • Casual Listener
  • ...ser Authorization endpoint as specified here: https://developer.spotify.com/documentation/general/guides/authorization/code-flow/   But all I get in response is a status code of 303 and a C...
  • pwhauman
  • Casual Listener
  • 438 Views
  • 1 replies
  • 0 likes
  • authorization
    CORS
    Developer
  • 438 Views
  • 1 replies
  • 0 likes

CORS error with authorization endpoint

Hi! I posted a question under this topic already but it seems it's disappeared. I'm trying to build an app that connects to the spotify API and extracts some data. In order to do this I need to use the authorization endpoint to get an authorization c...

  • Casual Listener
  • ...his I need to use the authorization endpoint to get an authorization code which will in turn allow me to get an access token. However, the authorization endpoint is currently giving me the following C...
  • 585 Views
  • 0 replies
  • 2 likes
  • API Bug
    authorization
    CORS
  • 585 Views
  • 0 replies
  • 2 likes

Authentication for Server Account

Howdy! So I'm in the middle of a potential Spotify project and I've hit a snag I should have expected but didn't. I'm looking to have a bot create playlists on a Spotify account. The initiation of this task will be cron job based, so I'm requiring no...

  • Newbie
  • Howdy!   So I'm in the middle of a potential Spotify project and I've hit a snag I should have expected but didn't. I'm looking to have a bot create playlists on a Spotify account. The initiat...
  • 181 Views
  • 0 replies
  • 0 likes
  • authentication
    authorization
    automation
  • 181 Views
  • 0 replies
  • 0 likes

Solved!!Superuser Contribution Web API auth for access to one's own Spotify account

I am trying to create playlists in my own Spotify account using the Web API and the authorization workflows don't really make sense for my use case. Specifically, my use case is to write an app to migrate my Napster playlists (through their API) to S...

  • Visitor
  • I am trying to create playlists in my own Spotify account using the Web API and the authorization workflows don't really make sense for my use case.  Specifically, my use case is to write an a...
  • Icikle
  • Regular
  • 1192 Views
  • 2 replies
  • 0 likes
  • authentication
    authorization
  • 1192 Views
  • 2 replies
  • 0 likes

Authorization Code Flow Refresh Tokens

I am building an application which requires the refreshing of user Spotify stats (followers, playlists, etc) on a weekly basis. About two months after a user gives my web application access to their Spotify, I begin to get errors regarding the token ...

  • Casual Listener
  • I am building an application which requires the refreshing of user Spotify stats (followers, playlists, etc) on a weekly basis. About two months after a user gives my web application access to their ...
  • jhyde01
  • Casual Listener
  • 659 Views
  • 2 replies
  • 0 likes
  • authorization
    refresh tokens
    tokens
  • 659 Views
  • 2 replies
  • 0 likes

[Personal Project] What kind of authorization to use?

Hey, I have been working on a voice-command assistant (here's the github: https://github.com/JonasRSV/friday-voice-assistant) and I'd like to enable starting Spotify songs with it. When reading up on authentication flows for the web-api it seems as a...

  • Casual Listener
  • ...hen reading up on authentication flows for the web-api it seems as all options require me to redirect a user to some webpage to login, also the authorization flows seem to assume that my app has some k...
  • PMental
  • Regular
  • 654 Views
  • 1 replies
  • 0 likes
  • authorization
    personal project
    player
  • 654 Views
  • 1 replies
  • 0 likes

Solved!! Unable to use PKCE authorization: code_verifier was incorrect

I'm trying to implement the PKCE authorization flow and as far as I can tell, I've done so correctly, but Spotify always says the code_verifier is incorrect. This is my code to create the login URL: this.verifyCode = getRandomString(64) const codeCha...

  • Casual Listener
  • I'm trying to implement the PKCE authorization flow and as far as I can tell, I've done so correctly, but Spotify always says the code_verifier is incorrect.   This is my code to create the l...
  • Peter_Schorn
  • Roadie
  • 5612 Views
  • 3 replies
  • 0 likes
  • authorization
  • 5612 Views
  • 3 replies
  • 0 likes

Superuser Contribution Spotify api works w/ my wix site in preview but not when published

My Question or IssueI'm making fetch post requests from the backend of my wix site to the spotify api. it works perfectly in the editor/preview and the api returns an access token, but when I publish the site and try and use it on the live site I get...

  • Visitor
  • ...publish the site and try and use it on the live site I get an invalid_grant invalid authorization key error instead. Why might this be? I already verified my permissions are set to allow anyone to c...
  • _milena
  • Roadie
  • 601 Views
  • 1 replies
  • 0 likes
  • api
    authorization
    invalid_grant
  • 601 Views
  • 1 replies
  • 0 likes

How to not use local host for auth-server

Main Question.I currently have my spotify api website for getting top artists so you get onto the main page (https://matthewcurtis4.github.io/myapp/) but when you click login it redirects you to my auth-server which works perfectly on my computer but...

  • Casual Listener
  • Main Question. I currently have my spotify api website for getting top artists so you get onto the main page (https://matthewcurtis4.github.io/myapp/) but when you click login it redirects you ...
  • 784 Views
  • 0 replies
  • 0 likes
  • authorization
    local host
    spotify api
  • 784 Views
  • 0 replies
  • 0 likes