Unable to Get Oauth2 Token in C#


(Andywanggd) #1

Hi all, I keep getting a webpage that says “CSRF verification failed. Request aborted.” whenever I make a POST request from my Unity project.

I am making a request at this URL:

string loginURL = "https://sketchfab.com/oauth2/authorize/?state=123456789&response_type=password&client_id=" + dummyClientId+ "&" +user+ "&password=" +pass;

I am following the https://sketchfab.com/developers/oauth “Username/Password” grant type.