Browse Source
chore: Remove additional Authorization Bearer Header setting, as this is already added by default
pull/2398/head
DevTKSS
2 months ago
No known key found for this signature in database
GPG Key ID: 7FFC0E610A51B468
1 changed files with
1 additions and
4 deletions
-
src/OpenIddict.Client.WebIntegration/OpenIddictClientWebIntegrationHandlers.Userinfo.cs
|
|
@ -124,12 +124,9 @@ public static partial class OpenIddictClientWebIntegrationHandlers |
|
|
request.Headers.Add("X-API-Key", settings.ApplicationKey); |
|
|
request.Headers.Add("X-API-Key", settings.ApplicationKey); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// Etsy requires sending the client identifier 'client_id' gotten from Authorization Code exchange aka x-api-key in the Headers
|
|
|
// Etsy requires sending the client identifier 'client_id' gotten from Authorization Code exchange aka x-api-key in the Headers (AttachAccessTokenParameter sets Authorization Bearer header already by default).
|
|
|
// AND the AccessToken aka 'oAuth2' in Etsy Docs with the shops_r Scope in the Authorization Bearer Header.
|
|
|
|
|
|
else if (context.Registration.ProviderType is ProviderTypes.Etsy) |
|
|
else if (context.Registration.ProviderType is ProviderTypes.Etsy) |
|
|
{ |
|
|
{ |
|
|
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", |
|
|
|
|
|
request.Headers.Authorization?.Parameter); |
|
|
|
|
|
request.Headers.Add("x-api-key", context.Registration.ClientId); |
|
|
request.Headers.Add("x-api-key", context.Registration.ClientId); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|