Questions tagged [oauth-2.0]

2

votes
0

answer
966

Views

How to configure a LinkedIn's application in HybridAuth?

I state that I have created an application with LinkedIn and I am in possession of the key and the secret key of the application. After inserting the key in the configuration file in HybridAuth (config.php) and after trying to log in with my LinkedIn account, HybridAuth returns me the following erro...
Stefano Coviello
2

votes
1

answer
364

Views

Get Facebook login status and signed request without JS SDK

I'm developing a mobile app with Cordova 3.0.9, and a Rails backend. Right now I'm implementing the authentication part, and been able to implement a client-side Facebook authentication with the help of the InAppBrowser plugin and get the access token for the user. My question is, as I'm using Omnia...
RuiMochila
2

votes
1

answer
490

Views

how to sign in to facebook chat with gloox

I used gloox to chat with my facebook buddy, and the authentication mechanisms is X-FACEBOOK-PLATFORM. Now I use OAuth1.0 facebook sdk, but facebook will change the sdk to OAuth2.0. and I do not know how to sign in to facebook chat with the access token. now my Facebook Chat Authentication code befo...
user1097398
2

votes
1

answer
54

Views

Transform PHP script into executable

I am trying to create a script to upload my file to Google Drive. When I run it, it works perfectly. Here's the working code: public function uploadToDrive() { $client = new Google_Client(); $client->setClientId(Mage::getStoreConfig('mtm_google/drive/client_id')); $client->setClientSecret(Mage::getS...
MapleSyrup
2

votes
0

answer
667

Views

Should I use the DotNetOpenAuth OAuthAuthenticationModule or not?

In dnoa's web rp application template for visual studio, there is an HttpModule named OAuthAuthenticationModule. However, I can't tell how it's used, since it doesn't look like the vs template (the MVC one anyway) does any OAuth authentication out of the box. The samples in version 3.5.0.10213 of D...
danludwig
2

votes
0

answer
280

Views

How to check, if a user is admin using OAuth2 with Google Endpoints (Android App and Java)?

I am currently developing an Android app that uses Google end points and OAuth2. I would like to use the built in App Engine roles (owner, developer and viewer) to check if the user is an administrator or not. OAuth is working fine and I can pass the User object to my back-end as a method parameter...
user2444348
2

votes
1

answer
1.1k

Views

Google Script OAuth for multiple users

I've created a Google App Script that handle 2 different OAuth connections. 1- Google itself to send mail on behalf of the user and access google docs (google api console used to get keys, secret) 2- gtraxapp wich is a timesheet cloud-based app. (Script is registered, got a key/secret, etc.) The sc...
Christian Tremblay
2

votes
2

answer
654

Views

How to access domain users' calendar using service account in .net?

I am using service account with key.p12 cert to access google calendar API. However, it cannot access any user's calendar in the domain. I did follow the steps to Delegating domain-wide authority to the service account https://developers.google.com/accounts/docs/OAuth2ServiceAccount It does not have...
Carol
2

votes
0

answer
138

Views

How to access google drive use oauth2.0 and objective c

I download the google-api-objectivec-client-read-only.zip from google developer and I import the lib to my xcode project.But I don't know how to use the google-api-objective-client to access the google drive with oauth2. My code: - (void)oauth2access { // Load the OAuth 2 token from the keychain, if...
Karl Doenitz
2

votes
2

answer
198

Views

How to grant access to linked/secondary Google accounts

I'm developing an Android app where users must be able to authenticate and then make calls to the YouTube Data API. I have no problems authenticating the users with their main account, using Google Sign-In everything is easy and user friendly, both for me and the users. The problem is that some Goog...
2

votes
0

answer
170

Views

Migrate from Google Authsub token to Oauth2 Token

i have stored Google Authsub token in my database to upload video on their YouTube Channel. i have used Zend Gdata library for this. Google is removing Authsub feature in April 2015. is there anyway to migrate my all Google Authsub token to OAuth2 token ? Thanks!
Ashish Shah
2

votes
0

answer
352

Views

I got the null values for tenantId and Userinfo in Authentication Result

In one of my current Bot development, I was implemented AAD authentication using sign-in card. This is the URL to login http://localhost:3979/api/{activity.From.Id}/login After entered the user credentials in website it will be redirected to my html page. This is the code I wrote in my LoginControl...
pradeep
2

votes
0

answer
157

Views

How to reset notifyAuthFailure flag on Android device (android.accounts.AccountManager)

I am developping an Android app and I would like to reset the notifyAuthFailure flag on my device so that I am prompted again by my device. I have the following method call: accountManager.getAuthToken(account, 'oauth2:https://www.googleapis.com/auth/‌​analytics.readonly', true, new AccountManag...
balteo
2

votes
0

answer
360

Views

Authenticating Google API with a service account using Python Oauthlib

I do not want to use Google APIs Client Library for Python, but still want to access Google API in Python using Oauthlib. After creating a service account in Google developer console, I downloaded the json file with the information to authenticate then do the following: >>> import json >>> from oaut...
Antoine Brunel
2

votes
1

answer
808

Views

Can not find google fusion tables in my documents

I've just started to play around with google fusion tables APIs so maybe I'm missing something... Starting from a google's simple example https://code.google.com/p/google-api-java-client/source/browse/fusiontables-cmdline-sample/src/main/java/com/google/api/services/samples/fusiontables/cmdline/Fus...
Marco Fago
2

votes
1

answer
389

Views

Is oauth2 appropriate for closed API access via mobile client?

I'm seen OAuth2 bandied as the next authentication scheme. The context has been allowing third party clients to authenticate without giving up username/password. What about the case where I have an API that is not intended for third party access--the only users will be end users via a mobile client...
HappyCoder
2

votes
0

answer
74

Views

Google OAuth2 authentication in page instead of popup

I'm building a Bootstrap page that requires Google authentication. I've got everything setup and working, however the popup asking for authentication bugs me. I would rather have that in a panel. Does anyone know if that's possible, perhaps with an iFrame or so? I can't seem to find anything.
Difusio
2

votes
1

answer
815

Views

Uncaught module xhr not found cordova-1.5.0.js

I am using phonegap cordova-1.5.0.js and jar. and using the phonegap-plugins for cordova with jsOAtuh.1.3.3.js I am getting error message: 'Uncaught module xhr not found at file:///android_asset/www/cordova-1.5.0.js' whenever I am trying to create OAuth Object. I have the following reference: https:...
Clement Ho
2

votes
2

answer
830

Views

Node.js Passport GoogleStrategy how to access session data

I use Passport-Google-OAuth to implement registration/login on my demo site. It works very well. Last several days I try to find solution how to access session variables inside 'GoogleStrategy' implementation. var GoogleStrategy = require('passport-google-oauth').OAuthStrategy; passport.use(new Goog...
Sanel Deljkic
2

votes
0

answer
48

Views

Cordova Yahoo Oauth in javascript

I am trying to use the Yahoo Oauth 2.0 for my cordova / ionic app. Below is the providerUrl I am using for my rest call but I get an error that says something wrong has happened. var providerUrl = 'https://api.login.yahoo.com/oauth2/request_auth?client_id=' + clientId; providerUrl += '&redirect_u...
user9465677
2

votes
0

answer
47

Views

Google+ signin not granting circles

I am developing a web application where I want to allow google+ login. I am asking for the plus.login permission which should (among other things) grant me access to the user's circled people list. The problem is that when I request for the circled list people.list with visible collection, I get an...
Nacho Gil Jaldo
2

votes
0

answer
287

Views

Integrate OAuth2 - Swift 2

I'm trying to integrate OAuth 2 into my project so that I can use the UBER API. Unfortunately every framework/installation method I have tried does not work. I'm using Swift 2 and Xcode 7 so I'm not sure if this would be the problem. Each framework/project I have downloaded has files missing which p...
jackchmbrln
2

votes
1

answer
762

Views

Google OAuth 2.0 login without browser

There is any way to check the google authentication without using a browser. I need a standalone application which run and it should get authenticated and then I have get Youtube API to get other information.. This is my sample code.. public class Final { static final String client_id = 'xxx'; stati...
bharathi
2

votes
1

answer
348

Views

Soundcloud Oauth implementation: Why the hash parameters?

Concerning https://github.com/sinatra/sinatra/issues/596, which i wrongly diagnosed as a sinatra bug. I'm having the following issue: I'm using Soundcloud OAuth workflow to implement single-sign-on in a project of mine. For that I'm using the 'soundcloud' gem. So, after being redirected to soundclou...
ChuckE
2

votes
1

answer
94

Views

3-legs in OAuth 2.0

I'm making a program uses Youtube API for testing purpose. Because my program is an installed-application, I've found a picture pointing out how to implement authentication. It's what I have: Immediately, I'm confused. According to this figure, I don't know why Google Servers just returns Authorizat...
dnvThai
2

votes
0

answer
85

Views

Users can't log in using new “Sign in with LinkedIn” OAuth screen

Some of our users have reported that they are not able to log in to our app anymore when they try do so with 'Sign in with LinkedIn'. The app is a Cordova app for both iOS and Android that uses the LinkedIn SDK to handle the 'Sign in with LinkedIn' functionality of our app. This seems to be correlat...
vindia
2

votes
0

answer
252

Views

Login with facebook in IONIC with ngOpenFb

I don't know he oauth works in detail, but I know the overview. So I have ionic app running in localhost (ionic serve) and a facebook created. I have not put any callback url in advanced settings of fb app. And I am using ngOpenFb to accomplish login with facebook. On click of button I am calling a...
amrutdeshpande
2

votes
0

answer
820

Views

OAuth2 not working on IE9

In Chrome/FF the following example works fine but there is a problem in IE9. var clientId = 'XXXXXXXXX.apps.googleusercontent.com'; var apiKey = 'XXXXXXXX_XXXXXXXXXXXXXXXh1o'; var scopes = 'https://www.googleapis.com/auth/calendar'; function handleClientLoad() { $('.modal').show(); gapi.client.setAp...
ronen
2

votes
0

answer
386

Views

Lumen of Laravel & OAuth2 - grant type: Client Credentials working but how to use Username/Password Approach correctly

I am using Lumen and OAuth2-Server-Laravel by lucadegasperi I have successfully set up Client Credentials and on Postman I can post: grant_type - client_credentials, client_id - id1 client_secret - secret1 and receiving success (200): {'access_token':'jiKaracRLX1fOR0Ls3w7aE7G5ukblFIkkB2jwBGw','token...
senty
2

votes
1

answer
1.9k

Views

OAuth callback URL parameters with Doorkeeper

I'm Using OAuth2 with Doorkeeper to protect my API. The problem is that one client had several different flows in which he redirects users to my OAuth flow. He would like to dynamically add some parameters when redirecting the user to my OAuth flow and get these parameters back when I'm calling his...
davidrac
2

votes
2

answer
578

Views

Vimeo integration to ios oauth 2.0

We had vimeo integrated using oauth 1.0. Now its not working and have to use oauth 2.0. I found https://github.com/nxtbgthng/OAuth2Client. But do not understand how to use it for vimeo. Our earlier code was OADataFetcher *fetcher; consumer = [[OAConsumer alloc]initWithKey:[dicVimeoInfo objectForKe...
Durgaprasad
2

votes
2

answer
858

Views

I'm not getting a scope checkbox when the Authorize tag doesn't contain roles, Ajax authorization request not sending scope either

UPDATE 2: If I change my controller Authorize tag from this [Authorize] to this [Authorize(Roles = 'Read')] then I get the checkbox for scope selection and the ajax token request contains the correct scope and completes successfully. I still end up with a red exclamation mark however. It looks like...
user2197446
2

votes
2

answer
145

Views

Issue with deviantart authentication (PHP)

I am trying to connect to deviantart via their oauth2 mechanism. I do get the code to obtain an access token but then I get some strange 404 error when trying to get the access token via file_get_contents. However, when I copy the url I am able to get the access token as desired. Has this sth. do wi...
Jan
2

votes
1

answer
623

Views

Can't overwrite Response Body with Custom Message within ValidateIdentity in OAuthBearerAuthenticationProvider class

I try to set a custom error message to return from 'ValidateIdentity' Code from my OAuthBearerAuthenticationProvider. But All I get back is {'message':'Authorization has been denied for this request.'} This is my Code: internal class CustomOAuthBearerAuthenticationProvider : OAuthBearerAuthenticati...
rudimenter
2

votes
1

answer
1.3k

Views

JWT bearer token flow with IdentityServer v3

I am looking to implement OAuth2 authorization for my web api and using Google's docs as a model. The specific flow I'm trying to implement is the 'Service Account' flow: here (which, as I understand, is also known as the JWT Bearer Token flow?). How can I implement this using Thinktecture in my MVC...
Roly
2

votes
4

answer
3.5k

Views

Interacting with Azure Key Vault using python w/ rest api

I am very interested in using the new service recently released for secret management within Azure. I have found a few example guides walking through how to interact with key vault via powershell cmdlets and c#, however haven't found much at all in regards to getting started with using the rest API...
Gary Wright
2

votes
1

answer
92

Views

Spring OAuth2 autorization from database

Hello everyone, I'm practicing OAuth2 in Spring boot.I have developed the application when i access get resources, i'm getting the response but for post resources i have to provide username and password which i'm passing in request but it still gives me this response curl -i --user admin:admin -H Ac...
2

votes
2

answer
764

Views

Unable to get refresh token with google OAuth 2

Situation I have simple android app where user gets data from Google Fusion Tables with REST api. For this I was using OAuth 2 authorization to get Access Token and Refresh Token. I have web view in my app which will show login screen as well as consent screen. I was planning to get access token fro...
Dexter
2

votes
1

answer
27

Views

Do I need to create client_id and client_secret for each user for implementing oauth?

here is my question : I'm building an API which allows users to manage some objects at home via an application. I read along this article about grants for acquiring an access token, and the grant I should use : https://alexbilbie.com/guide-to-oauth-2-grants#which-oauth-20-grant-should-i-use As far...
Neovea
2

votes
0

answer
323

Views

iOS Google Silent Sign In provides a (valid) token with missing profile info

I've integrated Google SignIn SDK (v4.0.1) to my iOS app. The normal authentication process is working fine via: GIDSignIn.sharedInstance().signIn() The retrieved idToken is valid and includes both email and the user's basic info: given_name family_name picture Google provide this URL for reviewin...
AmitP