Newest 'oauth-2.0' Questions

Q&A for professional and enthusiast programmers

Why does var_dump display data, while return does not

Why does var_dump($info['result']['content']['rendered']); display string(59824) "(then a bunch of html)" but when I do return $info['result']['content']['rendered']; I get a blank page/blank source/...

Role based authorization giving access denied error - Spring Oauth2

I am developing web application using spring spring, spring security and Oauth2 When I am trying to access REST api's from resource sever which uses RemoteTokenServices, I am getting access_denied ...

Get gitlab privateToken using passport-gitlab2

I am trying to create an issue board for my gitlab installation using node.js. I am able to use passport-gitlab2 to get user authentication which I want to use to pass a private token to access the ...

Jwt tokens authorization is not working

I'm trying to create Jwt token authorization. For this purpose I have issuer part with the code like that: public override Task GrantResourceOwnerCredentials(OAuthGrantResourceOwnerCredentialsContext ...

Which grant type should I use

I have a REST api build with django rest framework which. I implemented token authentication using oauth-toolkit. Now I started developing angularJS app which will use that REST api. After that I also ...

Spring OAuth2 custom grant type autowiring a class returns null

I have a problem with Spring Security OAuth2. There is a kiosk system where all the kiosks need to authorize with a central OAuth2 provider during launch. There are two stores for credentials -- one ...

OAuth2 native apps - client secret

An API consumer, subscribes to an API on a particular API Portal. He receives client ID and clinet secret. There is a specific quata set for the subscription. [Happy day scenario] He then decides ...

Failed to exchange a code for an access token for creating zendesk instance in cloud element Througth API

Please help to create zendesk instance in cloud element by 3rd party api call Created Zendesk account Created & configure as per in Link Succesfully got Elements OAuth Information { "...

Google Play Games Service - Login Failed (OAUTH2: UNREGISTERED_ON_API_CONSOLE)

At the moment I'm trying to implement Google Play Games Services Sign In to my android app. I already had a lot of trouble so far, but it seems I', coming closer to it actually working. The Problem: ...

Mobile app with React-native, that use oauth to authorize users to login with their Microsoft exchange credentials?

I'm building mobile app with React-native, it's planned for enterprise use, is it possible to use oauth 2.0 to authorize users to login with their Microsoft exchange credentials?, if yes then how to ...

Implementing OAuth2 with Amazon Cognito Userpools

We're building an IoT device with user authentication currently done via Amazon Cognito User Pools. We have a web app where the user signs in via their credentials and a JSON Web Token is returned, ...

Connect to Mojio REST api (Python, OAuth2)

I'm trying to connect to Mojio REST api authenticated with OAuth2 with Python server code. Here's the 'manual' from Mojio: https://docs.moj.io/#/document/view/doc_oauth I'm doing the second option ...

how to address this security breach in web api

I am using OAuth token based authentication in my web api based project. If user is authenticated,an access token is generated as below. {"access_token":"FFz_DC6zzEDD4mGOCk9172ijj3sGxCUWnk-...

OAuth2 Login Which Token gives User Details such as email, username

after a successfull login microsoft provides these token object which token contains the user details and how to get it { token_type: 'Bearer', scope: 'https://outlook.office.com/Calendars.Read', ...

Google Cloud Endpoints: Authentication issues (error 403)

I'm trying to connect to my Google Cloud Endpoints API that is running as an Appengine app: @endpoints.api(name='helloworldendpoints', allowed_client_ids=["1234", "12345"], version='v1', auth_level=...

Is it possible to use an oauth provider with SSRS 2016?

As title says, I want to be able to use an external oauth2 provider so that users login into the Reports page and store the user info in the database. Is this possible at all?

Get Password Grant Tokens without http request for Laravel passport

I am developing an REST API using Laravel 5.4 (passport). I want the user to get the access token on signup without making another http request. i have gone thorough Laravel documentation. but there ...

The page isn’t redirecting properly Google authentication

I want to redirect to gmail login using the following controller [AllowAnonymous] public class AccountController : Controller { public ActionResult Login(string returnUrl) { if (...

OpenID Connect external authentication

I need help to validate my thinking in this OpenId Connect authentication with OAuth2 authorization scenario. I have a SPA web application (webapp), a web server to serve the web application (...

How to obtain access token from Yelp Fusion API using NodeJS

I am trying to obtain the access token for Yelp's API. Yelp's API documentation: https://www.yelp.com/developers/documentation/v3/get_started I keep running into the error below on my terminal: ...

OAuth2 with Spring Boot REST application - cannot access resource with token

I want to use OAuth2 for my REST spring boot project. Using some examples I have created configuration for OAuth2: @Configuration public class OAuth2Configuration { private static final String ...

Asp Identity management for multiple Web apps [closed]

I soon have to develop multiple web applications and later on mobile applicatitons with a login/user authentification. Managing those Identitys with their respective access in the Apps and one or more ...

Symfony3: OAuth2 Token after form login with FOSUserBundle

i'm using FOSUserBundle for a traditional login form on a Symfony3 project. Few days ago i've also configured FOSRestBundle and FOSOAuthServerBundle so i can serve Rest APIs with OAuth2 authentication....

falcon oauth2 example not working

import falcon from .base import auth, application, attach_user class MyResource: def on_get(self, req, resp, **kwargs): resp.body = '{"foo": "bar"}' @auth.protect def on_post(...

TYPO3 callback url, how to make one?

I'm trying to integrate a third party app in TYPO3. This app needs to be authenticated via OAuth. To do this the user is redirected to the app's login, then logs in and then should be redirected (with ...

Google Vision raises a Invalid JWT Signature

I am trying to run the quick start demo by Google Vision APIs on MacOS Sierra. def run_quickstart(): # [START vision_quickstart] import io import os # Imports the Google Cloud client ...

How to handle refresh tokens with android account manager

I have this method below that syncs data with my server. If I am logged in with a valid auth token, it works fine. But I am unsure how to make it work if the auth token is expired. In my iOS app, I ...

Log into Zeppelin using Google account [on hold]

Problem I have Apache Zeppelin running on my cluster and am using Shiro for user management. Is there a way to set up Google auth with Zeppelin? Thanks!

Google authorization oAuth 2.0 without popup and consent

I need to get auth code in JSON not in url after confirm popup google window. I try do it like in this google docs https://developers.google.com/identity/sign-in/web/server-side-flow but this is ...

GetExternalLoginInfoAsync returns null in IIS

I know that there are a few questions like this on SO already but those questions pertain to not being able to log in at all. I have to age old "It works on my machine" problem. On my dev machine, ...

Can Oauth2 with Password workflow implement Wso2 EmailOTP and SMSOTP Authenticator

I am using Wso2 Oauth2 password grant for authenticating the user in my application. I need to implement two factor authentication using sms and email in my existing workflow. I have gone through the ...

Best way to authenticate users nowadays? [on hold]

Currently I'm developing two projects, one on Ionic2 framework and the other with pure Angular2 framework. I'm looking for the best way to authenticate my own users (no social) on my projects to use ...

How to make it safer my restful API using Django + OAuth2?

I am developing an application both android and ios and also I'm using Django rest framework. this app do not have a login page. There is online facebook login page. I did search a lot and I found ...

OAuth2 Implicit flow vs 'Traditional' session based auth for small SPA

Some background: I am writing a small SPA that will use a back end that I have also written. The JS and the back end API are on the same server. i.e. SPA will load from foo.com, back end is at foo....

How to connect user between a front and an api by using login / password or Oauth2

Here is I have a small problem of architecture, first of all, I have two applications: An api writes symfony 3.3 A front writes too it symfony 3.3 Then, I would like have two manner to sign in: the ...

WSO2 APIM v2.0 - Public Client - OAuth2

I have been battling around heaps of online documentations and blogs regarding public client authentication with OAuth2. I do understand that OAuth2 is not meant for authentication rather it is ...

DocuSign OAuth in demo mode

I am implementing DocuSign's OAuth flow by following their OAuth2 doc. With demo developer account is it normal that only users specified in the Admin Dashboard are able to complete the OAuth flow? ...

Android OAuth2 Social Authentication

I have an OpenAM realm configured with Facebook/Google social authentication running but now I want to integrate that capability to an Android app. i.e I want to be able to login with Facebook/Google ...

Yesod: Handling session data within simple project

I'm looking to authenticate a user using GitHub as an oauth2 endpoint and get some session data. I've got the whole authentication working but I want to be able to get some more useful info from the ...

Chrome extension development for user authentication

Can any one give me an example or explain how to implement launchWebAuthFlow API with php based OAuth 2.0 server. Actually i want build an extension for user authentication with the help of which user ...

How I do, I have OAUTH server, and in SailsJS I got access_token, and I got user info, how to authenticate by this info?

I have OAUTH server here user infomartions and in SailsJS 1. by code, I got access_token, 2. by access_token, I got user info, question is how to authenticate by this info? what is next step !!...

CakePHP 2 JWT Auth Plugin not receiving header in CakeRequest

I am using the CakePHP plugin (https://github.com/t73biz/cakephp2-jwt-auth). My CakePHP app is version 2.6.2. I have added this to my Auth Component in the AppController. 'JwtAuth.JwtToken' =>...

Is Authorization Code flow OAuth2 implementation in ADFS 3.0 supposed to be used only in Mobile Apps?

We are planning to connect to Client's AD with their ADFS set up with oAuth2 implementation from our SPA. Is it any way not recommended?

How to change the content-type of a request which will be made by ClientCredentialsResourceDetails?

Right now, I am trying to change the content-type of a request which will be raise by ClientCredentialsResourceDetails (org.springframework.security.oauth2.client.token.grant.client....

Multi Auth with Laravel 5.4 and Passport

I am trying to setup multi auth with Laravel Passport, but it doesn't seem to support it. I am using the Password Grant to issue tokens which requires me to pass username/password of the user wanting ...

Laravel oauth2 unautorized redirect

I am trying to implement oath2 using laravel and passport. however i have managed to make everything up & running. But the problem i am facing is when token expires or without token the url ...

Where to specify the Authorization server url in AccountManager below

Where to specify the Authorization server url in AccountManager below: AccountManager am = AccountManager.get(this); Bundle options = new Bundle(); am.getAuthToken( myAccount_, ...

Mocking Oauth2 Security in Spring Boot integration test

I have a resource server which accepts requests (from third party service) with url encoded parameters in body and one of these parameters is a Bearer Token that should be used for authentication ...

OAuth2 authentication plugin for ServiceStack .NET Core

Apologies if this is already answered on this site or in the extensive ServiceStack documentation - I have looked, but if it does exist, I would appreciate a pointer! I've been trying to knock up an ...

How do I use OAuth2 Resource Owner Credentials strategy in conjunction with Social Network login buttons?

I'm working on a web application that has a standard login form with an email and password. These credentials are used to retrieve an Access Token using a password grant type. I'd also like my users ...
Translating... 0%