I have a phpbb forum and i am developing a rails application that will be used for a mobile friendly app. I need a way to perform SSO between phpbb and rails.
I found a ruby gem called phpbb-auth on github but it hasn't been updated in over 3 years.
My initial thoughts were to mimic phpass (which i believe is what the latest phpbb uses) in rails and then just have rails reference the phpbb_users table when authenticating with Devise/Warden.
However, that task became daunting and would become just another lib to manage.
My next thought was to write a plugin for Warden to check for a phpbb_session and if its there, then continue. Otherwise redirect them to the phpbb login page.
Has anyone come across doing this before, and if so what was the method you used.
I doing same thing right now (already succeed actually).
So, you basically have several options depending on your setup/deployment. Consider following:
Will you deploy your rails app and phpbb on same domain or different domains?
Have both sites access to each other db.
Which authentication system you whish to use? So, you'd like rails (i.e. devise, authlogic or whatever) authenticate and handle users or phpbb db auth (i.e. storing logins and password in phpbb users table).
So far, I've implement auth through phpbb db auth + single domain with my app (phpbb: forum.example.com, my rails app is on: example.com for cookie sharing). In this case you can use code from gem you have mentioned (phpbb-auth). It's not very hard. Code is still working fine (with some adjustments probably).
BUT
I do not like it this way :) I consider my site as a main app and do not want forum to handle my users...
So, as I understand starting from phpbb 3 you can write plugin (API docs) for external auth for phpbb.
There are several examples in Python and Django in the net. Looks like this one for same domain + db access. And looks like this one for doing things remotely with JavaScript. Those are in Python, but there's not too much Python inside, only some examples :), so you can easily adopt them for rails, I think.
This question discuss same stuff, but in more generic way.
Related
I start using laravel (ver 4) and I got to the point I need to use authentication on my website.
I tried to find package that will allow me to wrap the all idea of "standard" / simple authentication and the social one (like facebook, google+ and etc..).
I found ion_auth and with some extensions it's allow me to use one authentication library for all kind of users - but it only works in codeigniter framework.
After a lot of research I couldn't find any ready package that allows me what I'm looking for, Does anyone familiar with such library or had this kind of issue and can tell me how he handle it?
This is a paid library, but it works pretty well. https://cartalyst.com/manual/sentry-social
i had a good experience using artdarek/oauth-4-laravel. it also has got a nice set of examples for using with different login providers.
I have a Vaadin 7 application that needs to use SSO (or a better kind of enterprise sign on method?) to authorize users through an LDAP directory. I also need to use groups or "roles" to differ between users and what they are allowed to access in my application. I am new to both login processes and Vaadin, and all I have right now is a working login form in my application that authorizes users against a fake "AD class" that I made myself.
So...
Where and how do I even start?
I read something about portlets and Liferay in this context. Is it even possible to achieve my goals without using Liferay or portlets?
Are there any good Vaadin addons that can help me with this?
Can I use Spring security for this? (I am using xpoft SpringVaadinIntegration addon and I know it handles roles for example)...
If I sound lost, it's probably because I am. I will gladly read up on this, if I even knew where to start. Please help me chop this monolithic blob of confusion into smaller pieces =)
SSO with windows login only works in the intranet and it requires the use of kerberos or ntlm.
You can use a library like waffle to integrate things.
Look here:
Link #1
Link #2
Are there any engines out there that would allow one to integrate a blog into an existing application/platform?
I'm quite new to rails but I am picking it up fairly quickly, and have implemented Devise, and Omniauth already, idealy I would like to have a blog implemented when a user logs in.
I've searched Stackoverflow, GitHub and other sources to no avail. However, I've heard Tom-Preston-Warner's Jekyll might work as a blog engine.
So my question is: Are there any gems, or tutorials that may help Rail's users implement blog engines into existing apps?
Jekyll uses git and files in a repo to build a blog, it's called a static site generator. If you want a rails engine, take a look at https://github.com/KatanaCode/blogit
One of the most popular blog engines out there is Refinery (https://github.com/refinery/refinerycms-blog). You can add the gem to your project and use it for your purposes.
It depends though how complex you want your blog. It's quite easy to throw together something using just a dedicated controller and a few views.
I've written several Symfony 1.x projects that use a custom app/frontend/myUser.class.php (which extends sfBasicSecurityUser) to verify the login against a legacy user database.
Now I'd like to start with Symfony2 but I'm not quite sure where to hook my custom authentication in. I probably only need the authentication part and let Symfony do the
authorization.
Is there some quick migration tutorial somewhere? Or do I have to completely rewrite it according to the security chapter in The Book?
thanks,
-christian-
I am working on a project which is a app store. User can subscribe to many applications. I am creating a subdomain for each user and applications he subscribed are again running on subdomains.
Eg.
1). One user registers and selects subdomain as "mysubdomain". Then after logging in he will be accessing everything as "mysubdomain.appstore.com".
2). After registration he subscribes an app, say, "discussion-board".
3). Then the discussion board will be running on "discussion-board.mysubdomain.appstore.com"
Application which allows user which is running on app_store.com and the utility app discussion-board are two different applications.
I know the question sounds more like serverfault.com, but I am putting it here if it can be managed using rails.
I am using devise for authentication on rails 3
I'd recommend you review:
http://railscasts.com/episodes/221-subdomains-in-rails-3
And take a look at doing the separate apps as Rack middleware.