External Authentication Addon WIP (Updates and Questions) 
							
								 
							 
							October 23, 2014, 07:57:58 am 
							 
							
						 
					
					
						How do I add controller actions using an add-on? I've written a new controller and added it to the package-info.xml file, but it's as if the controller dispatcher is unaware of it. How do I make it aware so that ?action=blah leads to my action?
						 
						
					
				 
				
						
						
							Re: How do I add actions? 
							
								 
							 
							
								Reply #3  – October 23, 2014, 08:56:27 am 
							 
							
						 
					
						
	
		
			emanuele
		 
		
	 
							
								
									 
								 
							 
							 
							Global Moderator  
					 
					
						Unix is case sensitive? Extauth.controller.php
						 
						
					
				 
				
						
						
							Re: How do I add actions? 
							
								 
							 
							
								Reply #6  – October 24, 2014, 06:49:52 am 
							 
							
						 
					
					
						I've got to admit, it's not easy to tip-toe around the core Elkarte code. I want to try and build the add-on without changing too much, but I might be submitting some PRs. From what I can work out, the easiest way to enter into registration/login is through the OpenID handling code that already exists.
						 
						
					
				 
				
						
						
							Re: How do I add actions? 
							
								 
							 
							
								Reply #8  – October 24, 2014, 07:04:53 am 
							 
							
						 
					
					
						Yeah, I did think about rewriting it entirely, but it annoyed me when I was writing my theme how the login page is already duplicated: one template for error and one for no error. I'll see how it goes integrating it into the OpenID code, and if needs be, I'll make changes where I need.
						 
						
					
				 
				
						
						
							Re: How do I add actions? 
							
								 
							 
							
								Reply #10  – October 24, 2014, 09:25:50 am 
							 
							
						 
					
					
						Okay, that idea sank like a lead balloon xD Back to a separate register function and page in the ExtAuth controller.
						 
						
					
				 
				
						
						
							Re: How do I add actions? 
							
								 
							 
							
								Reply #11  – October 24, 2014, 10:30:29 am 
							 
							
						 
					
					
						After about an hour of steaming before finally realising I hadn't added the correct globals (fml), I've just successfully logged into Elkarte with Twitter.
						 
						
					
				 
				
						
						
							Re: How do I add actions? 
							
								 
							 
							
								Reply #13  – October 24, 2014, 11:16:48 am 
							 
							
						 
					
					
						Facebook working. Steam working. Google failing. Something on the HybridAuth-side. Google's APIs have gotten really complex.
						 
						
					
				 
				
						
						
							Re: How do I add actions? 
							
								 
							 
							
								Reply #14  – October 24, 2014, 11:18:16 am 
							 
							
						 
					
					
						Google working too now. It's designed (hopefully) in such a way that you can take existing HybridAuth-compatible provider plugins and just drop them straight into this addon.