ภายใต้ประเภทการให้สิทธิ์โดยนัย - โทเค็นการเข้าถึงจะถูกส่งเป็นส่วนย่อย ไม่ใช่เป็นพารามิเตอร์ ตัวอย่างเช่น: http://localhost/#state=123456789&token_type=Bearer&access_token=xxxxxxxxxxxxxxxxxxxxx&scope=write+read&expires_in=2592000.
ฉันจะเข้าถึงได้จาก c# ได้อย่างไร
HttpListener listener = new HttpListener();
listener.Prefixes.Add("http://localhost/");
listener.Start();
System.Diagnostics.Process.Start("https://sketchfab.com/oauth2/authorize/?state=123456789&response_type=token&client_id=yyyyyyyyyyyyyyyyyyyyyyyyyyy");
HttpListenerContext context = listener.GetContext();
HttpListenerRequest request = context.Request;
// request.QueryString doesn't contain access_token
listener.Stop();
แก้ไข: เท่าที่ฉันเข้าใจจาก ฉันจะได้รับแฮชของ URL ได้อย่างไร - ฉันไม่สามารถเข้าถึงข้อมูลนี้จากเซิร์ฟเวอร์ได้
คำตอบสุดท้ายที่นี่ เป็นไปได้ไหม ใช้ OAuth 2.0 โดยไม่มีเซิร์ฟเวอร์เปลี่ยนเส้นทางใช่หรือไม่ ไม่ได้กล่าวถึงประเภทการให้สิทธิ์โดยนัย