Social Media Authentication

I recently worked on a project where users were required to have an account with the web site but they could also connect that account to their Facebook or Twitter accounts and log in with any of those three.

It was a rails project, so I got to have my first taste of using the Omniauth and Devise gems together. I’m in the early stages of creating a sample for my portfolio using PHP, and I wanted to take a time out to discuss something I found very interesting.

It’s the philosophies that FB and Twitter have about identity. It didn’t even occur to me that there would be a difference until I started reading through the full terms and developer policies for FB. I had just set up a ‘work’ account and was having trouble with the identify verification step that they require before you can develop FB apps, so I actually read the entirety of the terms and discovered that what I was doing was in violation of them. The philosophy of FB is bascially ‘one account, one identity’ and duplicate accounts is specifically mentioned as a violation. I’m always reluctant to tie my FB account to work in any way (I am not FB friends with anyone from the last office I worked in), but I thought, hey, others are doing it, so it can’t be that bad. And it’s not. In fact, because of this philosophy, FB has the benefit of a fleshed out user-role system so that people can be admins, devs, testers, and a couple different types of special users.

The Twitter developer terms, on the other hand, are more focused on playing nice with their users and Twitter branding. In terms of identity, I believe they just expect you to have multiple accounts for multiple purposes. I imagine one example is that you are a poet and the same people who love your 140-limit haikus do not care one bit about your political re-tweets (especially this year!). Or, you have a company Twitter account that everyone on staff has access to, in addition to whatever personal accounts you all have. So this means that your Twitter app is tied to your Twitter account, and it is not very easy to transfer that ownership.

In both cases, though, it is very easy to set up. I quickly learned that using http://localhost or http://127.0.0.1 for the URL settings works while your app is under development.  The Omniauth gem for Rails made it very easy to paste in the secret keys and get round-trip authentication working in minutes. Tying them together and to your system is a little tougher, and every method has pro’s and con’s. In this specific system, since the authentications must be tied to a local account, I found nice method where the only cleanup item would be a background job that periodically purges the temporary authentications for users who log in with FB or Twitter and then decide not to go through with completing the sign-up process.

All in all, I had a pleasant experience learning about FB and Twitter authentication and am looking forward to working with them again.

Posted in Code for Fun
0 comments on “Social Media Authentication
30 Pings/Trackbacks for "Social Media Authentication"
  1. … [Trackback]…

    […] There you will find 85044 more Infos: abbysdoor.com/social-media-authentication/ […]…

  2. … [Trackback]…

    […] Read More here: abbysdoor.com/social-media-authentication/ […]…

  3. … [Trackback]…

    […] Informations on that Topic: abbysdoor.com/social-media-authentication/ […]…

  4. … [Trackback]…

    […] There you will find 56358 more Infos: abbysdoor.com/social-media-authentication/ […]…

  5. … [Trackback]…

    […] There you will find 59929 more Infos: abbysdoor.com/social-media-authentication/ […]…

  6. … [Trackback]…

    […] Read More here: abbysdoor.com/social-media-authentication/ […]…

  7. Rickie says:

    … [Trackback]…

    […] There you will find 34101 more Infos: abbysdoor.com/social-media-authentication/ […]…

  8. Konzert says:

    … [Trackback]…

    […] There you will find 39588 more Infos: abbysdoor.com/social-media-authentication/ […]…

  9. your chosen target audience if you offer…

    too many different types of services. for instance, if you specialize in social marketing for online businesses, you know who your ideal client is and how to attract those clients.5. it is much more financially and personally rewarding to focus on…

  10. themselves. in fact, writing is only 20-30%…

    of the work, the rest is all marketing!do you have a favorite quotation?i don’t have the exact quote, but in one of his old books stephen king said that he writes like some people overeat – that is compulsively.but more recently,…

  11. would think that a company who’s not…

    willing to work hard in the initial stage only, how it will complete the project in time, once it’s given to that company.a pqq is the best place to show your prowess in a specific field. you can quote examples; write…

  12. want to click the title. create a…

    list and formulate your own title.2) opening line. your opening line needs to speak directly to the reader. what i like to do is jot down my keywords and write down “what kind of person would type in these keywords.”for example:…

  13. ideas, but when it comes to putting…

    them into words they feel they cannot possibly proceed further with it. and such incidents occur all the time. therefore, they should look out for writers to finish their tasks.however, you will find that the writers around you will ask you…

  14. … [Trackback]…

    […] Informations on that Topic: abbysdoor.com/social-media-authentication/ […]…

  15. mistake some people make with blogging is…

    blogging when they have nothing useful to say. if you are doing this then you are going to have a hard time making fans who are interested in your blog. your posts should be relevant to the selected category, informative, and…

  16. a greater amount of quality content.by now,…

    you should be ready to get started on a blog and offer your perspective to everyone in the world. remember, blogging involves unlimited possibilities. in order to maximize your success, keep up with the latest information about blogging. there are alwa…

  17. maui lodging says:

    think these 8 tips will help you…

    to change your blog completely, and boost its performance. i see the future of america as a society that is knowledge-based competing and succeeding in the changing dynamics of the modern world. creating a knowledge-based society involves getting all p…

  18. Continued says:

    a science fiction novel will include not…

    only technology but psychology, anthropology and sociology: creating some of the most realistic and fleshed out cultures that have ever existed in fiction. the reason for this is the science fiction writer’s commitment to writing about the real and th…

  19. m88 says:

    talk about so it’s very precise and…

    targeted. if you talk about a b c d and e, but the main people you want to read your blog are only interested in b, then you’ll want to focus on stuff only relating to b. start another blog for…

  20. … [Trackback]…

    […] Informations on that Topic: abbysdoor.com/social-media-authentication/ […]…

  21. More Info says:

    been so much turmoil and change that…

    holding onto the comfortable, familiar haven that is home can seem to be the right thing to do. often advisers say not to make hasty decisions after a death or divorce because it is such an emotionally challenging time. but money…

  22. that you do the following:research your topic…

    effectively. find out what people are typing into the search engines to find your information. what keywords are they using? how many different variations of a particular word are they using? use google’s keyword tool to get a general idea of…

  23. reader interest but of equal importance is…

    promoting an atmosphere of ‘belonging’ which leads to visitor loyalty and your ultimate success! adding a business blog to your website is an excellent strategy that can help your small business on several different levels. let’s take a look at the…

  24. not attempt to convince the reader to…

    adopt it.after fully developing the argument, a good essay ends with a conclusion section. in the conclusion the main points of the argument are reviewed and summarized, and ideally tied together. this is where lessons learned will be described and the…

  25. visitors a reason to come back for…

    more information.what are the main types of blogs?1. personal blogs. nearly anybody can write this type of blog. this is where people get to write about their ideas, thoughts, and anything else they want others to read. many of these blogs…

  26. were drawn on top of the images…

    after the study to highlight the advertisements. the phenomenon, coined by dr. jakob nielsen in august of 2007, is referred to as banner blindness. as you might guess, banner blindness basically means that visitors are “blind” to banners (advertiseme…

  27. engage with readers in the comments section….

    when you respond to comments you build your relationship with your readers; readers who are approved are likely to come back.people keep you in mind when you take time to reply to their comments.#9 blogging mistake- disorderly blog when a blog…

  28. view more says:

    questionsto be more specific, ask questions directed…

    towards readers. questions are a great thing to put at the end of an interesting blog post. for example, if you’re posting about a new trend in online advertising tactics, or have a sudden spew of political outrage, your post will…

  29. its content.the best software allows you to…

    create, maintain and update your site. you will be able to remove a lot of the basic time consuming jobs of blogging, by automating many of the tasks.how to choosewhen researching the best program to use, look into what features they…

  30. … [Trackback]…

    […] Read More: abbysdoor.com/social-media-authentication/ […]…

Leave a Reply