spotify/android-auth
Spotify authentication and authorization for Android. Part of the Spotify Android SDK.
16 Releases
Latest: 3mo ago
Spotify Android Auth lib 4.0.14.0.1Latest
📦 Version 4.0.1
- Fix: Ensure auth progress is preserved across configuration changes, preventing cases where a headless activity remains open and blocks user input.
Spotify Android Auth lib 4.0.04.0.0
📋 Changes
- Breaking Change: Added new `AuthorizationResponse.Type.CANCELLED` to differentiate user-initiated cancellations from technical errors.
- User cancellations (browser closed, back button pressed) now return `Type.CANCELLED` with `RESULT_CANCELED`
- Technical errors (malformed responses, missing data) return `Type.EMPTY` with `RESULT_OK`
- OAuth errors (e.g., `access_denied`) continue to return `Type.ERROR` with `RESULT_OK`
- Client applications should update their authorization result handling to account for the new `CANCELLED` type and `RESULT_CANCELED` result code.
Spotify Android Auth lib 3.1.03.1.0
Migrate to kotlin. _Should_ be no breaks except that some exceptions have gone from IllegalArgument to NullPointer
Spotify Android Auth lib 3.0.03.0.0
📋 Changes
- Add mandatory redirect path pattern.
Spotify Android Auth lib 2.2.02.2.0
📋 Changes
- Requesting token now uses PKCE when:
- There is an installed Spotify app that supports PKCE.
- When web fallback is used.
- Propagate tracking parameters when opening the native login flow
- Token requests may return a refresh token if PKCE was used.
Spotify Android Auth lib 2.1.12.1.1
📋 Changes
- Introduced `RedirectUriReceiverActivity` for web based auth flow
- Restructured web based flow, removed `LoginDialog` class
- Made `AuthorizationClient` final
- Bumped to Gradle 7.5, AGP 7.4.2
- Bumped targetSdkVersion to 33
- Bumped androidx.browser to 1.5.0 and test dependencies
Spotify Android Auth lib 2.1.02.1.0
📋 Changes
- Introduced a new flavour store to generate a library called auth-store that default to the play store instead of `CustomTabsIntent`
- Exposed method to check if the Spotify application is installed
Spotify Android Auth lib 2.0.22.0.2
📋 Changes
- Fixed StackOverflowError at com.spotify.sdk.android.auth.browser.LoginDialog.onServiceDisconnected
- Fixed NullPointerException when creating CustomTabsIntent in LoginDialog
- Set LoginActivity launch mode to singleTask to avoid launching CustomTabs in a separate task
Spotify Android Auth lib 2.0.12.0.1
📋 Changes
- Removed unused code related to WebView and updated documentation
Spotify Android Auth lib 2.0.02.0.0
📋 Changes
- Replaced WebView usage with [Custom Tabs](https://developer.chrome.com/docs/android/custom-tabs/) since Google and Facebook Login no longer support WebViews for authenticating users.
- Removed `AuthorizationClient#clearCookies` method from the API. Custom Tabs use the cookies from the browser.
- Bumped targetSdkVersion to 31
Spotify Android Auth lib 1.2.61.2.6
Contains a fix for an issue related to package visibility changes in API 30 - https://github.com/spotify/android-sdk/issues/307
Spotify Android Auth lib 1.2.51.2.5
📋 Changes
- Updated targetSdkVersion (API 30), buildTools and Gradle plugin
- Removed unused jcenter repository
- Conform to package visibility restrictions when targeting Android 11 (API 30)
Spotify Android Auth lib 1.2.31.2.3
📋 Changes
- Stability fixes on webview based redirect
- LoginActivity launchmode changed
Spotify Android Auth lib 1.2.21.2.2
📋 Changes
- Remove custom-tabs handling due to issues
Spotify Android Auth lib 1.2.11.2.1
📋 Changes
- Fixes an issue that produced a redirect error when the redirect uri contains CAPS.
Android Auth 1.01.0
Initial release of the Android Auth library. For history see [Android-SDK](https://github.com/spotify/android-sdk/releases)
