Newest oauth Questions

Q&A for professional and enthusiast programmers

Using Google OAuth 2 on embedded Android-based device

We have an application for embedded Android-based device, it uses WebView and inside it we use Google OAuth 2 to login to the app. Unfortunately Google will soon block OAuth 2 inside WebView, and we ...

Devise/Google OAuth 2: Not found. Authentication passthru

I followed the tutorial in the readme of the omniauth-google-oauth2 gem and when I click the link on my root (@ pages#home), <%= link_to "Sign up with Google", ...

Twitter Screen Name/userID persistence issue

I'm writing an iPhone App for iOS 9 and after. One of my goals for this App is that it should be able to send tweets on behalf of my user through the one or more twitter accounts the user owns. I've ...

Is 2 legged oauth possible with Rauth or alternative python 3 library?

I have been searching for a way to implement 2 legged oauth in python 3 to work with the brightcloud api. They offer several code examples using java, php, ruby, .NET C# here: https://bcws.brightcloud....

Google v3 API and Oauth - Do I need to use the json file?

In the official docs for the Google API and OAuth, it has you download a .json file that includes things like clientid, secret, redirect etc. Then it has you build your Google Client like this (I'm ...

Azure MFA in Cordova app that uses JWT OAuth 2.0 tokens

I am developing a Cordova app that has (until now) used a password grant to retrieve JWTs from Microsoft's standard OAuth provider in Azure: https://login.microsoftonline.com/[tenant]/oauth2/token ...

Domain specific security for third party API

I have created a third party api(REST) that I wanted to make public but is only allowed to be accessed from a specific domain. How do I perform domain specific authentication/authorization? For ...

OAuth2 client password server-side storage

I would like to know current best practices for client password's server-side storage. I'm surprised how it is commonly stored by default in plain-text in some libraries, such as in django-oauth-...

Symfony FOSOAuthBundle OAuth2 Request

I finished the configuration of the FOSOAuthBundle using "friendsofsymfony/oauth-server-bundle": "dev-master" Registering a user works. Accessing the API is now successfully prevented and I get the ...

Angular 2 need help sending HTTP request for Oauth

How do I send an http request in Angular 2 like this with that 'at' sign: http://TEST@localhost:8082/api/auth/oauth/token I have the route just like that, but when I send the request it ends up ...

Oauth2 hash token on Auth Server

I'm implementing an Auth server using Spring Security Oauth2. What I noticed is that when spring security saves the access token (using JdbcTokenStore) , the OAuth2AccessToken is serialized as which ...

Generate Personal Access Token to call an Azure Web Api (OAuth)

I have an ASP.NET Web API and I registered a new Application under Azure Active Directory. This is how the ConfigureAuth is in the source code of the Web API. public void ConfigureAuth(IAppBuilder ...

Calculate OAuth signature for NetSuite restlet using bash

I'm currently trying to generate an OAuth signature for my curl request header. These point to a NetSuite restlet. Resources online are either inconclusive or too high level for my understanding/...

In Angular 2, how to intercept unauthorized http call, refresh token automatically, and then have other http calls use new tokens?

I am using OAuth with access/refresh tokens. I have followed these examples to try and catch unauthorized http calls, refresh tokens automatically, and then use the new tokens to retry the call: ...

Java- trustAnchors parameter must be non-empty

I am trying to login to salesforce using oauth access token in my java code. Since new version of salesforce does not give us option to activate/deactivate option "Require TLS 1.1 or higher for HTTPS ...

“header is not NLAuth scheme” but I'm trying to use OAuth in bash

I have the following curl command in a bash shell script. When ran, I get the error "header is not NLAuth scheme", but I'm specifically trying to use OAuth 1.0. Code follows with omitted personal ...

Authentication via bearer token in nodejs

I have a task in which given a client_id, secret and token endpoint I have to request a bearer_token and the make subsequent call using that token. I was looking for solutions in the node but I ...

Why does omniauth-twitter work locally but not on my server?

I have a Rails 5 (Ruby 2.3.3) app with OmniAuth (1.6.1; omniauth-oauth 1.1.0) and omniauth-twitter (1.4.0). When a user is directed to Twitter for the OAuth flow, they see the following error after ...

Google API:Looking for the code of php classes needed for spredsheet API google installation or to work (cli not allowed)

i looked at the Github downloaded php code for "happy shit" (:p) or API sheet, but the code example seems strange. I'm used to such curl classes and JSON opening, on Facebook and Twitter, but I really ...

Twitter API “Could not Authenticate you” Error

I am trying to fetch my profile photo from Twitter using the apis proived at dev.twitter.com and Fabric.io for my Android Project. I have made a consumer token and consumer key for the porject and ...

How to refresh linkedin access token within 60 days with out user intervention

I want to refresh linkedin access token with out user intervention i am using oauth 1.0 i am using server side authentication. how do we do this. i also read the linkedin documentation about ...

Using Laravel Passport with a Load Balancer

In my Laravel app, I'm using Passport's Password Grant to give API access to an iOS application. In my production environment, I'm also using one load balancer to distribute requests to two servers. ...

how to garmin login using javascript

Im trying to implement an Oauth1 login to garmins using Angular2 and regular http calls, but on the first call to oauth/request_token path i get a pre-flight OPTIONS call error seems not having CORS ...

Oauth1 - “OAuth signature is invalid ” error

I'm trying to get trough oauth dance to get access to some protected data. I'm stuck to the last "step" of the dance. I'm sending those tokens : oauth_token:### oauth_verifier:### user:### ...

Facebook login not working in Live Server in ASP.NET MVC web app

Facebook login works fine when I test in local server but doesn't work in Live server. I followed this official documentation.

Add OAuth for a web app stored in Azure VM

I have an Azure VM which contains the deployment of an ASP.NET Web Application. The way that I deploy the web app is trough Web Deploy and files got copied into the C:\inetpub\WebApplication1 after ...

How to convert this config to asp.net core

I have an old webapi 2 project using bearer token to authenticate and I'm moving it to asp.net core. Things have moved a lot and I'm wondering if anyone can help converting the config to asp net core....

O-auth flow explanation in the case below?

From what i understand about the login process in oauth apps is that the client first gets redirected to oauth server and then back to webapp. Recently i noticed the authentication flow on freelancer....

Python Social Auth Django Github OAuth

I'm trying to integrate my Django website with Github Authentication using Python-Social-Auth library Configuration so far: settings.py INSTALLED_APPS += ( ... "social_django", "social_core", ) ...

Accessing TradeKing (or any pre-authorized API) with C#/.NET

When setting up an application with TradeKing, you get: A Consumer Key A Consumer Secret A Oauth Token A Oauth Token Secret For accessing TradeKing's API, that's apparently all you need to build ...

OAuth2, app only lets one user log in at the same time at the same network, why?

My app is generating a per-user per-user token, but it only logs one tablet per network, if I go out of one and try to get into another it leaves, has anyone else gone through this? Currently my ...
+50

Which Google Oauth 2.0 Client ID type choose for cordova hybrid mobile apps?

I am developing cordova based hybrid mobile apps targeted for android and iOS smartphones. Usecase: The application authenticate user and then would be accessing Google Calendar API's, and finally ...

JHipster UAA service and social logins

I have been playing around with the jhipster generators recently, in particular the microservices ones. It seems very straight forward to achieve social login with an apigateway service, but when I ...

How can I register a client for my GitLab oauth system application with curl?

as the title suggest I would like to register a client to my oauth system application I added in the admin panel of my GitLab server. How can I do this with curl? I already have the application ID and ...

External Login failed using Asp.net OAuth Facebook

When I login to facebook in local server it works fine, but while running in live server the facebook login doesn't work, whereas the google login works fine. Code for facebook login: app....

How to save OAuth login details into database instead of solution using MVC

I am using OAuth to login for my MVC 5 project using gmail OAuth credentials. Its working fine but here i have to need save login data to database instead of .mdf file (Which was created automatically ...

Authentication Server Implementation with volatile user data

I am trying to implement an authentication server - let's call it "MyLogin". The user should be able, to click on a ServiceProviders page on "Login via MyLogin". The user is redirected to my Service ...

Swift 3 Oauth2 Imgur Refresh keys - error 400 “Invalid grant_type parameter or parameter missing”

I have an issue when calling the /oauth2/token endpoint of the Imgur API using Swift / NSMutableURLRequest and maybe it's actually just me setting up the request in a wrong way as I don't have a lot ...

O365 Exchange addin: Oauth returning wrong id_token

I've written a O365 addin for Exchange. An app is registered in Azure with appropriate permissions and implicit flow. I connect to Sharepoint and Dynamics CRM in addition to Exchange. The addin is ...

Angular 2 and Symfony 3 (OAuth and API calls)

I have a project in Angular 2.4.0 where I want to call endpoints from a Symfony 3 REST API. Both projects are launched locally. To get rid of CORS errors in Http calls in Angular, I set some proxy ...

What's so secret about the OAuth secret?

I'm writing a web service which uses OAuth2 for authorization. I'm using C# and WCF, though this isn't really pertinent to my question. Having never used OAuth before, I've been doing my research. I'm ...

Handle multiple unauthorised requests after access token expires

I've searched a lot before I post my question but unfortunately I wasn't able to find a solution to my question. I develop an app that connects to a server that requires authentication using access ...

Newbie - Trying to implement my Jira & Oauth

am new to this so please be patient with me :) to summarise I have a Rehat Cloud Serve and i just recently stodd up Jira and all is working good. I want to get this integrated with my Oauth ...

How to organize OAuth 2 Password grant with multiple user types?

I clearly understand how OAuth 2 works but stuck with the situation when we have multiple user types. Password grant requires the following parameters: grant_type REQUIRED. Value MUST be set ...

Firebase REST auth when creating token with node.js admin sdk

I know this issue was asked a lot here, but I still cannot seem to find the exact answer that can solve my problem. I wish to access Firebase using REST calls, by adding an access_token param. The ...

Token issues in b2c-dotnet-webapp-and-webapi

I created b2c-dotnet-webapp-and-webapi type application. But After 20 min or after sometime(nearly 30 min not sure) My WebApp is throwing exception during the Ajax call saying 401(Unauthorized). This ...

Azure delegated mail reading across office365 domain (nodejs)

Trying to read/write/update the emails of each user within the domain on office365. I'm using Azure Active Directory and an Azure app. I'm the account admin. I've turned on a whole load of permissions ...

Missing parameters in Symfony2 Request->query

In a controller of our API supplied with FOSOAuthServer and Symfony2, we wish to have access to the parameter "access_token" present in the request. But when we run $accessToken = $request->query-&...

integrating google login to website with php

Please accept my apology if my question has a simple answer. I'm trying to add a functionality to login through google account with php and OAuth 2.0. I tried this on a simple login page and its ...

From Imgur to Mashape - Oauth

I have working Swift code that opens an SFSafariViewController at the following URL: "https://api.imgur.com/oauth2/authorize?client_id=\(CLIENT_ID)&response_type=token&state=myState" to ...
Translating... 0%