oauth2: Tasker Android 13 problem with OAuth2

109 views
Skip to first unread message

Bryan B

unread,
Jun 10, 2023, 9:22:57 AM6/10/23
to Tasker

Hey João, 

I have a Tasker project that has been working great on Android 9, 10 and 12 for years. I just bought a Samsung S8 tablet with Android 13, imported the projects and quickly found I could not authenticate with OAuth2 services.

The symptom is that when I manually start the task Tasker opens the browser window so I can login and grant permission and then something goes wrong with Tasker and it doesn't successfully exchange the grant for a refresh_token. In fact the task just stops with no error message and returns to the list of tasks. The same code with the same service and login credentials is working correctly on older Android version.

I did Google the issue and saw references to other Tasker problems with Android 13 thanks to API changes. I enrolled in the Beta program and have Tasker/6.2.5-beta (Android/13) installed. This did not change the behavior.

On the server end, after Tasker gets the auth grant I see Tasker submit headers that are missing the "Authorization:Bearer ..." header so of course the grant is never replaced with a refresh_token. 

The task that generates the problem is attached (with privacy edits). A couple of notes:

- The "Flash" alert will display the expected Authorization header on an Android version that is working as expected. On Android 13 the "Flash" is never executed, as mentioned above, and the task just stops with no error message displayed after the first OAuth2 step in the task.

- I am using my own redirect_uri but it is a copy of yours. To be certain, I also verified this fails if I used your default redirect_uri.

Can I provide any additional information to help with debug?

 


task.xml

João Dias

unread,
Jun 13, 2023, 5:12:52 AM6/13/23
to tas...@googlegroups.com
Hmm, oauth2 still works for me even on Android 13. It actually did not change for me with that version.

Could you try using the Spotify API for example, and see if that works?


Try out just the auth part and see if it works, no need to worry about the ChatGPT stuff.

Thanks in advance!

Thank you for your contact.

   Join: connect multiple devices (send pushes, remote SMS, notifications) on Android, Windows, Mac, Linux
   Tasker: customize/automate anything on your phone!
   AutoApps: add advanced functionality to Tasker via plugins

     

João Dias


Reply all
Reply to author
Forward
0 new messages