<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>Comments on: Adding Externally-Authenticated Users to BuddyPress</title>
	<atom:link href="http://www.generalthreat.com/2012/02/adding-externally-authenticated-users-to-buddypress/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.generalthreat.com/2012/02/adding-externally-authenticated-users-to-buddypress/</link>
	<description>Dangerously different projects and code</description>
	<lastBuildDate>Sat, 07 Jun 2014 17:10:44 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.2.38</generator>
	<item>
		<title>By: ddean</title>
		<link>http://www.generalthreat.com/2012/02/adding-externally-authenticated-users-to-buddypress/#comment-64499</link>
		<dc:creator><![CDATA[ddean]]></dc:creator>
		<pubDate>Sat, 07 Jun 2014 17:10:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.generalthreat.com/?p=85#comment-64499</guid>
		<description><![CDATA[Hi Stijn, 
 
This technique does create a &quot;shadow&quot; WP user for the external login. A lot of BuddyPress uses the WP user ID extensively, so it would take a lot more work to let external users participate in a BuddyPress site without a local user ID. 
 
Your second question is related to the first one. Because we\&#039;re creating a local user account and hooking `authenticate`, this code is only called if the user fails to log in locally but successfully logs in to the external auth system. 
 
Thanks for the comment! 
 
- David ]]></description>
		<content:encoded><![CDATA[<p>Hi Stijn, </p>
<p>This technique does create a &#8220;shadow&#8221; WP user for the external login. A lot of BuddyPress uses the WP user ID extensively, so it would take a lot more work to let external users participate in a BuddyPress site without a local user ID. </p>
<p>Your second question is related to the first one. Because we\&#8217;re creating a local user account and hooking `authenticate`, this code is only called if the user fails to log in locally but successfully logs in to the external auth system. </p>
<p>Thanks for the comment! </p>
<p>&#8211; David </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: stijndewitt</title>
		<link>http://www.generalthreat.com/2012/02/adding-externally-authenticated-users-to-buddypress/#comment-64490</link>
		<dc:creator><![CDATA[stijndewitt]]></dc:creator>
		<pubDate>Thu, 27 Mar 2014 08:29:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.generalthreat.com/?p=85#comment-64490</guid>
		<description><![CDATA[Thanks for this great post! It was exactly what I am looking for. 
 
I have some questions though. I see that you perform an update statement on the database: 
 
    // activate user and set display name appropriately 
    $wpdb-&gt;query( $wpdb-&gt;prepare( &quot;UPDATE $wpdb-&gt;users SET display_name=%s, user_status=0 WHERE ID=%d&quot;, $display_name, $new_user ) ); 
 
1. Is this necessary? I was hoping to avoid storing a &#039;shadow&#039; record in WordPress as the user is already stored in the external system. 
2. It looks like you are registering a new user (and activating it etc)... How does this work? A new user is registered for every login? 
 
Thanks for the great article and keep on writing them! 
 
-Stijn]]></description>
		<content:encoded><![CDATA[<p>Thanks for this great post! It was exactly what I am looking for. </p>
<p>I have some questions though. I see that you perform an update statement on the database: </p>
<p>    // activate user and set display name appropriately<br />
    $wpdb-&gt;query( $wpdb-&gt;prepare( &quot;UPDATE $wpdb-&gt;users SET display_name=%s, user_status=0 WHERE ID=%d&quot;, $display_name, $new_user ) ); </p>
<p>1. Is this necessary? I was hoping to avoid storing a &#039;shadow&#039; record in WordPress as the user is already stored in the external system.<br />
2. It looks like you are registering a new user (and activating it etc)&#8230; How does this work? A new user is registered for every login? </p>
<p>Thanks for the great article and keep on writing them! </p>
<p>-Stijn</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk: enhanced

 Served from: www.generalthreat.com @ 2026-06-12 22:56:27 by W3 Total Cache -->