English 中文(简体)
通用图书馆C#
原标题:Generic OAuth Library C#

www.un.org/Depts/DGACM/index_spanish.htm 正在做的是:。

在C#上撰写<代码>Generic Library in C#,处理OAuth的向每一处流动(例如Twitter、LinkedIn和 Foursquare)。 最难部分是,我想模拟代码中的所有用户投入,以便无需用户采取行动,点击“Ok,I将允许它”等纽芬兰语或甚至书写其用户名/密码。

Doubts 至今为止:

1 - 变本体中<代码>autticity_token的用途是什么?

2 - 所有服务都使用哪些因素,以便一概使用奥乌特流动。 例如,一刀切地发现,第一个步骤实际上很容易成为一种执行通用方法。 所有这一切都是为了改变网上申请的URL,而BAM则有申请。

3 - 如何为每项服务找到答案? 例如,LinkedIn Service , i 能够平整一页,以计算这一数值,但例如,可以找到verifier。 即便在浏览器中授权使用我的复制件,也看不出<代码>Verifier在流中的任何超文本中,或任何产生这种复制的 Java。

<<>Observation>:

1- 我知道那里有OAuth图书馆的Lots,如,,但没有图书馆允许我做什么,这就是说是想要的,这就是说是奥地利语,授权用户,而无需任何用户的投入。

2 - I can t,by any means,ask for user input. All the values like username and password for the authentication, will be hardcoded and every user will use the same account for this requests.

3 - I also know, that there are other posts here that i ve written, with almost the same doubts, and the reason i am resposting is to try to make it clearer and fresher.

4 - 预先调查任何错误或概念错误。

www.un.org/Depts/DGACM/index_spanish.htm 基本法典:

This is, for instance, the method i am using (that is avaible widely abroad the web) for getting request tokens for any service. All i have to do is change the REQUEST_TOKEN value to the specific url to be used for a service,so i can get the Tokens for LinkedIn,Twitter or Foursquare for instance. But i can t manage to apply the same process in the other steps.

public string AuthorizationLinkGet()
    {
        string ret = null;

        string response = oAuthWebRequest(Method.GET, REQUEST_TOKEN, String.Empty);
        if (response.Length > 0)
        {
            //response contains token and token secret.  We only need the token.
            NameValueCollection qs = HttpUtility.ParseQueryString(response);

            if (qs["oauth_callback_confirmed"] != null)
            {
                if (qs["oauth_callback_confirmed"] != "true")
                {
                    throw new Exception("OAuth callback not confirmed.");
                }
            }

            if (qs["oauth_token"] != null)
            {
                ret = AUTHORIZE + "?oauth_token=" + qs["oauth_token"];
            }
        }
        return ret;
    }
问题回答

www.un.org/Depts/DGACM/index_spanish.htm Don t。

OAuth was designed to require a user to press that button once. If you automate it you will have your application key revoked and your program will no longer work.

你们需要做的是在当地拯救象征性和再利用的授权。 用户点击“I 允许”一度,你就重新使用为未来连接标注的授权。 你们需要检查,以确保它不会过期,如果只是重新授权,又点击“允许”。

没有一个网站正确操作,用户可以绕过网站的授权,有些网站将允许你通过询问通过用户名称和密码,并打字,但如果网站有授权,则用户可以人工操作。

如果你是奥乌特公司和消费者,那么你需要做些什么,才能找到与他们老的APIC的任何联系,如果任何人能够找到这个职位的话,就把用户名称和密码传给一个特别地址,而该地址却不使用一个网页,就恢复了自闭症。 或者,你需要使用比奥阿特不同的认证办法。





相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

NSArray s, Primitive types and Boxing Oh My!

I m pretty new to the Objective-C world and I have a long history with .net/C# so naturally I m inclined to use my C# wits. Now here s the question: I feel really inclined to create some type of ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

How to Use Ghostscript DLL to convert PDF to PDF/A

How to user GhostScript DLL to convert PDF to PDF/A. I know I kind of have to call the exported function of gsdll32.dll whose name is gsapi_init_with_args, but how do i pass the right arguments? BTW, ...

Linqy no matchy

Maybe it s something I m doing wrong. I m just learning Linq because I m bored. And so far so good. I made a little program and it basically just outputs all matches (foreach) into a label control. ...

热门标签