esi / esi-issues

Issue tracking and feature requests for ESI
https://esi.evetech.net/
209 stars 23 forks source link

C# SSO auth 401 Unauthorized #1296

Closed Irigana closed 3 years ago

Irigana commented 3 years ago

Bug

The remote server returned an error: (401) Unauthorized'

Hello, I have some issues with the OAuth 2.0 flow of my c# app. I'm stuck at the last step when I try to send the post request in order to get the JWT I have the following error : (401)Unauthorized.

code={Access_Token} => https://localhost/callback/?code={Access_Token}&state={Unique_state} code_verifier={code_verifier} => I keep the code_verifier when i make my code_challenge like that : image

I make my request url here : image

And

image

Do you have any idea what I'm doing wrong?

Request

https://login.eveonline.com/v2/oauth/token/?grant_type=authorization_code&code={Access_Token}&client_id={client_id}&code_verifier={code_verifier}"

Response

Unauthorized

Status Code

401

Checklist

Check all boxes that apply to this issue:

Blacksmoke16 commented 3 years ago

This would be better suited to the forums or slack as it's most likely an issue with the code. However, if it does end up being an actual bug, it should be reported in the https://github.com/ccpgames/sso-issues repo as this isn't an ESI issue.