VB.Net Application for OAuth from browser | بلاگ

VB.Net Application for OAuth from browser

تعرفه تبلیغات در سایت

آخرین مطالب

امکانات وب

Vote count: 0

I'm trying to build a simple application that does OAuth from a game server and lets the user log in and share information on their account with my application. So far I'm using Process.Start to run the URL and open the browser. The problem I'm running into is that when the user selects 'Authorize', I don't know how to process the redirect.

Keep in mind, I'm really new at this and I don't have any real experience with web programming. So any help would be useful. I'm sure this is super simple but the browser can't connect to the localhost and I'm not sure what I'm doing wrong.

Here's my simple code with the URL based on the game's documentation page:

Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
    Dim BaseServerURL As String = "https://login.eveonline.com/"
    Dim Response As String = "oauth/authorize?response_type=code"
    Dim RedirectURL As String = "&redirect_uri=https://localhost/callback/"
    Dim ClientID As String = "{my ID}"
    Dim Scope As String = "&scope=esi-characters.read_standings.v1"

    Process.Start(BaseServerURL & Response & RedirectURL & ClientID & Scope)


End Sub
asked 1 min ago
Brian Seattle

...
نویسنده : استخدام کار بازدید : 11 تاريخ : چهارشنبه 25 بهمن 1396 ساعت: 8:25