jenius-apps / nightingale-rest-api-client

A modern, resource-efficient REST API client for Windows
https://nightingale.rest
MIT License
769 stars 36 forks source link

Authorization doesn't work #164

Open zvrba opened 3 years ago

zvrba commented 3 years ago

Installed Nightingale from app store. Tried to use access token in three ways:

  1. Choosing "Bearer" under auth and pasting access token there.
  2. Choosing "OAuth2.0" under auth and pasting access token there.
  3. Turned off auth and manually set up Authorization header with "Bearer (token)" value.

Nothing worked, I always get "401 unauthorized" back. Copy-pasting the same token into Postman triggers the API call successfully. Though probably not the issue, in the log window I noticed that Nightingale adds a "Cokkie ARRAffinity" header that Postman does not.

dpaulino commented 3 years ago

Are you able to share your URL?

zvrba commented 3 years ago

Yes, but how do I send a private message on github?

dpaulino commented 3 years ago

Feel free to email at jenius_apps@outlook.com

zvrba commented 3 years ago

Sent to email.

dpaulino commented 3 years ago

Thanks, just so I understand, this is an API that you're building yourself right? Does the error repro in both localhost and with the link you sent?

zvrba commented 3 years ago

Yes, it's an API I'm building myself. It's a plain ASPNET Core api configured to verify tokens issued by Azure AD. I do not test against localhost, I use only remote debugging.