Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [oauth]

Use it for questions about the open standard for authorization called OAUTH.

0
votes
0answers
13 views

Server/client permissions/role

I've installed and configured the Oauth2 server module. I have a client and I'm using the grant type 'client_credentials' to obtain an access token from /oauth2/token endpoint How do I grant roles/...
0
votes
1answer
24 views

What does “Field values for name must use an array structure” mean?

I am try to login via the REST API; curl --header "Content-Type: application/json" \ --header "Accept: application/json" \ --header "X-CSRF: dx3hhNKGorFI_2alL_Zqde2ZFDpefAll2JZd8kNisTA" \ ...
1
vote
0answers
21 views

Google OAuth 2 authentication in custom module

I've created a custom module to use the Google MyBusiness (GMB) API to get reviews etc for a specified location. The issue I am having at the moment is authenticating. All the examples I have read ...
0
votes
2answers
119 views

“Missing required paramter” with all Social Auth providers

The problem: I've just installed social_auth_google, social_auth_twitter and social_auth_linkedin modules. All the modules are configured (Client ID, Client Secret, and other similar fileds). The ...
0
votes
0answers
63 views

OAUTH2 REST API error: You must set the encryption key

After getting the token and when I call the rest API I got this error. User deprecated function: You must set the encryption key going forward to improve the security of this library - see this ...
0
votes
1answer
130 views

Drupal8 Oaut2 add a grant type “password” to client

I work on Drupal8 project and created Rest API, everything works fine until I want to add Oauth2 when I try to get a token I got an invalid grant type error. This is the error code: { "error": "...
2
votes
0answers
48 views

Simple OAuth Role assignment within a Scope

I have a web app that has multiple scopes under a single OAuth consumer. I want the user's Drupal role to be used when logging in. In simple OAuth, I have created 1 consumer that has 2 scopes: ...
2
votes
1answer
238 views

Simple OAuth + JSONapi response when token is expired - Decoupled

We're using the 'Simple OAuth' and 'jsonapi' modules for the front end authentication in Angular of our decoupled Drupal project. We've noticed that when the user credentials are correct but the ...
0
votes
0answers
11 views

simple_oauth : lost token when user save

In my REST API controller (the simple_oauth module), I need to change some user data and save these changes. I can do it, but after I save the new user data, I lost the current access token, so my ...
0
votes
1answer
186 views

Drupal7 REST Basic Authentication not working (Postman)

I configured my rest with services and installed the Basic authentication module. I used Postman and selected basic authentication gave username and password, I got "Missing required argument ...
1
vote
3answers
60 views

How can I programmaticaly submit the user edit form in Drupal 8?

I need to create a logout button in my app, and I do not know how to revoke simple_oauth tokens programmatically, but I have noticed if the user saves their profile form (form_id: "user_form") in ...
0
votes
1answer
272 views

Google OAuth Login Solutions? [closed]

Can anyone recommend a Google OAuth solution for D8? I've done some looking, the only real viable solution that I can find is the OneAll Social Login module. This would potentially work for us, but ...
0
votes
0answers
132 views

Oauth2, Duplicate entry '' for key 'name': INSERT INTO {users}

I'm trying to make an object to log user through oauth2. I need to put some conditionnal fields. Here is my code : public function createUserLocally() { // Get user datas from api $...
1
vote
1answer
136 views

what json structure does simple oauth expect?

Drupal 8. I'm new with simple Oauth. I had manage to do this: But I want to do it with the Raw format, cuz my frontend is in Angular, so I will send a Json to Drupal. This is my first try: { ...
0
votes
2answers
350 views

How to use user_external_login_register() with user authenticated by token?

So, I'm working on an Oauth2 implementation, and I'm forced to use a custom module as the existing modules all have slightly differing functionalities than my use case, assume Drupal-to-Drupal ...
1
vote
1answer
151 views

How to handle password field for externally authenticated users (Oauth2)?

I'm working on an Oauth2 authentication implementation where I need to provide content access to external users authenticated against an Oauth2 server which provides me with user info. From my ...
1
vote
0answers
135 views

How to create and login external users authenticated against a third-party Oauth2 server?

I'm working on an SSO implementation where I have to give access to a Drupal 7 site to external users authorized/authenticated by Oauth2. I'm struggling with the process of taking the supplied user ...
0
votes
0answers
106 views

Oauth_server authenticates but subsequent requests return “True” with 403 Unauthorized status

I have successfully setup Oauth2 in Drupal 7 and I am able to get token from the Oauth2/token endpoint. I need to implement, Implicit Flow (Client-Side Flow) as this endpoint will be used by client-...
1
vote
0answers
190 views

How to implement SSO with Oauth2 to login users from another site?

So, I apologize in advance as I'm only now getting familiar with all the Oauth2 terminology. I have an existing Drupal 7 site with its own active user base. The organization I support has recently ...
2
votes
1answer
316 views

Accessing Drupal REST endpoint using Oauth 2 token

I have successfully installed the Simple OAuth module on my website. I am also able to authenticate to it using Postman. I am getting the access_token and the refresh_token when authenticating. ...
2
votes
3answers
296 views

How to securely authenticate content embeded in another site?

I need to embed password protected content to a second domain with an iframe. The content itself is a view which will be displayed on a third party site via an iframe and the content is prepared with ...
0
votes
0answers
281 views

Basic authentication for external application making requests to Drupal instance

I have a external application that makes requests for content in my Drupal 8 instance. What I want to do is to make sure Drupal is only talking go my external application to stop traffic being spoofed....
0
votes
1answer
137 views

Error: OAUTH2 SERVER LIBRARY Unavailable

I have a website in drupal version 8.3.3 and since I installed oauth2 server module, I get the below error in Admin -> Reports -> Status Report The OAuth2 server library is required for the OAuth2 ...
1
vote
0answers
58 views

Oauth2 server library issues [closed]

In order to install oauth2 server module, I have added oauth2 server library in drupal-8 as instructed in https://www.drupal.org/node/1938218 Now oauth2 library exist in path/to/drupal-8/libraries/...
1
vote
0answers
451 views

How to use Simple FB Connect in decoupled Drupal

I'm creating a Drupal 8 website which I need to be able to access via Facebook OAuth. The Simple FB Connect module has solved the signup/login issues quite well. Users can sign up to the website with ...
1
vote
1answer
519 views

Basic Auth working but simple auth not working for create user

I am totally stuck here in Drupal 8 REST API, any help is very appriciate. Problem: I am using Drupal 8.3.x, simple_auth module to generate Auth token for REST. When I try to create user by ...
4
votes
2answers
3k views

How to install oAuth using PHP 7 and PECL OAuth library?

I am [unsucessfully] trying to enable the Twitter module on a Drupal 8 site that is using PHP 7 on ubuntu. The Twitter module requries oAuth to work and oAuth requires the PECL OAuth library. If I ...
6
votes
1answer
726 views

Authenticate using OAuth

I'm working on wrapping my mind around decoupled Drupal 8 while using an AngularJS app for the frontend. What I am trying to do is to allow a user to authenticate with my D8 site using their username ...
1
vote
0answers
386 views

Problem Setting up Drupal Site as OAuth Server

I've been going through OAuth2 Server module setup Documentation/Guidelines for almost 2 days now, and also referred with friend who has this working. But unable to get this working properly. I've a ...
0
votes
1answer
176 views

Invalid Signature in Services Oauth

When using the Services API with a PUT request, it returns an error saying that the signature is invalid. When working with POST I was getting access denied because the bundle was specified but this ...
1
vote
0answers
41 views

Is incremental auth supported on OAuth2 Server module?

I'm working on a project where I would need to use OAuth2 server module and I've searched through the source-code of the module to check if incremental auth is supported i.e. adding scopes to old and ...
0
votes
0answers
430 views

Hybridauth login not working

I am using hybridauth module for LinkedIn and twitter login. I have installed twitter module and twitter post module for posting node on twitter. After enabling twitter module Linkedin login via ...
0
votes
1answer
60 views

Making all REST Server calls to Drupal site as an authenticated user through Services

I am making REST Service calls to my Drupal 7 site to either retrieve or create content. Is there a way I can make all these calls through one specific authenticated user? Thanks.
0
votes
1answer
61 views

OAuth expires_in time

I want to add the expires_in time to the database when a user authorizes linkedin to store the token. https://www.drupal.org/project/linkedin I have added token_expires $sql = array( 'uid' => ...
1
vote
0answers
71 views

OpenID Connect Single Sign On handling login block

I am trying to implement an SSO system for my 3 Drupal websites. All the sites are separate domain and not sub-domains. Here is the problem: On the client site, client1.com, I click "Log in with ...
0
votes
1answer
827 views

Webservices to create (Register) a new user

I am planning to write client apps which connects to Drupal 7. I like to create new users through the app, have come across some literatures but I am not sure if the approach is secure and also ...
1
vote
0answers
770 views

Error opening socket SSL

I am working with a Drupal 7 site locally that we have setup with OAuth2. Logging in works fine on our staging server, our QA server, and another guy's MacBook Pro. On mine, however, I see an error ...
1
vote
0answers
123 views

How to revoke an Oauth2 refresh token as a Drupal admin?

I am currently working on an app that acts as a mobile client for a service of ours that is built on Drupal 7. Currently I use access tokens and refresh tokens via the Oauth2_server module as a means ...
1
vote
1answer
386 views

Making Twitter 1.1 API requests on site with OAuth and Twitter modules

I've setup a Twitter app and placed the appropriate Consumer Key and Consumer Secret strings in the settings of admin/config/services/twitter/settings. I'm able to make twitter 1 api requests just ...
0
votes
1answer
25 views

Oauth social login services not working

Can any body help me out how do I accomplish social networking login using login using loginprovider. I have done this for website using oauth connector. I tried lot but no success for mobile ...
1
vote
0answers
75 views

Can a secret Facebook group be automatically synced with a Drupal site?

I have a Facebook secret group, and a Drupal membership site. Members on the Drupal site (distinguished by a specific role) are added (and removed) manually from the “secret” Facebook group. What ...
2
votes
0answers
109 views

OAuth Connector Facebook - how to get email, address, and other user details for registration?

I'm using OAuth Connector on my Drupal Commerce websites to register users using their Facebook accounts. I found out how to set user name for the registration field, but I can't do the same with ...
4
votes
2answers
169 views

Create a block Most popular content using google analytics

Can anyone explain how to create a block of most popular contents using google analytics. I know about the modules Google Analystics Statistics and Most Popular but there is no good documentation ...
1
vote
0answers
52 views

oAuth2 Server POST /oauth2/token gets redirected

When my server tries to access /oauth2/token it gets a redirect. It seems that the request never even makes it to the point where it can process the authorize_code since the server trying to access /...
1
vote
0answers
54 views

How to import facebook and google users from expression engine 1.7 to hybridauth?

Is there any way to import facebook and google users from expression engine to hybridauth? I am trying to get users in Drupal 7 environment. Normal users I got from the feeds module, but I didn't ...
1
vote
0answers
416 views

OAuth2 Server and OpenID Connect

I am working on a Drupal 7 Based Web Application Development with a core server and multiple client web sites. The core server will be exposing APIs which will be called from the multiple web sites. ...
1
vote
1answer
231 views

OAuth2 login provider - endpoint page

I have installed OAUTH login provider and all dependencies to provide authentication service to other web application throug drupal authentication. The problem is that I still do not manage to test if ...
-1
votes
1answer
970 views

Service request with OAuth (Invalid signature error)

I'm making a service request(POST) with curl and OAuth signature. I have created a signature with the following code: $signature_method = new OAuthSignatureMethod_HMAC(strtolower('SHA1')); $...
0
votes
1answer
48 views

Limited permissions for users logged in with facebook and twitter

I would like to know if there's a way to allow people to log in into my Drupal site with limited permissions with their Facebook or Twitter account. I have created a website which allows ...
0
votes
0answers
112 views

Let users upload images from social networks

I'm trying to build a website that gives user's a profile page where they can either upload images from their computer or pull them in from Facebook and Instagram. Ideally i'd like the user to have ...