IdentityModel / AuthorizationServer

Sample implementation of an OAuth2 Authorization Server
Other
281 stars 136 forks source link

Get code from Code Flow (client request) #252

Closed simplynewbie closed 9 years ago

simplynewbie commented 9 years ago

Excute me, can you show me exactly the link after click Allow from: yyyy

to get the code. I use WPF client and i try this code: yyyi __ I plays the debug (of your code flow sample) and it shows code in ViewBag.Code but i don't know how it can return that code.

And where i can change this url "https://localhost:44303/callback" of Code Flow? I mean only text, example: http://abc.com/callback

simplynewbie commented 9 years ago

I dont know why but today i can not upload image or edit comment here so i comment this: __ I try: private void WBrowser_OnNavigated(object sender, NavigationEventArgs e) { if (e.Uri.ToString().StartsWith("the-link-after-clicking-ALLOW")) // {
// Is the-link-after-clicking-Allow https://localhost:44303/callback?code=... ? // If yes, i'll try this: CodeToken = e.Uri.Fragment.Split('?')[0].Replace("code=", ""); // ... } }

leastprivilege commented 9 years ago

We don't do any active support anymore. Think of AS as a sample.

You need to debug your way through yourself.

simplynewbie commented 9 years ago

thank you, i'm sorry :(