Questions tagged [oauth-2.0]

2

votes
0

answer
213

Views

Authorize WebApi using Windows Phone 8

I'm working on a new project, i have an MVC web application on which im letting the users log in by using Facebook as a provider(oauth), however now i'm starting to develop for Windows Phone 8 and i want to make a call to a WebApi controller (which needs to authenticate a user before answering the c...
2

votes
1

answer
499

Views

Server won't start on using authlogic-oauth2

I have included oauth2 and authlogic-oauth2 in the gemfile as I want to use them and am trying to start the server. It doesn't start and gives me the error: /Library/Ruby/Gems/1.8/gems/railties-3.0.3/lib/rails.rb:44:in `configuration': undefined method `config' for nil:NilClass (NoMethodError) from...
Yahoo-Me
2

votes
2

answer
2.7k

Views

Heroku + Facebook + NodeJS: cannot find module 'OAuth'

I am new to NodeJS so this is probably an easy fix. However I was not able to find the solution with my current comprehension level. I cloned the heroku-facebook-nodejs template from Github, and am trying to do some testing in the development environment on my local server. I am using nodejs version...
ejang
2

votes
1

answer
975

Views

Oauth2 samples not working because dependency error

I have downloaded spring-security-oauth Maven project from GitHub with the samples tonr2 and spaklr2. I have been continously getting an error message in pom.xml after all the jar files are finished downloaded. org.springframework.security.oauth spring-security-oauth-parent 2.0.8.BUILD-SNAPSHOT ../....
arnoldssss
2

votes
1

answer
1k

Views

How to initialize Drive Service with GAE

I need to initialize a Drive Service in my GAE application. I am using OAuth 2.0 with 3-legged. I Use regular Google accounts (no Service Account). I am trying: GoogleCredential credentials = usuarioService.getGoogleCredentials(); Drive service = new Drive.Builder(TRANSPORT, JSON_FACTORY, credential...
Diego Jovanovič
2

votes
0

answer
14

Views

Ruby-on-Rails oauth2 works when heroku is launched from command line (heroku open), but does not work when I type in the address into the URL

I have an interesting issues that I have no idea how to begin tackling it. I build a web app that uses google oauth2 that is deployed on heroku. When I launch the app from the mac command line using 'heroku open' oauth works fine. When I type in the address in the URL, oauth2 gives me a: That’s an...
tonsar
2

votes
0

answer
497

Views

Java - Youtube API: UploadVideo returns [error: unable to change permissions for everybody: C:\users\myprofile\.oauth-credentials]

I'm having a lot of trouble with the Youtube API UploadVideo example code FOR JAVA. It can be found here: https://github.com/youtube/api-samples. Just download the zip, follow the readme and enter client key, client secret, & api key in .json file provided. You create profile in google at http://c...
Nake
2

votes
0

answer
1.6k

Views

GoogleAuthUtil.GetToken returns GoogleAuthException:Unknown. Xamarin Android

I am attempting to utilize the GoogleAuthUtil library for a Xamarin Android project to retrieve an oauth2 token for the Google account on the Android device. The particular scope I am authenticating for is for YouTube: https://www.googleapis.com/auth/youtube, for the purpose of being able to subscri...
Philip Rich
2

votes
1

answer
590

Views

Is there a way to replace salesforce logo in OAuth Login Webview for Android?

Is there a way to replace salesforce logo in OAuth Login Webview for Android with organization specific logo? I tried to do it using 'Logo Image URL' field in Remote Access, but its not replacing the salesforce logo. Is there any other way? For screenshot, please visit the link below http://i.stack...
Priti
2

votes
2

answer
1.9k

Views

OAuth with Google Analytics API reports invalid token

the following code runs through well, but some times reports 'Invalid token'. It happens, when I have foreign website in my ID list. But when I log in with email/password pair, it runs well till the end. Any idea what is wrong? Cheers: Bob
Bob Poljakov
2

votes
0

answer
671

Views

WebSocket Client Authentication Method

How to authenticate the client connecting to the websocket server? In http we could use Oauth 2.0 to authenticate the user and the client too. But in websocket I am not able to understand how to do so. As far as I can understand for authentication of the user connecting we could just ask the client...
2

votes
3

answer
687

Views

Unable to get Oauth2 working in latest version of Spring boot

I am trying to get a simple oauth2 application running using the latest Spring boot version 1.5.2.RELEASE. I followed all the steps spring-boot-oauth2 till they tell you 'What Just Happened' but after configuring application.yml, running the application didn't work and gave following error - WARN 27...
comiventor
2

votes
1

answer
420

Views

Modifying Google OAuth2 login page

Is it possible to modify or show a more iOS friendly login page from googles oauth2 services? I'm not sure if I have seen a modified on before but i can't find any information on it. Any help would be appreciated.
Leo Correa
2

votes
0

answer
275

Views

Calling Yahoo API through OAuth

Spending my whole day on yahoo docs and here and there finally I am asking it here having failed in all attempts.I am implementing login with yahoo on my site using yahoo oauth. After a user login I need to get his profile. I have successfully retrieved access token and completed the authorization f...
Saumyaraj
2

votes
1

answer
1.2k

Views

oAuth 2 for authorization and automatic login

I've been trying to wrap my head around oAuth 2. We have a self-designed single sign on system in place for authenticating users using our domain to our customers' wordpress environments. It works but it is not the most scalable solution. So I've reading up on oAuth 2 in the hope it could replace m...
tomvo
2

votes
1

answer
892

Views

How can I resolve the Google oauth2 error - 'Invalid client secret JSON file'?

I am trying to implement the google-api-php-client. I chose the 'User Query - Retrieving An Id Token' from the list, which brings up the Connect Me! button. After pressing the Allow button on the next page, the following error is issued: 'Google_Exception' with message 'Invalid client secret JSON f...
ron tornambe
2

votes
2

answer
599

Views

Google OAuth2 redirect_uri_mismatch when your url contains “&”

I am using the PHP HybridAuth library and integrating oauth2 support, all providers such as Yahoo, MSN and Facebook works, except Google, showing The redirect URI in the request: https://www.example.com/auth?action=callback&hauth.done=Google did not match a registered redirect URI. My redirect url...
Ryan
2

votes
1

answer
51

Views

How to implement Token based Rest API in android App

I want to use Http Restful token Based api in my App, But it gives me data when i send ACCESS KEY, SECRET KEY, APP_ID, DEVICE_ID in postman . I am confused that is this a oAuth2 or not. How to implement this API in Android app. I watched a lot of videos in youtube about oAuth 2 and token based api b...
Vikas senapati
2

votes
1

answer
606

Views

Userless Oauth (Facebook)

I am trying to build a backend rails app that goes to a public facebook page, and pulls down any new posts.. But of course, i am running into issues with authentication. I am able to do everything that i want, when using the sample access token provided here. HTTParty.get('https://graph.facebook.com...
BananaNeil
2

votes
1

answer
1.2k

Views

Session Expiring in 1 hour due to Access Token in Azure Ad OpenIdConnectAuthentication

In our application we are using Azure Ad OpenIdConnectAuthentication to sign in which will redirect to 'https://login.microsoftonline.com/' when calling our application I think some reason refresh tokens are not generating in our single page application and forcing the user to sign out after 1 hou...
Cherry
2

votes
1

answer
470

Views

Accessing Google Sheets API via Service Account Key

I am working on Google Sheets Salesforce integration and developing it in Salesforce programming language - Apex on Force.com platform. Currently I am attempting to connect to Google Sheets API. I am using Service Account Key, so Salesforce can pull the data from Google Sheets without the requirem...
2

votes
1

answer
483

Views

Implementation of Hybrid flow for Angular JS

I need some implementation guidance, I have an AngularJS client with ASP.NET Web API on the server-side. Here are some questions: 1. I have implemented Implicit flow where I'm able to get the id_token and access_token from the IdentityServer. I would like to know if we can implement Hybrid flow that...
Divakar P M
2

votes
2

answer
413

Views

JHipster OAuth can't get token - 405 error

I am trying to get OAuth2 token for authorization on my local JHipster server. Everything is setup correctly and working, I can login via Web GUI. But when I try to get token via cURL I get POST method not allowed My cURL request is as following: curl -X POST -vu client:secret http://localhost:8080/...
Mladen Petrovic
2

votes
1

answer
412

Views

How to get the comments of a post in Google Plus?

How can I get the comments of a post on Google+? I am already getting the content of the post and the number of replies. public class Sample { private static Plus unauthenticatedPlus; public static void main(String[] args) throws IOException { try { setupTransport(); getActivity(); } catch (HttpResp...
2

votes
1

answer
147

Views

how to get redirect_uri to fill in text area of authentication when register the app on developer.uber.com?

When registering an app at https://developer.uber.com/ you can specify a few different URIs Redirect URL Origin URI Privacy Policy URL What URIs should be set for these fields? When I enter 'localhost' in the redirect url text area and save I get a 'Invalid Redirect URL.' error.
Vikas Rana
2

votes
1

answer
1.9k

Views

OAuth2 with Google Cloud Print

I had written a Google Apps Script that connected to Google Cloud Print to automate some printing. The script would auto-run on a time interval, search for relevant files, and if found it would sent them to my printer. My code used OAuthConfig and was working fine, but now that class has been deprec...
Colin
2

votes
1

answer
367

Views

OAuth2 - Securing multiple webservices' APIs with one token

I have three web services exposing their APIs. Internally they are running on different ports but on the same server. Then I have a nginx instance mapping those services to 'api.domain.com', so that they are accessible from the web. Now I need to secure this services, and I was thinking about OAuth2...
user1978591
2

votes
1

answer
177

Views

Google login is stuck at oauth2/iframe

I have an Angular 6 + PWA app which consist of google login. I have integrated google login using angular-6-social-login. The app was working absolutely fine until the google pop stopped appearing. When i investigated, found out that google pop up url formed was : https://accounts.google.com/o/oau...
Rahul Sharma
2

votes
1

answer
577

Views

WebAuthenticationBroker hangs if passed off to Facebook from foursquare

I've written a XAML-based WinRT app that connects to foursquare via the WebAuthenticationBroker.AuthenticateAsync call. Here's the auth code: public async Task FsqAuthenticate() { var fsqAuthUrl = string.Format( 'https://foursquare.com/oauth2/authenticate?client_id={0}&response_type=code&redirect_u...
Sandra Walters
2

votes
1

answer
1.2k

Views

Persisting the OAuth2 bearer token when using Thinktecture Identity Server

I've been following the Thinktecture Identity Server example of OAuth2 Resource Owner Password Flow found at http://leastprivilege.com/2012/11/01/oauth2-in-thinktecture-identityserver-v2-resource-owner-password-flow/ I have the example working and returning JWT tokens successfully via the following...
Paul Devenney
2

votes
1

answer
80

Views

channelUrl error in Firefox addon while trying SE OAuth init

I am trying to develop a Firefox addon that uses StackExchange API, using the client-side OAuth flow. I am just using the sample code found in StackApps documentation: SE.init({ clientId: 4267, key: '8p1pDgmKlR6m6hUn80n21Q((', channelUrl: 'https://api.stackexchange.com/docs/proxy', complete: func...
Linostar
2

votes
1

answer
692

Views

How to implement an OpenId Provider in .net Framework without OWIN

I'm developing some small services that interact with a .net framework application. These services have UI components that require authentication and will be hosted separately, but we have a requirement to use the existing login page. I'm hoping to set up IdentityServer4 as an authorization authorit...
Jon B
2

votes
0

answer
319

Views

Google OAuth2 Authentication giving error “Unknown error VerifyAuthentication”

I am using FoxNetSoft.ExAuthSocial Plugin for Google OAuth2 External Authentication. Its redirecting to gmail page properly but after login through gmail login for website is not happening successfully its redirecting to home page with an error 'Unknown error VerifyAuthentication'
Amrita Verma
2

votes
1

answer
166

Views

Authenticate oauth server using socialite

We are using an internal oauth server running on localhost. How can we authenticate it using Socialite and also disable the self signed certificate verification for testing? error shows: cURL error 60: SSL certificate problem: self signed certificate
Sajib Khan
2

votes
1

answer
673

Views

Google OAuth2: Asking for no information (empty scope)

Is it possible to ask for no information when connecting with a google account with OAuth2 ? I tried to pass an empty scope parameter but It won't work (Usual google error page). Also, there is no list of the available parameters for scope...For now I use scope=email. Edit: A list of scope parameter...
damio
2

votes
0

answer
81

Views

How Oauth2 server-side code flow should redirect back to user agent with the token?

On all OAuth2 documentations i looked, including the Oauth2 spec, the Oauth2 Authorization Code flow ends in the point where the server side holds both the refresh and access tokens. As a server-side of a web app, what I wish is to not finish the flow here, but response my web user agent with the ac...
adibi
2

votes
1

answer
2.1k

Views

Connecting to the Google Sites API as a “Service Account”

I am trying to read a feed from a Google Sites account (Google apps). I don't need my app to require every user to login so i created my ClientID as a 'Service Account' in the 'Google API console'. I have added this Client ID and the scope (https://sites.google.com/feeds/) to the 'Mange API client a...
Han Dijk
2

votes
4

answer
10.1k

Views

Angular JS and Twitter API, how can we hook them up

I've been trying to connect AngularJS and Twitter API. It all started with following the instructions on John Lindquist's video on AngularJS twitter search. Which is basically the following code var app = angular.module('MyApp', ['ngResource']); function MyCtrl($scope, $resource) { var TwitterAPI =...
NSCoder
2

votes
1

answer
1.1k

Views

Using the Quizlet API for Android

I am trying to learn how to use the Quizlet API for Android, I have read through the online documentation but I am still completely lost. First of all, I am using the Eclipse Juno development environment. All I want the application to do is for the user to enter a search term into a search box, find...
Falcon25
2

votes
0

answer
1.1k

Views

OAuth2/Google CalDAV - List of calendars for user

I used to request caldav servers to give all defined calendars for a given user. That works with fruux/ownCloud(Sabre) and also GCalendar the classic method. The request is this: method: PROPFIND headers:Depth: 1 urlstr:https://www.google.com/calendar/dav/{theUserName}@gmail.com/ contentType:...
gNeandr