From 52777aec04783c08f69e8a280f737adc60613b85 Mon Sep 17 00:00:00 2001 From: Dave Salomon Date: Thu, 16 Jun 2022 15:06:29 +0100 Subject: [PATCH] remove http basic auth documentation (deprecated) --- _authentication.md | 31 ++++--------------------------- 1 file changed, 4 insertions(+), 27 deletions(-) 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: `.