6

I think you're desire to use Oauth is justified. However, if you have no other options, you can use Cookie authentication. I have used it before and have heard of people using it as well. Here are some things to keep in mind and you'd be good to go with Cookie auth with your mobile application: You will have to increase the session timeout time to a long ...


4

Bakery doesn't pre-sync accounts, so any accounts that exist only on slave sites (sub-sites) won't be synchronized to the master site. This is because of the nature of needing an authoritative account master, the Bakery master site. During authentication (on a slave site) Bakery sends the user to the master to validate so if the account does not exist there ...


4

To hide the password fields on the user edit form, put this code in your custom module, which implements hook_form_FORM_ID_alter(): function YOURMODULE_form_user_profile_form_alter(&$form, &$form_state, $form_id) { hide($form['account']['pass']); } You may also want to prevent users from going to user/password page and change their passwords on ...


4

There are two template files used hybridauth_widget.tpl.php This one is used to create the list of the icons. It gets a variable called $providers which has all the enabled providers. hybridauth_provider_icon.tpl.php This one is used to print the individual icons. Two variables are used here. $provider_name is the name of the provider like facebook ...


4

We had the same exact issue using the above configuration. It turned out that I had a rule enabled to redirect the user to a page upon login. When I disabled the above rule everything went back to normal Probably a conflict between modules. Thanks, Leonidas


4

Drupal default login URL format, example.com/user


4

To check login credentials in Drupal 6&7: $uid = user_authenticate($username, $password); In Drupal 8: // Inject user.auth service.. $uid = $this->userAuth->authenticate($username, $password); // or $uid = \Drupal::service('user.auth')->authenticate($username, $password); To check roles: /** * Check User roles * @param $role * @param ...


4

You'll want to create a custom module, please see https://www.drupal.org/node/1074360 You can then implement hook_mail_alter(). /** * Implements hook_mail_alter(). */ function my_module_mail_alter(&$message) { // Alter password reset if ($message['id'] == 'user_password_reset') { // Load the user by email address if ($user = ...


4

To provide the page hosting the React SPA, you will need to implement a custom module. This module would also contains all the JavaScript code of your application. If that's the only usage of React in your site, I suggest bundling everything in the module to make it easier. I assume you should be able to retrieve the user authentication token and any other ...


4

Solution found! In Postman: method: POST endpoint: http://{your_url}/user/login?_format=json in section Header: Content-Type: application/json in section body: {"name":"admin","pass": "admin"} Note: name and password must be entered in the body section (raw)


3

I've worked with LDAP and i have done a function on cron execution, to create automaticly user (of a certain role) who are not already created by login I hope this will help you function _synchro_ldap(){ $server = "serveur.com"; $rootdn = "name"; $rootpw = "pwd"; $ds = ldap_connect( $server ); $r = ldap_bind( $ds, $rootdn, $rootpw ); $dn = "...


3

Assuming Drupal 7, if you are trying to override LT's toboggan/denied page, eg, what overall structure you see when you land on www.example.com/toboggan/denied, you could copy your theme's page.tpl.php to page--toboggan--denied.tpl.php and modify whatever you wanted in there. (If Drupal 6, the new name would be page-toboggan-denied.tpl.php.) If you are ...


3

The LinkedIn Integration module won't automatically create a new user account for you. From step 5 of the directions in the module's README: Usage : Users will have to associate their LinkedIn account with their local Drupal account (at user/%user/edit/linkedin) to use any functionality provided by submodules. So if you log in via LinkedIn with a ...


3

You can try the Drupal Services, REST Server and 3-legged OAuth tutorial here. Just be pay intention in this part : $oauth->fetch("$api_url/node/1"); This is just for creating the GET request. If you want to create the POST request. It should be something like. $oauth->fetch("$api_url/user/vote.json",array('nid'=>10),OAUTH_HTTP_METHOD_POST);


3

Have you ever try to use OAuth Connector. It allows us to create the comsumer/application/connection to Twitter, Facebook... or another Drupal website. For my own purpose. I used that for fetch the data from Drupal 6 Services 3 by using this module in Drupal 7 and some extra code and it worked fine.


3

It turns out that "Clean URLs" need to be turned on for OpenID... I added "AllowOverride All" to the section under VirtualHost in my Apache config file. This allowed me to turn on Clean URLs and the error is now gone.


3

I was also looking for functionality that you needs, but after wards i tried to implement service for social sign in using Hybridauth module and i succeed. Try this https://github.com/rathodhiren9/hybridauth-service.git Note : Its my own implementation and working fine using Poster/Postman. But you need to test in mobile application on your own. Place ...


3

1- build the content structure well in your first site and create a view from admin/structure/views/add that return the data needed to the second site which acts like a client consuming your first site content. 2- Download and enable Services module and enable the submodule Rest Server and submodule OAuth Authentication now you can create secured resources ...


3

It looks like the Social API stack is the solution going forward in D8: https://www.drupal.org/project/social_api https://www.drupal.org/project/social_auth https://www.drupal.org/project/social_auth_google Good luck!


3

Since you are using Acquia Dev Desktop on a Mac, you have access to the best Drupal tool - Drush. In a terminal, navigate to the folder containing your Drupal website and run drush uli It will return a link to reset the password for user 1. The URL returned from the command will look something like http://default/user/reset/1/[numbers]/[hash]/login ...


2

To configure LDAP with Drupal 7, you'll have to install and configure LDAP module (including ldap_authentication and ldap_user). Once enabled, you'll find the configuration at /admin/config/people/ldap. First of all, you'll have to add and configure your 'LDAP Server Configuration' depending on your LDAP configuration (Servers tab at /admin/config/people/...


2

Configuring OpenID for each services is so painful. I have also gone through the same process when I had to enable FB, Gmail & Twitter login at my website, but anyhow it was giving me problem even if I configured with the supported modules oauth & connector. At last I found another module named HYBRIDAUTH & it worked so fine. Configuration is ...


2

With the drupal-6 site override hook_login_validate() and write your own authentication mechanism. Simpler than it sounds, as any function that returns TRUE or FALSE based on success will work. It could directly access the database or connect via a JSON web service to the drupal-7 server. I described how to implement authentication via JSON on stackoverflow. ...


2

Thanks to Mołot's comment, I was able to figure it out. The problem was the administrative overlay. Using the Chrome Developer Tools console (Chrome Menu/View/Developer/Developer Tools) I was able to see the request history. The last request included: referer:http://mysite.com/user/1/openid?render=overlay&render=overlay The response from Google also ...


2

So I assume that you are using the LDAP module? I've not looked into the code they use however I would expect that they will close the connection before your module runs, and even if they don't the connection won't be a global variable so your module will not have access to it. If you are writing a custom module then you do have access to the DB - just use ...


2

By default Drupal doesn't store any LDAP server information. If anything is stored by other modules, it's stored in the database. Depending on different modules, these data is saved in different tables. If you're using LDAP module for Drupal 7, you can find the settings in ldap_servers table. If you're using LDAP module for Drupal 6, you can find the ...


2

You can also check http://example.com/?q=user/login if the clean url is not enabled.


2

The "Mock LDAP" server that is being used for the LDAP Test module is, in fact, a mock server object. It allows the tests to run, and doesn't exist outside the scope of the simpletests. If you're looking to provide a way to "mock" an LDAP instance on your development site, it can't provide that functionality. If you're trying to write your own simpletests ...


2

I used Hybrid Auth . It works well. I tried anothers. They were not so good. Yes, Hybrid Auth does not have another functionality to share content. But It should not have it. It uses the separated library. It does not use third party services. It's free and independent. If you tell me your successful experience with another libraries I will be pleased.


2

Got something closely related to your case and I won't say this is not possible, you can have some workaround by following these threads: Login to Drupal using LinkedIn This feature is not available right now, to login into Linkedin while using its credential on your site. But it seems that, this thread is in knowledge of Linkedin Officials as well and ...


Only top voted, non community-wiki answers of a minimum length are eligible