Questions tagged [authentication-authorization]
Use it for the user authentication/authorization on Drupal core or third-party modules.
366
questions
0
votes
1
answer
2k
views
How to Logout user with Basic auth?
I can log in, perfectly fine, but can't get logout to give me a JSON response. Currently, I can only do POST to
d8.com/user/logout?csrf_token=123&?_format=json
and that would log out, even ...
0
votes
1
answer
942
views
REST Basic Authentication not working
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
3
answers
455
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
1
answer
1k
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
0
answers
368
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
$...
0
votes
1
answer
106
views
Open Id Connect SSO on cross platform sites
I have 3 sites(all were sub domain sites)
Server(id.test.com) - .NET
Client1(client1.test.com) - Drupal
Client2(client2.test.com) - .NET
Am using OpenId Connect for login. My login & logout ...
2
votes
2
answers
462
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:
{
...
1
vote
1
answer
814
views
Sign out not working properly in OpenID Connect
I have integrated OpenID Connect(Generic), where my Signin was successful(Redirects to destination server, provided credentials, redirect to drupal & authenticated).
While i make Sign out, it ...
0
votes
2
answers
915
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
1
answer
240
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 ...
0
votes
1
answer
5k
views
How do I get the currently logged-in user?
I have a site running on Drupal 8 with a login module. I want to get the user ID for the currently logged-in user to later execute a database query.
This is the code I am using.
$user = \Drupal\user\...
2
votes
0
answers
388
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
0
answers
136
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-...
3
votes
0
answers
390
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
1
answer
1k
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. ...
0
votes
1
answer
255
views
How to verify a token in the url of a drupal 7 site against an external web service and skip the login form all together?
Context
We have this JSON web service GET https://api.my-domain.com/accounts/me (and a bunch of other endpoints). It takes a token in the header. When that token is valid it will return
{
"email": ...
1
vote
0
answers
697
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. ...
2
votes
2
answers
759
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
1
answer
1k
views
Help with LDAP module for user authentication in Drupal 8.3.7
I just installed Drupal 8.3.7 via composer and am trying to get user logins to work against our LDAP server. I added and enabled the following modules:
We are using ldaps on port 636 rather than ...
0
votes
1
answer
45
views
Saving 'sub' from Identity Provider
I need to associate sub, which is received as part of $userinfo in openid_connect_save_userinfo, but I don't see it as part of the claim options. I also don't see that it's stored elsewhere.
I am ...
0
votes
1
answer
198
views
Is that possible to single sign-on with completely different domains?
we have multilingual Drupal 7 site.
Swedish Domain : www.swedish.com
English Domain : www.english.com
admin/config/regional/language looks like screenshot.
No Domain access is used. I have ...
0
votes
0
answers
581
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
1
answer
265
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
0
answers
71
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/...
0
votes
1
answer
81
views
Are there any module options or techniques to authenticate through OpenAM on Drupal 8?
I see that there is an OpenAM module for Drupal 7, but I do not see one for 8. Is there an option for this?
1
vote
1
answer
1k
views
Import users from LDAP
I want to import user accounts to my Drupal site via the LDAP server. How do I do that? I installed LDAP feeds, but I don't understand how it works. I have LDAP query installed and working.
-1
votes
1
answer
111
views
How to use token of Hybridauth?
I want to display users' profile data from Hybridauth, so I used "Token Filter" to get the token codes (something like [hybridauth:firstName] ), then I put token_replace in 'user-profile.tpl.php':
...
0
votes
1
answer
45
views
Use the same login credentials with different core versions
I have a Drupal 7 site, and I createda new Drupal 8 site. I would like to use the login credential from the Drupal 7 site in the Drupal 8 site.
How can I achieve this?
0
votes
1
answer
3k
views
500 (Service unavailable (with message)) on login or register
Effectively the same as this (Drupal 500 Internal server error on login page) but i am unable to bump or comment so resorting to adding my own question.
The site is running Drupal 7.54 php version 7 ...
1
vote
2
answers
110
views
Login to drupal with just a number
Is it possible to login to Drupal with just a number?
Use case is a kiosk where users have a nfc tag.
So my idea was to hide the input field an use the number retrieved from the nfc tag to identify ...
1
vote
0
answers
645
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
1
answer
982
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 ...
0
votes
1
answer
2k
views
Why this message "You are not authorized to access this page." coming on user edit page?
I am facing a strange behavior today, when I signup via Facebook or twitter and then go to user edit page it show this message:
You are not authorized to access this page.
Even if try to access ...
1
vote
1
answer
631
views
Simplesamlphp behind reverse proxy
I have configured my application and simplesamlphp behind reverse proxy. I have created a test SP But when I am going to test the SP, it redirects to https://web-server-ip/adfs/ls/?SAMLRequest=nZL ...
4
votes
2
answers
5k
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 ...
1
vote
1
answer
309
views
how to add user programatically without interfering with cas module?
I have created a module that bulk create user entities depending on ldap filters and assign selected roles .
The problem is the connection with cas is then not working when a user entry has been ...
6
votes
1
answer
1k
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
0
answers
552
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 ...
2
votes
2
answers
228
views
How to correct my rule to update user info on login using HybridAuth?
I'm using Drupal 7.5x and the HybridAuth Social Login module.
I am aware a lot of users have done this using Rules and Rules Event HybridAuth login, combined with Set a data value. However no one ...
1
vote
1
answer
84
views
Is it possible to authenticate against LDAP server without creating a drupal user account
In D7 I have a section of my site I need to limit to authenticated users, but auth needs to take place against LDAP server, not drupal user base.
My users don't have a Drupal account and I am not ...
0
votes
1
answer
312
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 ...
0
votes
1
answer
2k
views
Integration with Single Page Application (React)
I have a specific scenario to integrate a single page application (react based) with Drupal (I use version 7) in order to achieve the following:
Utilize the CMS capabilities of drupal and provide ...
3
votes
0
answers
585
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 ...
1
vote
1
answer
459
views
Password reset causes a 404 error
When users try to reset their passwords clicking on Reset your password, they are fine until they click on the Log in button that shows a message similar to the following one.
This is a one-time ...
0
votes
2
answers
57
views
Request a new password mail without any content inside of the mail.
I got a problem. When I want to request a new password due to password forgotten, the system definitely send a mail to my email address. But, this mail is without any content inside.
I check the ...
0
votes
1
answer
146
views
Drupal 7 LoginToboggan username or email or custom field
I have a Drupal 7 site and the client wants the user to be able to login using: email or username or a custom_field that's unique to each user. I've scoured for solutions but can't find any. Any ...
1
vote
0
answers
560
views
Access Denied with Login CDN
I'm using Drupal with CloudFront CND. Drupal works very well without CloudFront, but I get an error when I try to login in my website after enable CloudFront, the user is ok, the pass is ok but I get '...
3
votes
2
answers
3k
views
Theming login page--user--login.tpl.php
I'm trying to theme the login user page and it seems that I'm missing something and I can't figure out what it is.
here is what I did:
I've added this code to my template.php:
function ...
0
votes
1
answer
425
views
Display thumbnailPhoto from Active Directory - Open atrium and LDAP modelude
I am using Open Atrium for my intranet. I got LDAP module installed, the server is configured, same as User, Authentication, and Authorization.
The communication with my Active Directory is successful,...
3
votes
1
answer
215
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 ...