Questions tagged [oauth-2.0]

2

votes
1

answer
1.5k

Views

Google API Oauth 2 with Installed App

I am using Google API OAuth 2.0 for Installed Applications & php. This is a WordPress plugin we are updating, and it was recommended to us by Google support to use Installed App instead of Web App 'because you will then have a single Project ID, your users won't need to create their own using the AP...
jmadsen
2

votes
1

answer
1.5k

Views

Does ADFS 2012 R2 support Auth2 Resource Owner Password Credentials flow

I want to confirm ADFS support oAuth 2.0 completely support all the flow of oAuth 2.0 i.e., 3-legged oAuth 2-legged oAuht Implicit flow I am asking this because I try to use Resource Owner Password Flow(2-legged Oauth). Here is my code using (HttpClient client = new HttpClient()) { string creds = St...
user2724058
2

votes
0

answer
234

Views

OAuth 2.0 implementation in Mule

I am working on a project in which I need to expose some of its method over web service and that I am doing using Mule by following RAML and to implement security, OAuth 2.0 has been proposed. I am able to validate the client for its 'client_id' and 'client_secret' but for that I have given the cred...
Sanni
2

votes
2

answer
2.9k

Views

How to retrieve Google+ oAuth2 profile thumbnail picture

After a long learning curve, I managed to successfully get the user's profile information using the Google API client libraries. Along with a name and email address, when the user logs in to my web app, I can get their profile picture. Trouble is, the picture is pretty big, in dimension and bytes. T...
TARKUS
2

votes
1

answer
178

Views

Login with Facebook using Sentry in Laravel

I am facing a problem as the one posted here The problem is this piece of code $profile = $user->profiles()->save($profile); which results in this error Call to undefined method Illuminate\Database\Query\Builder::profiles() I tried to do what was suggested here but it didn't work for me. It seems t...
105tNoMatter
2

votes
0

answer
34

Views

How do you handle bad network on the refresh token calls?

I have an oAuth implementation that works 99% of the time. When it gets into trouble, it is always around refreshing the token over a bad network. My problem comes when the token refresh call does not return. At that point I have no way of knowing where in the flow the call failed. a) If the call f...
Rambo
2

votes
0

answer
424

Views

JSON Web Token Authentication Permissions

I am working on learning the basics of Asp.Net Web API and started to tackle the area of authentication. After doing some research it seemed that the right direction to go was OAuth2 and JWT so that is what I started to learn. I have now ran through several tutorials, the final one being here which...
Pumices
2

votes
0

answer
216

Views

google calendar API not working

I am just trying to get my code to grab any data from my calendar. I am using python with the google api python client to access the calendar api. This is the code for the homepage #!/usr/bin/python print 'Content-type: text/html\n\n' from oauth2client.client import flow_from_clientsecrets FLOW = fl...
user2249621
2

votes
2

answer
1.1k

Views

OAuth2RestTemplate Bearer Token Type

I'm using Spring Security OAuth2 with OAuth2RestTemplate to implement a client for an OAuth 2.0 secured REST API. The flow goes through the steps to obtain the access token successfully: response.statusCode = 200 response.body = {'access_token':'9b90f8a84b939b8437a4fbaa8fff0052839cf6f5','expires_in'...
Dave Curry
2

votes
0

answer
183

Views

Resource Owner Password Grant Flow - Apache Oltu

Am currently using Apache Oltu in my project for OAuth using the Authorization Grant flow. I want to migrate to Resource Owner Password Grant. Does Oltu support this? If yes, where can I see documentation/examples? If not, what library/libraries I need to use to implement this OAuth flow?
Karthik
2

votes
0

answer
428

Views

How to get google api authorization code without redirect

I am using Oauth to download blog posts from Blogger. The first step of the process is sending a request to https://accounts.google.com/o/oauth2/v2/auth?redirect_uri=https%3A%2F%2Fdevelopers.google.com%2Foauthplayground&prompt=consent&response_type=code&client_id=407408718192.apps.googleusercontent...
Casso
2

votes
1

answer
1.5k

Views

Google Analytics API certificate exception while getting profiles

I'm trying to create a dashboard, including showing some analytics report from Google Analytics. After searching, I found the following SO topic: Google Analytics authorization in java In one of the answers, I found the following Service Account example: private static final HttpTransport HTTP_TRANS...
NickGreen
2

votes
2

answer
3.1k

Views

LinkedIn oAuth 2 issue with client_id parameter

I'm trying to create an application on LinkedIn that's using OAuth2 for authentication and am running into some errors. The client runs on an iOS device and uses an oAuth library to make a call to LinkedIn's servers. My iOS client successfully gets the authorization_code. The client application then...
Anurag
2

votes
0

answer
571

Views

How To get Access Token Using HttpClient

I am integrating my application with Hubspot CRM. I need to get Access token using OAuth2.0. I Initiated the authorization and tried to get access token using HTTPClient . But I could not get Response. I have added my code below. What is the mistake i am doing , I use the same redirect uri when i us...
2

votes
1

answer
770

Views

Flash and Google Drive SDK cannot talk to each other

I need to create a flash web app connecting to Google Drive SDK to retrieve a public binary file but I am facing cross domain security issues. I am able to do it in javascript using cross-site xmlhttprequest with CORS. In AS3, a crossdomain.xml file is requested on docs.google.com. However the curr...
stremou
2

votes
0

answer
735

Views

Angular 4/5 redirect for authentication before component load

In our angular application we use angular-oauth2-oidc for authenication (implicitFlow). app.component.html: app-routing.module.ts: { path: '', redirectTo: '/rooster', pathMatch: 'full' }, // default route { path: 'oauth', component: AuthResponseComponent }, { matcher: roosterRouteMatcher, component...
Pieter
2

votes
1

answer
680

Views

How to retrieve valid access token from keychain with GTM OAuth2.0

I'm trying to obtain a valid access token for an OAuth authentication. I'm trying to understand the process of authentication with oAuth 2.0. I want to understand how to use [GTMOAuth2ViewControllerTouch authForGoogleFromKeychainForName:clientID:clientSecret:] My final goal is to allow the app to r...
laperche
2

votes
0

answer
169

Views

Warning RequestContextHolder has a NULL RequestContext when calling an oauth API

I am trying to call an oauth API, this call gets made by my main API internally, I have created a resttemplate class - @EnableOAuth2Client @Configuration public class MonkeyRestTemplate { @Autowired Environment env; public OAuth2RestTemplate oauth2RestTemplate() { ClientCredentialsResourceDetails c...
Shek
2

votes
1

answer
194

Views

OAuth2 pass authorization to another client

When implementing the OAuth2 protocol, is it possible to pass authorization to a second client, similar to proxy authentication in CAS? The user is authenticates with a client web site, which has been granted authorization to access that user's account, that gives access (passing the token or whatev...
wikier
2

votes
0

answer
328

Views

Getting scores from Google Play Games Services, server side

I am trying to load from a web server some scores from GPGS, using the Google API PHP Client. Here's how I proceed: 1/ SETTING UP THE OAUTH CLIENT I created the OAuth client on the Google API Console using a service account, according this doc: https://developers.google.com/accounts/docs/OAuth2Servi...
thisistg
2

votes
0

answer
86

Views

OAuth2 Resource/Authentication server for Play2 Java

Is there any implementation of OAuth2 Resource / Authentication server for Play2 Java? SO far I have only encountered OAuth2 Resource / Authentication server for Play2 Scala.
IllSc
2

votes
1

answer
482

Views

get twitter profile picture using claims oauth 2

I've got a site setup to accept twitter and facebook external logins. Is there a way to get the twitter profile picture using claims? var twitter = new TwitterAuthenticationOptions { ConsumerKey = AuthenticationSettings.Twitter.ConsumerKey, ConsumerSecret = AuthenticationSettings.Twitter.ConsumerSec...
user441365
2

votes
1

answer
513

Views

Azure AD manifest - optionalClaims

Does anyone know what's the purpose of the optionalClaims field within the manifest file of a registered app on Azure? To give some background, I'm trying to explore some options to add 'custom-claims-like' claims to OAuth2 tokens generated by Azure AD. I know from this SO post and this SO post, tha...
rj2700
2

votes
1

answer
1.7k

Views

What Is The Difference Between Google+ APIs and Google+ Domain APIs?

I am a little confused by these APIs. I am trying to integrate Google+ with my Android app and I am struggling a little. I have been successful at logging in a user using OAuth2, created a Verifier, obtained an accessToken and made a request to Google+ API. Here is my line of code requesting to see...
Eenvincible
2

votes
0

answer
301

Views

Can I do server to server authentication on AWS Cognito using something like OAuth2 service accounts?

I have a file server that is set up with a Cognito user pool and app client so users can login using basic authentication and the OAuth2.0 authorization code flow. I need external apps to be able to authenticate themselves without user input, and be able to impersonate an actual user. OAuth2.0 has...
syim
2

votes
2

answer
2k

Views

Youtube Analytics & Google Service Account

Objectives: Implement a program (java or python) to retrieve data from videos that I published on my Youtube channel. This program will be launched daily (1:00 AM). Solutions: To retrieve data Youtube, including the number of views per day, YouTube Analytics API is in my opinion the best solution....
user1856335
2

votes
3

answer
63

Views

NodeJS Post Request with Request Promise for Twitch Authentication

I'm trying to authenticate a user on my app through their Twitch login. I cannot seem to get request.post() right (using request-promise). I've tried many different variations and I'm usually getting 'Unhandled rejection' in the server logs. The Twitch API guide for this is here. The POST response s...
Nick H
2

votes
3

answer
1.7k

Views

Salesforce Api Immediately Fails After Login?

I am logging in to salesforce via the username/password rest api. curl https://login.salesforce.com/services/oauth2/token -d \ 'grant_type=password' -d 'client_id=xxx' -d \ 'client_secret=yyy' -d 'username=username' -d \ 'password=paswordAndSecurityToken' { 'id': 'https://login.salesforce.com/id/ab...
David Williams
2

votes
0

answer
73

Views

Google OAuth signin fail on Chrome (not private session)

I'm playing with the Google OAuth process and I encountered a strange issue with Google Chrome on IOS (v60.0.3112.89). On a classic navigation, what seems to be a 'native Android panel' pop-up for the signin process (screenshot 1). After following the steps, it close and I'm stuck on a blank page an...
rgazelot
2

votes
1

answer
812

Views

Issuing a Bearer JWT Token using Identity Core

I have a mobile app that uses RESTful calls to a ASP.NET Core apis and Angular 2 app that is doing RESTful calls as well. I am also using Identity Core to authenticate users (Identity 3.0). I want to issue a bearer token based on the Identity framework and authenticate users using Resource Owner Pas...
Adam
2

votes
1

answer
428

Views

Using OpenID Connect ID token for application-to-application authentication/authorization

(Apologies in advance for possible misuse of the word authentication/authorization) I am building up several web applications that talks to each other with an identity provider that looks like this. A -----> idP / \ / \ / \ \/_ _\/ B C Where application A will make requests to B...
prentice
2

votes
0

answer
176

Views

Install python modules on MAMP

I am trying to install the oauth2 python module on MAMP but am not sure how to do it properly. I have tried using pip install but it installs the package in the root system and not in MAMP directory. Is there an easy way to do this? Thanks.
Shi Qing Poh
2

votes
1

answer
826

Views

how to configure an authorized service object using Google OAuth 2.0

On the following link there is code which should access the Google Calendar api using OAuth 2.0. Unfortunately it uses the Draft 10 Client Library which is apparently deprecated. https://developers.google.com/google-apps/calendar/instantiate The latest Client Library is google-api-java-client-1.12.0...
Laurence
2

votes
2

answer
2k

Views

Use Fusion Table like a database with PHP and how to dismiss the prompt page when using oauth

I am developing a PHP application which would use Google Fusion Tables only as a database in the background. The application includes a simple login section for basic security. I downloaded the google-api-php-client and successfully built up a connection to my Fusion Table using oAuth. Thats fine. H...
Tamas
2

votes
1

answer
129

Views

Oauth 2.0 client secret on GitHub [CLI app]

I'm building a CLI app that uses Google Calendar API, which requires the client_secret.json generated in the Google Dev Console. I want to make the app Open-Source on Github, and so it is to my understanding that I have to put client_secret.json in the repo so people can run the app on their termina...
jonathanGB
2

votes
1

answer
180

Views

AWS Cognito get new id_token

I'm using implicit grant for one particular client (web-based admin portal) for an application that uses Cognito-integrated auth for other parts of the application (API Gateway, etc). The problem is, the id token I get from Cognito Oauth expires after one hour, but I still need that token to send to...
cutmancometh
2

votes
1

answer
166

Views

grant_type vs response_type in OAuth2.0/OIDC

I can't quite understand the difference between response_type and grant_type in OAuth2.0/OIDC spesifications. My guess is that grant_type is specified in the URL when interacting with a token endpoint (to get access and/or refresh tokens), and the response_type is used when interacting with the auth...
Joseph
2

votes
0

answer
312

Views

How to login to a site using OAuth, python?

So I have a script which needs access to features of a website which requires login via OAuth. I already have an OAuth client secrets file from the dev console- right now my script can successfully retrieve a list of a user's youtube videos- this is what I have now __author__ = 'anish' import httpli...
pipsqueaker117
2

votes
0

answer
55

Views

Facebook redirect issue with angular app in hashbang mode

I have an issue with facebook oauth redirection. My angular app uses hashbang mode (#!) and its url is www.abc.org/#!/ I have tried to put this url in the 'valid oauth redirect uri' field in my app's dashboard but facebook doesn't accept hashbang urls. Putting www.abc.org in the dashboard is leading...
RohitB97
2

votes
2

answer
451

Views

Failed to load http://localhost:9999/auth-service/oauth/token: Response for preflight has invalid HTTP status code 401

Trying to generate Oauth2 token I have used Spring Boot Oauth2 and Angular 5 In postman and curl I'm able to generate the token by passing the appropriate values and with the same parameter it is not working in the Angular POST Error OPTIONS http://localhost:9999/auth-service/oauth/token 401 () Fa...