You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried using your tool to authenticate with Spotify.
But that wasn't possible out of the box, so I had to make the following adjustments:
cache-control header
If the cache-control header is sent with the token queries, the server returns a CORS error.
Solution => a disableCacheControlHeader flag in OAuth2AuthenticateBaseOptions
Description
Capacitor version:
Run
npx cap doctor
:Latest Dependencies:
@capacitor/cli: 4.6.2
@capacitor/core: 4.6.2
@capacitor/android: 4.6.2
@capacitor/ios: 4.6.2
Installed Dependencies:
@capacitor/cli: 4.6.2
@capacitor/core: 4.6.2
@capacitor/android: 4.6.2
@capacitor/ios: 4.6.2
Library version:
OAuth Provider:
Information
Thank you for your great work.
I tried using your tool to authenticate with Spotify.
But that wasn't possible out of the box, so I had to make the following adjustments:
cache-control header
If the cache-control header is sent with the token queries, the server returns a CORS error.
Solution => a disableCacheControlHeader flag in OAuth2AuthenticateBaseOptions
Authorization required for token queries
Spotify would like to have an authorization for the queries for the access_token and refresh_token in the header (https://developer.spotify.com/documentation/general/guides/authorization/code-flow/)
Authorization: Basic base64encodedKey
The key consists of Spotify Client ID and Client Secret
solution =>
Quick and dirty: also send the additionalResourceHeaders with the token queries
clean: own property for additionalTokenRequestHeaders
The text was updated successfully, but these errors were encountered: