Questions tagged [oauth]

15033 questions
1

votes
3

answer
861

Views

oauth2-server implementation nodejs

I'm trying to implement an OAUTH2 server in nodeJS, which allows client app to login users using my website(like login with google and in my case it is amazon alexa, which consumes this API/Client app). I tried using oauth2orise(https://www.npmjs.com/package/oauth2orize) and referred few links:- htt...
mahendra
0

votes
0

answer
4

Views

Oauth good way to login hybrid/native app?

I'm working in an hybrid app for mobile and I have a problem about how I can do the login. I have read a lot about oauth2, spring security and jwt and I builded a spring-boot project to try that. I used in that project oauth2 with password grant-type, where the user type password,username,clientid a...
cloudmanSoldier
1

votes
2

answer
71

Views

Implementing Oauth. Where should use be redirected to after authenticating with the third party?

This is my first time implementing OAuth, so I'm just trying to wrap my head around the whole flow. I'm trying to implement OAuth for Stripe Connect. So in step 4 you're sending a POST request with your client secret to the Stripe servers, which I assume means your back end will be handling that....
BryceLarkin
1

votes
1

answer
96

Views

Vimeo authorization is not working, redirect_uri didn't match?

I write the code to redirect the user to Vimeo for authorization. https://api.vimeo.com/oauth/authorize?client_id={client_id}&response_type=code&redirect_uri={myownurl}test&state=INDIA When this url opened in browser It say 'Dear app owner, your redirect URL appears to be misconfigured. Check your...
Anirudha Gupta
1

votes
1

answer
435

Views

Does Spring Security OAuth2 support Authorization Code Flow with PKCE for browser (Angular) clients?

Browser applications auth used to be managed using the Implicit grant of the Authorization Server. I successfully implemented this using Spring Security Oauth. This approach has several drawbacks: Refresh tokens are not supported, so when the token expires we need to reauthenticate with the Authoriz...
codependent
1

votes
1

answer
855

Views

Get r_liteprofile and r_emailaddress - api.linkedin.com/v2

How to get email address and lite profile from linkedIn api v2 (api.linkedin.com/v2) Can not get email from https://api.linkedin.com/v2/me?oauth2_access_token=xxxx Requested &scope=r_emailaddress%20r_liteprofile
CaSpEr
1

votes
2

answer
32

Views

OAuth token Unauthorized on browser

I'm using Angular 7 and I got a problem with Headers. This is my code: signin() { let signinData = this.signinForm.value; this.encoded = btoa('my-trusted-client:secret'); let header = new Headers(); header.append('Authorization', 'Basic ' + this.encoded); header.append('Content-type', 'application/x...
Ragnar Lodbrok
0

votes
0

answer
10

Views

I am getting OAuth2 server connection error few times in Laravel framework

I am using Laravel framework for my application. Every day few times it is throwing the OAuth2 authentication error and it says 'The user credentials were incorrect' but after sometime automatically it is connecting. Anybody can help me on this why it is happening. local.ERROR: League\OAuth2\Server\...
bhaskar p
0

votes
0

answer
3

Views

How to consume a web api with oauth2 authorization using ASP.net MVC?

I've been looking for ways of how to consume a web api with an oauth2 authorization using ASP.Net MVC. Any suggestions? I have already tried sending a request to the web api and recieve a response. But I'm having a hard time when it involves Oauth2 authorization because i don't know how to send head...
ikey
1

votes
3

answer
967

Views

Django allauth LinkedIn API not returning full profile data

I have a an app with which I'm experimenting with Django Allauth, specifically the LinkedIn api. I am defining the scope in my settings like so: SOCIALACCOUNT_PROVIDERS = \ { 'linkedin': { 'SCOPE': ['r_fullprofile', 'r_emailaddress'] } } And I am outputting this info to a template using: {% extends...
Darwin Tech
0

votes
0

answer
7

Views

OAuth login with facebook?

My App is example.com and want to use facebook(FB) login for authentication/authorization. Per my finding on google, FB uses OAuth2 here. I have one question here on the flow First will register on FB with my webapplication and returning url as example.com. It will generate appId(public key) and app...
user3198603
0

votes
0

answer
18

Views

How to integrate Social Login with existing .Net core Web API backend and Angular SPA frontend with working OpenIddict user/password and bearer token

TL;DR Question: how to implement social login (OAuth2 authorization flow) with an existing SPA/Web API application that is based on identity, user/password, bearer token authentication? I have an existing application that has: Backend: .Net Core 2 Web API with Identity and OpenIddict services config...
Fernando Ribeiro
1

votes
2

answer
6.1k

Views

How to make the refresh token life long valid and issue a new refresh token each time a new refresh_token grant_type comes in spring security oauth2

I am using spring security oauth2 for authentication for my android application clients.When the client request comes with grant_type as password the server issues the access token and refresh token.If the access token expires i can issue a new access token by sending a request with grant_type as re...
KJEjava48
1

votes
2

answer
757

Views

How to increase OAuth access token expire time in Jhipster app?

Tried to increase the value of tokenValidityInSeconds = 1800; to some value say 3200 in JHipsterProperties.java file but does not reflect in the token expiry time.
Raj
1

votes
2

answer
2.7k

Views

google api (sheets) Request had insufficient authentication scopes

i want to read an write data from a sheet, reading works fine but writing doesn't. i use all the scopes mentioned in the documentation: https://developers.google.com/sheets/api/reference/rest/v4/spreadsheets.values/append data_writer(1,1,1) code: from __future__ import print_function from apiclient....
extreme4all
1

votes
3

answer
248

Views

Google Sign In for Android: Cannot resolve RC_SIGN_IN

I'm trying to authenticate with backend server from mobile app. I was following this documentation. https://developers.google.com/identity/sign-in/android/sign-in However, there are some errors. RC_SIGN_IN and updateUI() cannot be resolved. My code is like this public class MainActivity extends AppC...
0

votes
0

answer
2

Views

How to request authentication from a user for a YouTube Analytics API script?

I have a python script that pulls stats from my YouTube channel. I used this sample code here. I have downloaded the Client secret, authorised YouTube API and I am able to see some data in the response. Now I'm trying to pull data for another YouTube channel (from a separate google user, for example...
giac_man
0

votes
0

answer
8

Views

How can I access the birthdate from HWI/OAuthBundle when connecting via google OAuth 2?

I have a PHP Symfony 4.2 application with HWI/OAuthBundle properly configured. I created an OAuth 2 key and secret. I configured it in the hwi_oauth section of the symfony files. I use it to login users via a custom UserProvider. In particular I'm concerned in overwriting the method public function...
Xavi Montero
1

votes
0

answer
52

Views

What links an account whenever you sign in using Facebook or Google

So here's my question. Say you have a Gmail and Facebook and they both use the same email. Now say you login an app using Facebook. Say you log out and log back in using Google. It should link to the same account from what I've seen. But what happens if you were to change your Facebook primary email...
huey77
1

votes
1

answer
39

Views

Express OAuth Authorization for Different Access Methods

I am looking to figure out best practices for the following scenario. I am a relatively new/hobby programmer. I am developing a chat bot that is using Dialogflow. I want users to be able to use different messaging apps to be able to access the data and information in a backed database, but that I...
Mike Nelson
1

votes
0

answer
73

Views

github Oauth with Angular Error

getUserFromGithub() { const client_id = 'c****************c'; const redirect_url = 'http://localhost:4200/oauth2/github'; window.location.href = this.github_redirect_url + 'authorize?client_id='+ client_id+'&redirect_uri='+redirect_url+'&response_type=code&scope=*'; } Above angular method redirects...
Saurabh Verma
1

votes
1

answer
562

Views

Calling a secured REST api from Javascript without user login screen

How would you call the secured REST api from the Javascript script application that doesn't have the login? I have a Javascript application (React) that doesn't have a user login. It needs to call some REST api services that uses Oauth (Azure Ad - WindowsAzureActiveDirectoryBearerAuthentication)....
Michael Sync
1

votes
0

answer
184

Views

oauth2 server creation Nodejs

I'm trying to implement an OAUTH2 server in nodeJS, which allows client app to login users using my website(like login with google). I tried using oauth2orise(https://www.npmjs.com/package/oauth2orize) and referred few links:- https://hnryjms.io/2014/07/oauth2/ http://scottksmith.com/blog/2014/07/02...
Tanzil KM
1

votes
0

answer
188

Views

Which google Oauth options to use to for express API and react App

I have been in circles on this for hours and read dozens of blogs, articles, how-tos, SO questions, and documentation. What I am trying to do: I have a react application that talks to a node/express API. I would like to authenticate requests to certain routes using only Google OAuth. I would a...
red6
1

votes
0

answer
62

Views

oauth_signature does not match expected value

I'm using below link for my app for getting oauth_token and oauth_token_secret, but when i enter this link in chrome search bar, it gives me that error. oauth_signature does not match expected value. Anyone know how we can create signature for oauth. https://www.tumblr.com/oauth/request_token?oa...
ZAFAR007
1

votes
0

answer
155

Views

Which scopes and APIs to use with Microsoft Live OAuth?

I've been trying to include Microsoft OAuth authentication in my web app using the following documentations : https://docs.microsoft.com/en-us/azure/active-directory/develop/active-directory-v2-protocols-oauth-code And: https://msdn.microsoft.com/en-us/library/hh243647.aspx My question is this : sho...
Michael
1

votes
3

answer
263

Views

Analytics API - multiple accounts

I am trying to implement something like so: There a multiple emails associated with analytics account: [email protected] http://john.com [email protected] http://another.com [email protected] http://foo.com I need to fetch analytics data through API . I am aware about credentials.json when creating app bu...
Hrach Karapetyan
1

votes
0

answer
78

Views

User got access to oauth token? than how to secure it?

Currently we are looking to develop oauth authentication for my API. So basically our UI will be in reactjs which will show TV Grid schedule using nodejs API At backend which will return JSON. We will handle UI changes via ajax. On ajax or on page load we will call API to display TV Grid. So we want...
Bhushan
1

votes
0

answer
391

Views

Error when accessing Google OAuth from Docker container : device_id and device_name are required for private IP

I have a dockerized flask app running from a docker-machine with IP 192.168.99.100 that is trying to access Google OAuth. However, I am getting the following error: Error: invalid_request device_id and device_name are required for private IP: http://192.168.99.100:8001/login/authorized I tried the s...
Ron
1

votes
0

answer
366

Views

Google drive integration with swift

I'm continuously getting error message 'Daily limit for unauthenticated use exceed. Continued use requires signup.' after successful login for the first time. I was able to get all my files from the account. but after that I am not able to get into account. What I'm missing? I have done code accordi...
Krutika Sonawala
1

votes
0

answer
341

Views

Vue.js + Google OAuth2 + Client-side rendering

I am implementing a log-in functionality in my web application. In order to do so, I am using a popular module called 'passport' to do OAuth handling. Here is the problem! My Signin.vue file: Sign in with Google export default { name: 'SignIn', methods: { googleSigninRequest: function() { axios.get(...
Matt Choi
1

votes
1

answer
1.1k

Views

Laravel Passport APi - Implicit grant

I want to build a spa via angularjs and use laravel as a api for the spa. Reading trough the docs of laravel passport i discovered that i need to use the implicit grant for this purpose. But i am not really sure in how it should work from front to back. I just want to have the ability to log in a us...
Jules
1

votes
0

answer
306

Views

Single sign on with OAuth2: saving refresh token in cookies

I need to implement centralised authentication server with single sign on. One of the requirements are, that there should be no intermediate login screen (a.k.a direct login from service provider), so OAuth2 with password grant seems like the best option here. User is read-only, authentication is us...
gintko
1

votes
0

answer
630

Views

Linkedin OAuth raising 500 Internal Server Error since January 1st, 2018

I'm having the error below since January 1st, 2018 when trying to login in my system with Linkedin OAuth2: 500 Server Error: Internal Server Error for url: https://api.linkedin.com/v1/people/~:(email-address,first-name,headline,id,last-name,picture-url,positions,public-profile-url)?format=json For t...
Ruben Alves
1

votes
0

answer
91

Views

Using OAuth connection type to Access Salesforce via Talend Data Integration

I am trying to access Salesforce data using Talend Data Integration Tool.I tried establishing connection using OAuth, However there is some issue with Callback Port. Is there anyone who also went through this kind of issue? If yes then what port number did you used.
Nikhil Yadav
1

votes
0

answer
208

Views

Bitrix don't send access token oauth2

I tried to connect with bitrix using software Postman API. The goal was to test some REST comments, but I have problem with authorization. Using Postman I filled up: auth url, access token url, Client ID and Client secret of my bitrix, after that login page is visible and I entered login and passwo...
Menomen
1

votes
0

answer
28

Views

MVC4 Oauth Server SimpleMembership

I have a MVC4 Webapp configured with SimpleMembership. I want to develop a Xamarin App that authenticates against this Webapp. Is it possible to add OAuth Server functionality to the MVC4 Webapp?
Shmukko
1

votes
1

answer
570

Views

Import six module not working despite pip installation

I am building a web app (based on google app engine & python 2.7) and trying to import the six.move module. But although 'six' is installed, it is not found when importing (note, I am not using frameworks yet like Django). On my working environment (env), I ran: | => pip show six Name: six Version:...
pablo-az
1

votes
0

answer
293

Views

Vertx + OpenAPI + OAuth2 security handler is calling twice

I'm a newbie in vertx world. I used this link for setting up my openapi routing: https://gist.github.com/slinkydeveloper/bdf5929c2506988d78fc08205089409a Here is my sources: api.yaml #other endpoints... /api/v1/protected/verification: post: summary: Summary operationId: verification security: - Ap...
Bakhrom Achilov
1

votes
0

answer
272

Views

Implement OAuth 2.0 in ColdFusion API

We have a coldfusion API which we want to be accessible with OAuth2.0 Access Token Functionality with ADFS. I am unable to find any library related to OAuth Access Token Validation against a certificate or expiry status.
Sourav Das

View additional questions