Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now

Questions tagged [authentication-authorization]

Use it for the user authentication/authorization on Drupal core or third-party modules.

119 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5
votes
1answer
432 views

Automated login with LDAP always returns error

I have successfully setup LDAP module to authenticate users (and create new users). This is done through manual login form. Now I'm trying to enable automated single sign-on, but with no luck. I ...
4
votes
0answers
530 views

CAS Server setup

I have setup a Drupal 8 with CAS configurations - https://dev.cas.local Here is the configuration: Version: 2.0 or higher Hostname dev.cas.local Port 443 URI /cas SSL Verification Verify using web ...
4
votes
3answers
478 views

What is the correct way of logging in through services from android?

I currently have an app in development where I use services 3 on drupal 7 to login to my site. I do this by simply passing in the username and password parameters to a json object and use httppost to ...
3
votes
1answer
85 views

Using OAuth2 on non-REST endpoints

I have a custom module which includes a ControllerBase. The controller has a content() function that returns a JsonResponse(). The code for this function returns a complete list of a certain entity ...
3
votes
1answer
148 views

Bakery: Why do I get the “Logging out the user with the bad cookie”?

I am attempting a Single Sign On solution using the Bakery module. My problem is each attempt to login results in the following error: Logging out the user with the bad cookie. Those failing ...
2
votes
0answers
79 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
0answers
257 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 ...
2
votes
0answers
251 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
652 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
0answers
839 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 ...
2
votes
0answers
111 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 ...
2
votes
1answer
271 views

how could the global $user be different between the Drupal interface and Services module?

If i do: hook_node_view($node, $view_mode, $langcode) { global $user; var_dump($user); die(); // i get the correct dump of the current pre-authorized user } HOWEVER, ...
2
votes
0answers
140 views

Use LDAP objectClass to determine roles

I'm currently working on a portal site in D7 that allows access to several applications. I have created blocks that link to those applications and made them visible to certain Drupal-roles. My users ...
2
votes
0answers
433 views

Drupal HybridAuth Use Graph API

I successfully setup hybridauth module with drupal & it works fine. Now I want to fetch some details of logged in user. There is a documentation on doing this using graph api here. However, when ...
2
votes
0answers
501 views

using facebook oauth with Rest Server

I'm building an Android app that communicates with Drupal Services 3 through Rest Server module. On Drupal side, I'm using Facebook oAuth module for authentication. so I want to let the app users ...
2
votes
0answers
236 views

LDAP cannot load AD groups

I have used LDAP module with Drupal 6 without issues, but now that I am working with Drupal 7 the LDAP module seems to be unable to load the AD groups. I have searched all along the web but I couldn't ...
2
votes
0answers
446 views

Is it possible to get oauth working in services-7.x-3.x?

Any quick pointers on getting oauth working in Drupal 7? My need is to implement 2-legged oAuth in order to authenticate consumers to a service endpoint with (the equivalent of) an API key. At http:/...
1
vote
1answer
63 views

Problem with OAuth2 refresh token

I have the following problem with the simple_oauth module. I can get the initial jwt token with a POST request to /oauth/token with the following form data: username: user password: password ...
1
vote
1answer
38 views

Unable to run update.php or update modules from web interface

I would really like to be able to install module updates through the web interface or run update.php when needed without changing settings.php, but something seems to be broken in my setup because it ...
1
vote
0answers
30 views

Checking if user logged-in by external script, fails

With a script on an external webpage (same domain), I need to detect whether the user that's visiting the page is or not logged in. [EDIT] This occurs when the script is into a subfolder. If it's put ...
1
vote
0answers
54 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 ...
1
vote
0answers
509 views

How do I configure a site as SSO provider with Salesforce as IdP?

I need allow users to log in on a Drupal site using their Salesforce IDs. I understand that the Salesforce site will need to be configured as an Identity Provider and will provide a SAML certificate. ...
1
vote
0answers
524 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
0answers
449 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 ...
1
vote
0answers
69 views

verification mail link not working

I have the following issue: When a user register to the site he receives a message with a unique url in order to activate his account. so far so good. However when the user clicks the link provided ...
1
vote
1answer
52 views

What is causing the “username_link not found” error in the LDAP integration module?

After integration and configuration of the LDAP integration module, my site is unable to access the LDAP Server. During testing it throws below error: Notice: Undefined variable: username_link in ...
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 ...
1
vote
2answers
205 views

Disable user creation at login with Simple LDAP

I have the simple LDAP module installed and running, and I would like to prevent Drupal from creating a new user after a user authenticates if it does not already exist in Drupal. I found the ...
1
vote
1answer
50 views

Multi instance Drupal on single server. Is SSO possible to be implemented?

may I know if we can configure single sign on , on a single server that have 2 Drupal instance running in parallel?
1
vote
0answers
230 views

HybridAuth Social Login returns from social network to Page Not Found

I installed HybridAuth Social Login module on Drupal 7, and tested it with Facebook, Twitter, Google+ and LinkedIn. Clicking any of these four icons in the Log in form of my site functions to the ...
1
vote
0answers
119 views

Single Sign on Windows Authentication popup

I enabled SSO on my drupal website. When a user surfs to my website they got a windows authentication popup to fill in their AD credentials (i work with LDAP). But how do I pass the credentials ...
1
vote
0answers
129 views

Drupal CAS redirection after login is failed

I have been working on CAS SSO with drupal 7 and the authentication perfectly works and cas redirect to drupal when I install drupal and CAS in different machine. But when I put both drupal portal and ...
1
vote
0answers
79 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 ...
1
vote
1answer
362 views

Hybridauth facebook and google login not works in live server

I am using the HybridAuth Social Login for social media login for my website. The login works in my local server but the user profile picture is not fetched. But in live server nothing works, it just ...
1
vote
0answers
61 views

LDAP authentication not working

I made a copy of our dev server and gave it a new name and IP,but now I can not login into it. I think the fault is that I can not get LDAP to verify my pwd. Please could somebody point me in the ...
1
vote
0answers
148 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
0answers
57 views

SimpleLDAP and Drupal accounts

I have the Simple LDAP (7.x-1.4) module installed and it works perfectly fine with existing accounts on my LDAP server. I need to use the read-only connection. In addition I need to create sometimes ...
1
vote
0answers
489 views

Create user with ldap entry

I have installed LDAP module and configured. After that walk through admin-> configuration->people->ldap, here I added the server, in authentication I enabled the added server. Finally in user ...
1
vote
0answers
84 views

Hybridauth not working fine when rule configured with domain and sub-domain page

I have configured Hybridauth social media module for my drupal. I have one main domain and sub-domain configured with my website. I have configured some rule for redirecting to home page with some ...
1
vote
0answers
41 views

Active Directory Question

I am currently building an intranet site with drupal 7. It is hosted on a Windows 2012 Server R2 with IIS and I am using MSSQL 2012 as a database system. Moreover I have integrated the intranet site ...
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 ...
1
vote
0answers
95 views

Reuse form from another module in multistep form

I have built a multistep form, and it works fine. Now I have installed LoginToboggan module, It has the option of show a unified login/registration form. I would like to set the last step of my ...
1
vote
0answers
53 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
29 views

Why is 'Authenticated' only sometimes added to the users_roles table?

I understand as a default drupal does not include a row in the users_roles table for role 2 (Authenticated User), but it appears that sometimes it does, and I can't understand any rhyme or reason to ...
1
vote
0answers
423 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
0answers
130 views

LoginToboggan is not assigning new roles after validating email

LoginToboggan is not assigning new roles after validating the email. I've changed the token as it was in https://www.drupal.org/node/2003778 discussion. Now I'm getting: "Sorry, you can only use your ...
1
vote
1answer
238 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
vote
0answers
222 views

LoginToBoggan & OneAll Social Login: one-time-login token email sent withoud need

When you have installed LoginToBoggan AND the OneAll Social Login modules (to enable login via Facebook, Google etc.) - they seem to work not nicely together. LoginToBoggan provides a nice one-time-...
1
vote
1answer
589 views

drupal_http_request redirect is not a fully qualified uri. Throws missing schema error 1002

I am trying to authorise with an Viagogo API using oauth in my custom module (i have my credentials from Viagogo). I can construct the initial URL OK but the redirect response from the API is a ...