oauth

Combining ADAL.Net and ADAL.js

£可爱£侵袭症+ 提交于 2019-12-25 07:52:28
问题 I have a legacy application that was written using web forms. In this project we started to convert some of the webforms to SPA, angular.js, and WebAPI. The SPA pages communicate directly with the WebAPI. The idea is that eventually, all of the webforms will be converted to the new technology. For the SPA pages, I've implemented adal.js and for the webforms I'm using ADAL.net. Both are obviously using Azure Active Directory. However, they don't seem to be using the same bearer token, because

Codeigniter login with facebook nothing happens

╄→гoц情女王★ 提交于 2019-12-25 07:49:00
问题 I want to create a login with Facebook in my website. I found a code in the internet that made it simple loading the library of Facebook php sdk. I tried the code but it doesn't work in me. Please help me how to do login with facebook in codeigniter. Here is the code : <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); require_once( APPPATH . 'libraries/facebook/src/facebook.php' ); class FacebookApp extends Facebook { var $ci; var $facebook; var $scope; public

LiveConect Auth (for SkyDrive) NullReferenceException (WTH)?

雨燕双飞 提交于 2019-12-25 07:47:46
问题 I followed a 43 minute video tutorial on the Channel 9 site and read the LiveConnect page where it shows code and I don't see what I'm doing wrong. It keeps giving me a NullReferenceException error and it doesn't even bring up the "Do you want to allow app X to access skydrive" thing, it just breaks immediately. I've set breakpoints everywhere but there is nothing. Just null, null everywhere. OnNavigatedTo event: LoadProfile(); private async void LoadProfile() { try { LiveAuthClient auth =

What is the user in this node.js package code?

强颜欢笑 提交于 2019-12-25 07:34:12
问题 I am studying the client-oauth2 npm package. The code sample from the link in the preceding sentence includes the word user . What does user refer to? Is user a built in type? Or does the developer need to create their own user model class? If so, please give a good example of how to create and integrate a user model class. Any links to documentation about user or code samples for user for this package would also be greatly appreciated. Here is a code snipped from the link above which

How to get the youtube favorites url

若如初见. 提交于 2019-12-25 07:29:13
问题 I made the following var NAME = 'youtube'; var SCOPE = 'http://gdata.youtube.com'; //var URL = "https://picasaweb.google.com/data/feed/api/user/default"; var URL = "http://gdata.youtube.com/feeds/api/users/default/favorites?v=2"; function doGet(e) { var app = UiApp.createApplication().setTitle("youtube"); var data = UrlFetchApp.fetch(URL, googleOAuth_()).getContentText(); var xmlOutput = Xml.parse(data, false); var favorites = xmlOutput.getElement().getElements('entry'); app.add(app

Using ADAL in .net 3.5

自闭症网瘾萝莉.ら 提交于 2019-12-25 06:29:55
问题 I have an AzureAD registered Web API working correctly. I am able to acquire the access token by means of AcquireTokenAsync. No problems there. However, no I need to downgrade my rest client library to .net 3.5. I am not being able to use ADAL in .net 3.5. AcquireTokenAsync returns a Task, which is not supported in 3.5. I have read in some tutorials that there is a non async verstion of the method (AcquireToken) here. But I just can't access that method. Also, when I try to install that

Working with basic Node OAuth redirect following

时光毁灭记忆、已成空白 提交于 2019-12-25 05:52:32
问题 Still confused about one point with node. I’ve got a server running at http://localhost:3030 to listen for the hit from the redirect, but the redirect never comes. How, in Node, do you have the request actually follow the redirects. And end up at http://localhost:3030/?code=ccf3d214669645f594b59be14032e20d Here is the link; In the browser it does end up in the right place https://www.instagram.com/oauth/authorize/?client_id=8901edf0746b460489427434ba5d321e&redirect_uri=http://localhost:3030

Working with basic Node OAuth redirect following

与世无争的帅哥 提交于 2019-12-25 05:52:06
问题 Still confused about one point with node. I’ve got a server running at http://localhost:3030 to listen for the hit from the redirect, but the redirect never comes. How, in Node, do you have the request actually follow the redirects. And end up at http://localhost:3030/?code=ccf3d214669645f594b59be14032e20d Here is the link; In the browser it does end up in the right place https://www.instagram.com/oauth/authorize/?client_id=8901edf0746b460489427434ba5d321e&redirect_uri=http://localhost:3030

android google acc: Exchange the authorization_code for an access_token

谁都会走 提交于 2019-12-25 05:14:33
问题 I tried to to exchange auth code for an access token, but no success. I need to access user profile. Here is my code: first get auth code: EDITED: private void googleAuthenticate(){ try { mOAauthHelper = new OAuthHelper("something.net", "xxxxx", "https://www.googleapis.com/auth/userinfo.profile", "alex://myScheme"); String uri = mOAauthHelper.getRequestToken(); startActivity(new Intent("android.intent.action.VIEW", Uri.parse(uri))); //Intent i = new Intent(this, GoogleOAUTHActivity.class); /

How to store twitter oauth details in mysql database?

跟風遠走 提交于 2019-12-25 05:07:27
问题 I am developing a basic twitter oauth app! Here's the code - $twitterObj = new EpiTwitter($consumer_key, $consumer_secret); $oauth_token = $_GET['oauth_token']; if($oauth_token == '') { $url = $twitterObj->getAuthorizationUrl(); echo "<div style='width:200px;margin-top:200px;margin-left:auto;margin- right:auto'>"; echo "<a href='$url'>Sign In with Twitter</a>"; echo "</div>"; } else { $twitterObj->setToken($_GET['oauth_token']); $token = $twitterObj->getAccessToken(); $twitterObj->setToken(