HTTP Auth

Authenticate with a web service.

OAuth 2.0

Allows you to sign in a user and act on behalf of that user in a web service.

For example, if you sign in as a user on the Spotify API and give it proper permissions, you can then add songs to the user's Spotify playlists.

On most web services that use OAuth 2.0 you have to create an app on that service that you can then use to sign in the user.

Very important: when creating the app on the web service make sure to set the Redirect URI to https://tasker.joaoapps.com/auth.html.

Examples

Inputs

Client ID and Client Secret
Given to you by the web service when you create an app on it
Endpoint To Get Code
A URL that is indicated in the web service documentation. Look for a URL in the docs that has the response_type=code parameter and use just the base URL.
For example, for Google web services that support OAuth 2.0 this URL is https://accounts.google.com/o/oauth2/v2/auth as you can see here.
Important Note: sometimes some APIs require additional parameters to be added to this URL. For example, the Reddit API requires you to add an additional duration=permanent parameter. To do this, simply add these extra parameters to the endpoint URL. In the reddit example you would use https://www.reddit.com/api/v1/authorize?duration=permanent instead of just https://www.reddit.com/api/v1/authorize.
Endpoint To Get Refresh Token
Also an URL that is indicated in the web service documentation. Look for a URL in the docs that has the grant_type=refresh_token parameter in the request body.
For example, for Google web services that support OAuth 2.0 this URL is https://www.googleapis.com/oauth2/v4/token as you can see here.
Scopes
One per line.
These will define the permissions that your app will request the user when acting on his/her behalf.
For example, to list a user's calendars in the Google Calendar API you would need to use the https://www.googleapis.com/auth/calendar.readonly scope.