Force All vBulletin Sessions to Logout - apache-flex

I am currently building a mobile app that will use an existing vBulletin install as a login system. I've run into an issue where if a user is already signed on somewhere else, they cannot sign back on using the application. On the vBulletin site, if this happens, you are presented with a "Force Logout" button that will end all existing login sessions and allow you to login again.
Is there a way to implement such a feature use just the API? I cannot query the database, unfortunately, and my only means of accessing the vBulletin system is through api.php methods. The vBulletin API documentation is woefully incomplete, so I am hoping someone else would have an answer for this.
If it helps at all, I am using Flex and AS3 to build the application and have successful login and logout, but the logout only works if you pass an appropriate sessionHash to the API.

This was an issue with our specific vBulletin config. We had to write a custom script that would allow us to access the forcelogout.php page/script and force a logout.

Related

How to enable redirect in Drupal 9 on launch of application

I have enabled Keycloak authentication in a website built with Drupal. As soon as I launch the website I want to redirect to Keycloak's login page if the user is not signed in.
Is there any way to achieve this as soon as I open the website
I tried making the default front page of Drupal website as localhost:8080 (which is where Keycloak's login page is present) but was unable to do it.
If you are experienced with writing custom modules, you can write your own implementation of event subscriber. Here is a good example of it:
https://drupal.stackexchange.com/a/223109/5644
If not, then I recommend the module https://www.drupal.org/project/redirect - I am not 100 per cent sure if it lets you to specify redirect only for anonymous but it is definitely worth trying.
I am assuming that the integration with the Keycloak service is working and out of scope of this question.

How can i make mediawiki installation and wordpress installation in the same domain share the same user login and session information?

I have a wordpress site installed at the root of a domain. I have installed mediawiki in the directory "wiki" at the domain root. Now i want the mediawiki to share the user session info, even the user credentials with wordpress. I want to make mediawiki recognize a user as logged in if he is logged in to tho the wordpress. I have tried with the following online links. But none of them works for the latest of mediawiki versions.
https://dev.commons.gc.cuny.edu/2009/05/21/new-mediawiki-extension-wpmusinglesignon/
https://www.mediawiki.org/wiki/Extension:WPMW
If anyone could help to achieve this ?
You cannot share session information between MediaWiki and another application (and it's generally an anti-pattern; sessions are meant to hold application-specific information). You can use Wordpress login information in your wiki by using an extension that implements either a PrimaryAuthenticationProvider (for checking against Wordpress credentials when using the MediaWiki login form) or a SessionProvider (for checking against the WordPress session cookie, or otherwise authenticating every request). It's not an easy task if you need to write that extension yourself. WPMW looks like the right thing in theory, but it has not been updated for a while.

Requesting extra permissions through Google sign in on Concrete5

We are currently trying to use Concrete5 to create an internal Intranet for the company I work for (this is a web-based server). What we would like to do is allow our employees to sign in using their Gmail and be able to see their personal calendars amongst other things on sign in.
I would like the employees to just sign in once, get automatically asked for granting permissions during the login, and then be taken to the home page.
I'm having trouble figure out how to modify Concrete5's built-in Google login to request these scopes. I am pretty bare-bones in my PHP knowledge and no amount of Google searching has really answered my question specifically for modifying the authentication for Concrete5.
So to sum up my question:
How would someone go about modifying Concrete5's Google authentication to request additional permissions? We are using 5.8.3 and are always updating as necessary, so modifying the core is not really an option to prevent overwrites in the future.
The best way to do that would be to copy the core Google login system to create a new one. You could call it Google Custom or anything you want. You could include it in the folder application/authentication or in a package, with the appropriate modifications.
But to be honest, if you're bare-bones in your PHP knowledge, it all might be a bit too difficult to achieve

Facebook SDK for .NET - not working

I need a Facebook login button for an ASP.NET 4.5 site (not MVC).
I have followed this tutorial for the Facebook SDK:
http://facebooksdk.net/docs/web/getting-started/
But it skips over several points, doesn't provide any downloads and just doesn't work.
How can I do this - ideally using built in methods that require little work to implement - and allow you to retrieve email from Facebook. If that isn't possible a NuGet package (ideally one that is widely used) would be fine.
The Facebook SDK for .NET looks promising but I can't get it working and can't find other examples of its use online.
UPDATE
I need the user to press login, be authenticated, then give me their email (from fb?), enter a password.
I need to know all this and manipulate it all from C# code behind.
If they are already logged into FB - and already signed up for my site - I need them to be auto logged in (I will be using custom authentication on the asp.net side).
If you need the Facebook login or singup button then you do not need Facebook .Net SDK. You need to use Facebook Javascript SDK. Then you can use the <fb:login-button> XFBML tag.
If the user is already logged in to Facebook, the plugin can show the user's profile picture, if configured to.
Please refer here: https://developers.facebook.com/docs/reference/plugins/login/
Eventually I followed this tutorial:
http://www.aspsnippets.com/Articles/Login-with-FaceBook-account-in-ASPNet-Website.aspx
This was excellent and does exactly what I need.

Drupal Facebook connect functionality

I have tried to implement Drupal connect with facebook functionality via fbconnect module. I have installed and set up the plugin. When I click on the facebook button the new popup window is opened and it requires my facebook credentials. After I enter those, instead of just simply logging in to my site, drupal asks of me to create a new account for drupal.
Is there any way to just connect with my facebook account without creating a new one on the drupal site.
Regardz,
Mladjo
RPX works the same way.
I believe you would have to modify the code to grab the returned data from Facebook and simulate a user creation with user_save, then automatically log them in, bypassing the Drupal login. Drupal needs a way of tracking that user on the site which is why that occurs.
I don't think the modules are quite there yet, though. Thanks for pointing that out, because I will have to come up with something like this.

Resources