diff --git a/_authentication.md b/_authentication.md index 13b5e3a..0e2dbc6 100644 --- a/_authentication.md +++ b/_authentication.md @@ -73,15 +73,11 @@ Supported parameters: Parameter | Required | Description ------------- | -------- | ------------------------------------------------------------------------------------- -client_id | yes | The application's *clientId*. Please use HTTP Basic Authentication when possible. -client_secret | yes | The application's *clientSecret*. Please use HTTP Basic Authentication when possible. +client_id | yes | The application's *clientId*. +client_secret | yes | The application's *clientSecret*. code | yes | The code acquired in step 1. grant_type | yes | Must be set to *'authorization_code'*. - - ### Step 3 - Using the Access Token > Request using the 'Authorization' header: @@ -128,14 +124,10 @@ Supported parameters: Parameter | Required | Description ------------- | -------- | ------------------------------------------------------------------------------------- -client_id | yes | The application's *clientId*. Please use HTTP Basic Authentication when possible. -client_secret | yes | The application's *clientSecret*. Please use HTTP Basic Authentication when possible. +client_id | yes | The application's *clientId*. +client_secret | yes | The application's *clientSecret*. grant_type | yes | Must be set to *'client_credentials'*. - - ### Using the Token > Request using the 'Authorization header': @@ -261,18 +253,3 @@ curl https://api.uphold.com/v0/me \ A PAT may be used for authenticating a request via the OAuth scheme. The `` should be set as the `accessToken` received during creation. - -## Basic Authentication - -> Simple request using email and password: - -```bash -curl https://api.uphold.com/v0/me \ - -H 'OTP-Token: ' \ - -u : -``` - -You can use Basic Authentication by providing your email and password combination. - -If OTP (One-Time Password, also known as Two-Factor Authentication) is required, then you will get a [401 HTTP error](#errors), along with the HTTP header `OTP-Token: Required`. -In which case, execute the command above again, this time passing your OTP verification code header, like so: `OTP-Token: `.