tag:blogger.com,1999:blog-41421188383595023252024-02-20T14:35:26.838+02:00IL_Agent. Software development and other thoughts.Anonymoushttp://www.blogger.com/profile/10151221715404154134noreply@blogger.comBlogger4125tag:blogger.com,1999:blog-4142118838359502325.post-53040996345285201252014-11-11T22:15:00.000+02:002014-11-11T22:17:51.745+02:00How to implement the logout from VK.COM in the standalone app<div dir="ltr" style="text-align: left;" trbidi="on">
<div dir="ltr" style="text-align: left;" trbidi="on">
<div>
<span style="font-family: Tahoma; orphans: 2; text-align: -webkit-auto; widows: 2;">I'm developing the application for Windows Phone and Windows RT which is a social network VK.COM client. For a long time I have been searching for a way to implement logout from it. It was not trivial task because VK API is not supporting logout. </span></div>
<div>
<span style="font-family: Tahoma; orphans: 2; text-align: -webkit-auto; widows: 2;">While I was searching the solution in the internet I saw two kinds of the solution: </span><br />
<ol style="text-align: left;">
<li><span style="font-family: Tahoma; orphans: 2; text-align: -webkit-auto; widows: 2;">So-called "direct authorisation" which allows to authorizate in the application with the login and the password. It is avaible only for applications which are aprooved by vk and it requires an "eternal" token. But some developpers disassemble foreign applications and steal eternal tokens.</span></li>
<li><span style="font-family: Tahoma; orphans: 2; text-align: -webkit-auto; widows: 2;">Deleting the cookies with authorization data.</span></li>
</ol>
<span style="font-family: Tahoma; orphans: 2; text-align: -webkit-auto; widows: 2;">I have choosed the second one. </span><span style="font-family: Tahoma; orphans: 2; text-align: -webkit-auto; widows: 2;">There is code below which deletes necessary cookies and must be called before logging in of the other user.</span></div>
<div>
<span style="font-family: Tahoma; orphans: 2; text-align: -webkit-auto; widows: 2;"><br /></span></div>
<div>
<span style="font-family: Tahoma; orphans: 2; text-align: -webkit-auto; widows: 2;"><br /></span></div>
</div>
</div>
<style type="text/css">.csharpcode, .csharpcode pre
{
font-size: 13.3333px;
font-width: 400;
color: black;
font-family: "Courier New";
}
.csharpcode pre { margin: 0px; }
.csharpcode .comment { color: #008000; }
.csharpcode .comment2 { color: #808080; }
.csharpcode .type { color: #2B91AF; }
.csharpcode .keyword { color: #0000FF; }
.csharpcode .string { color: #A31515; }
.csharpcode .preproc { color: #0000FF; }
</style>
<div class='csharpcode'>Code:<pre style='border:1px dashed #CCCCCC;overflow-x:auto;overflow-y:hidden;background:#f0f0f0;padding:0px;color:#000000;text-align:left;line-height20px;color:#000000;word-wrap:normal;'><span class='type'>var</span> myFilter = <span class='keyword'>new</span> Windows.Web.Http.Filters<span class='type'>HttpBaseProtocolFilter</span>();
<span class='type'>var</span> cookieManager = myFilter.CookieManager;
<span class='type'>var</span> myCookieJar = cookieManager.GetCookies(<span class='keyword'>new</span> <span class='type'>Uri</span>(<span class='string'>"https://oauth.vk.com"</span>));
<span class='keyword'>foreach</span> (<span class='type'>var</span> cookie <span class='keyword'>in</span> myCookieJar)
{
cookieManager.DeleteCookie(cookie);
}<!--[if IE]>
<![endif]--></pre></div>Anonymoushttp://www.blogger.com/profile/10151221715404154134noreply@blogger.com0tag:blogger.com,1999:blog-4142118838359502325.post-37402137907803262992014-09-15T21:48:00.001+03:002014-09-15T22:15:10.142+03:00Renaming of an application in the windows phone store<div dir="ltr" style="text-align: left;" trbidi="on">
Hello.<br />
I have one issue with the windows phone store that has not resolved. I had a long correspondence with the develpment support, but they didn't get a help. The essence of the issue - renaming of an existing app for WP 8.1 in the windows phone store. There is instructions in MSDN about this process where is written that I can just create new submission and enter new name. But no ! I can't ! The hame field is disabled ! I asked on Stackoverflow, on MSD forum, but nobody has responded me.<br />
So, I've creted new application with desired name and hided old application from the store.<br />
If you know how to resolve that problem - please tell ! I'll be very glad !</div>
Anonymoushttp://www.blogger.com/profile/10151221715404154134noreply@blogger.com0tag:blogger.com,1999:blog-4142118838359502325.post-81908948910633233272014-08-31T22:27:00.004+03:002014-08-31T22:29:48.943+03:00How to search in the Blogger ?<div dir="ltr" style="text-align: left;" trbidi="on">
And less than one day after my prevoius post I have to write another one. I haven't found how to search blogs on the Blogger which could be interesting for me. In the the Live Journal it's very easy. I can find and subscribe on interesting blogs. But not here... Anybody who have read this post, could you tell me how to do it ?<br />
Thank you !</div>
Anonymoushttp://www.blogger.com/profile/10151221715404154134noreply@blogger.com0tag:blogger.com,1999:blog-4142118838359502325.post-56712258701527166822014-08-31T17:01:00.000+03:002014-09-01T11:06:26.768+03:00Instead of first post<div dir="ltr" style="text-align: left;" trbidi="on">
Hi everyone !<br />
My name is Ivan (aka IL_Agent). I'm software developer and citizen of Russia. And you are reading the first post in my blog. Thanks ! It's great.<br />
There are two main reasons that I've decided to start the blog.<br />
Firtsly, sometimes I have thoughts and questions (in software development sphere mainly) that I'd like to share. Also I have blog in Russian (<a href="http://il-agent.livejournal.com/">http://il-agent.livejournal.com</a>) but I had written there very rarely. Now I'm planning write olny here. And I'll maybe translate certain posts from that.<br />
Secondly, I'm in process of learning English. So writing in english could help me with that. And excuse me if I write something grammatically wrong. You could even show me my mistakes. I'll be grateful :)<br />
So, let's start !<br />
<br /></div>
Anonymoushttp://www.blogger.com/profile/10151221715404154134noreply@blogger.com0