.NET Core - Azure OAuth 2.

Hi I am currently building out an System which requires the use of a webhook from a thrid party system. This thrid party system uses OAuth2 to authenticate aginst my system. The problem that I am having is that when I create the OAuth Token using only the ClientID and Secrete my API returns a 401 . However when I create then token using PostMan and it's inbuilt system for managing OAuth Tokens MY API is as happy as can be. I know that this must be something to do with my Apps Configuration. But I cannot figure out why a token provided one way works and if provided a different way fails.. Any Help / Advise or points will be gratefully accepted. Thanking you in advance.
2 Replies
D.Mentia
D.Mentia9mo ago
Show code of how you're getting the oauth token in the api But recently I had a similar issue, and it was that the auth info needed to be in the Authentication header, as Basic, "ID:Password" encoded as base64 could be unrelated, though I think that's a typical way to take in auth data that isn't a token
ToxicBlotch#1001
ToxicBlotch#1001OP9mo ago
I cannot show that code of how the token is created. As this is with a third party provider.
Want results from more Discord servers?
Add your server