oauth

Retrieving user profile on messenger(windows live) connect sdk within php

谁说我不能喝 提交于 2020-01-03 05:21:07
问题 I am using this example to successfuly make a login connection on windows live platform: http://code.msdn.microsoft.com/messengerconnect (the oauth handler callback one) I receive a token and a user id from their api, but I can't seem to understand how to fetch the user profile from these info. Does anyone know how to do this? There are examples in MS website, but they are all C# or javascript ones and I have to do it in PHP. After retrieving the token and the cid I tried this, but returns me

OAuthWebSecurity - Without OpenID

大城市里の小女人 提交于 2020-01-03 05:19:41
问题 Is it DotNetOpenAuth OAuthWebSecurity only for OpenID Providers? OAuthWebSecurity.RegisterClient(new CutomOAuth2Client("ID", "KEY"), "CustomProvider", null); Or could I base my entire authentication in a external OAuth Provider that doesn't implement OpenID? The scenario is likely if I want to develop a client for facebook but facebook isn't a OpenId provider... 回答1: Yes you can base your authentication on an external OAuth provider. I just made this SO post: How to let users login to my site

oauth_callback for Khan Academy API not woring

耗尽温柔 提交于 2020-01-03 04:47:11
问题 We are working on wiring up our application with Khan Academy and I am not able to get a proper redirect back after authorizing the request token. I always get the default callback along with the body "OK" and NEVER get redirected back to the location specified on our oauth-callback. I am getting a javascript error in the browser and I am wondering if this is the source of the problem. Here is an example of our authorize call (after successfully getting the request token): https://www

How can I access the Google account user_id?

一笑奈何 提交于 2020-01-03 04:35:11
问题 I'd like to access the user's Google account user_id for authentication, but I don't see any mention of this in the AccountManager. How can my app request the user_id ? 回答1: Now that Google Play Services is available, you can use it to request the user's permission to access the https://www.googleapis.com/auth/userinfo.profile scope and, with the resulting access token, make a request to https://www.googleapis.com/oauth2/v1/userinfo?access_token={accessToken} to get their user ID. 回答2: You

Not being able to authenticate using in Android App

那年仲夏 提交于 2020-01-03 02:54:28
问题 I have created a Button in the UI which on clicking should call a function(fbLogin()), which opens a Session (if closed) and authorizes the user. public void fbLogin(View button) { Log.e(getClass().getName(), "0"); Settings.addLoggingBehavior(LoggingBehavior.INCLUDE_ACCESS_TOKENS); Session session = Session.getActiveSession(); if (session == null) { Log.e(getClass().getName(), "1"); if (savedInstanceState != null) { Log.e(getClass().getName(), "2"); session = Session.restoreSession(this, null

Calling the Graph api after SAML2.0 auth. How do I get the Auth token required

99封情书 提交于 2020-01-03 02:21:12
问题 Our web aap is authenticating with the Azure AD via SAML2.0 similar to this. In return we get SAML assertion(SAML token). But when the user who logs in have more then 150+ groups the response doesn't contain the group information(so that token size doesn’t exceed HTTP header size limits. More info on this) But what it return is a Graph Api to be hit to get the group information something like https://graph.windows.net/{tenant id}/users/{user id}/getMemberObject. By going through this I

Submitting to Twitter with Classic ASP

微笑、不失礼 提交于 2020-01-03 01:48:25
问题 I am trying to implement twitter posting on a website. when a user posts an alert and they check off "submit to twitter" I want to send the contents of the box (140 chars of it) to the associated twitter account. So I've done the following: Registered a new app in twitter Gotten all of my tokens/keys Set up the following library: http://scottdesapio.com Changed all of the parameters per the instructions Every time I try to submit, though, I'm getting an "Could not authenticate with OAuth"

Magento Rest Oauth API (Signature Invalid) 401

天大地大妈咪最大 提交于 2020-01-03 01:14:20
问题 I get a Signature invalid problem when I try to get data from Magento in Java. What is wrong with my code: public class MagentoFacade { final String MAGENTO_API_KEY = "apikey"; final String MAGENTO_API_SECRET = "apisecret"; final String MAGENTO_REST_API_URL = "urlmagento/api/rest"; public void testMethod() { OAuthService service = new ServiceBuilder() .provider(MagentoThreeLeggedOAuth.class) .apiKey(MAGENTO_API_KEY) .apiSecret(MAGENTO_API_SECRET) .debug() .build(); System.out.println("" +

How to read the OAuth request parameters with PHP?

拟墨画扇 提交于 2020-01-03 00:00:07
问题 I'm trying to connect an iPhone app to a PHP API using 2-legged OAuth as the Authentication mechanism. I'm using the PHP and Objective-C 2.0 libraries from http://code.google.com/p/oauth/ . The problem is that when I'm trying to issue a GET request with Objective-C, it doesn't include the OAuth parameters in the request URI, like the PHP library does when issuing an OAuth GET request: http://www.mysite.com/oauth/index.php?oauth_consumer_key=key&oauth_nonce=XXXXXXXX&oauth_signature=XXXXXXXXXXX

Google's oauth endpoint is returning a 'Bad Request'… but why?

我是研究僧i 提交于 2020-01-02 20:59:45
问题 After a lot of time wasted googling for the possible reasons for a 'Bad Request' when requesting for a token at https://accounts.google.com/o/oauth2/token, I decided to ask why this code can't obtain nothing but a 'bad request' response from the server... String url = "https://accounts.google.com/o/oauth2/token"; HttpsURLConnection con = (HttpsURLConnection) obj.openConnection(); con.setChunkedStreamingMode(0); con.setRequestMethod("POST"); con.setRequestProperty("Host", "accounts.google.com"