webapi with oauth, revoke token? [closed] - c#

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions concerning problems with code you've written must describe the specific problem — and include valid code to reproduce it — in the question itself. See SSCCE.org for guidance.
Closed 9 years ago.
Improve this question
Hello all im following this article here to implement a webapi with individual accounts using the owin oauth.
Link
My question is there any way to revoke a tokens access to the webapi the "sign out" method really does nothing from me since ill be accessing this webapi through a phone app. Thanks for any info !

Revoking tokens is hard - but you can limit their lifetime and refresh them periodically. see here:
http://leastprivilege.com/2013/11/15/adding-refresh-tokens-to-a-web-api-v2-authorization-server/

Related

replace variables in querystring for url path asp.net c# [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions concerning problems with code you've written must describe the specific problem — and include valid code to reproduce it — in the question itself. See SSCCE.org for guidance.
Closed 9 years ago.
Improve this question
i know there's a way to do this, but i just can´t remember how it was, i did search in the other posts about this topic but is not just what i'm looking for:
i have this
http://www.example.com/detail.aspx?userid=gartest&tutorialid=1001
should be like
http://www.example.com/gartest/1001
plase help, thaks
In asp.net webforms you can create ASP.net mvc like route rules to do so.
http://msdn.microsoft.com/en-us/library/dd329551.ASPX
http://msdn.microsoft.com/en-us/library/cc668177.aspx

How to integrate asp.net web application with Google Drive? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I have existing web application in asp.net, now i like to add Google drive to my web application. Is it possible or not in asp.net web application. If it is possible, please help me. Thanks in advance.
Did you even bother to look at the drive sdk before asking? Right in the front page of the sdk there is a complete .net sample for drEdit and all apis in help contain a sample in .net as well.

integrated windows authentication in asp.net using C# [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I want to add integrated windows authentication feature to my asp.net app. I dont know how to add it. I am developing it with C#. Please help me out.
Inside a default project's web.config file, there should be an <authentication mode="x"> element. Change the mode to "Windows" and you should be all set -- but this just allows users from your network to access the app. You'd still have to create roles and/or groups to prevent access to certain features or areas.

WPF library with page - navigation of the application [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 8 years ago.
This question appears to be off-topic because it lacks sufficient information to diagnose the problem. Describe your problem in more detail or include a minimal example in the question itself.
Questions concerning problems with code you've written must describe the specific problem — and include valid code to reproduce it — in the question itself. See SSCCE.org for guidance.
Improve this question
Now I experiment with your application architecture. I have wpf library(AppView.dll MVVM) with my pages (View/MyPage.xaml). I use this library in my wpf app. How do I set the correct URI for navigation ? I tried URI so "pack://application:,,,/AppView;View/MyPage.xaml". But there is an error - "resource not found appview;view/MyPage.xaml". How to use the navigation page from another assembly?
Try using /AppView;component/View/MyPage.xaml or "pack://application:,,,/AppView;component/View/MyPage.xaml"

User Stream and TweetSharp [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I'm using User Stream and Instead of pull-to-refresh to check for new tweets or waiting for the 5 minute auto-refresh to take place, I want tweets appear instantly in timeline as they are published.
I'm using TweetSharp with Xamarin.IOS
Any Code Sample will help a lot even if with other Programing Lang
I can't really help you with the Xamarin part of it, since I haven't used any of the Xamarin tools, but you want to use the Streaming part of TweetSharp to handle this. See this section for the classes you'll probably want to use:
https://github.com/danielcrenna/tweetsharp/blob/master/src/TweetSharp/TwitterService.Streaming.cs
Here is a code sample of using streaming in TweetSharp: https://gist.github.com/kensykora/8005935
See the official twitter docs on their streaming here: https://dev.twitter.com/docs/streaming-apis

Categories