alexziskind1 / nativescript-oauth2

Other
86 stars 93 forks source link

Basic Authorization Header #140

Open hbird3715 opened 3 years ago

hbird3715 commented 3 years ago

Hi,

I'm creating a custom provider for AWS Cognito, and receiving a 400 status code when attempting to exchange the code for the access token. /oauth2/token required an Authorization header. https://docs.aws.amazon.com/cognito/latest/developerguide/token-endpoint.html

Can anyone assist with telling me how to set _customHeaders in the TnsOAuthClientConnection (as used in the _createRequest function) or where/how to call getAuthHeaderFromCredentials which specifically looks for the basicAuthHeader property of the provider.

Any assistance would be greatly appreciated. Thank you!