background preloader

Authentication

Facebook Twitter

Facebook OAuth 2.0 via Graph API using PHP and Zend | Jasper Rooswinkel. Recently I added OAuth authentication and some Facebook Graph API calls to Vizited for connecting users to their Facebook accounts, allowing them to share their public bookmarks through Facebook. If you have ever tried implementing OAuth, you’ve probably discovered that it’s quite a challenge the first time. It takes some reading and experimenting before it starts to make sense. Probably because the process exists of some steps (requests) that are a little bit confusing in the beginning. I’m a huge fan of the Zend Framework which didn’t make the task easier, because there are not a lot of examples available.

Unfortunately I don’t have a Zend installation on this blog (yet), so I didn’t create a fully working example. One other thing before you continue reading this: this tutorial is probably not fit for beginners. Creating a Facebook Application and updating the Zend application.ini You should start by creating a Facebook Application. For easy reference, I have the (good?) Android Tutorial. To use Facebook SDK in a project, add it as a build dependency and import it. 1. Go to Android Studio | New Project | Minimum SDK 2. Select API 15: Android 4.0.3 or higher and create your new project. 3.

After you create a new project, open your_app | build.gradle 4. Repositories { mavenCentral() } 5. 6. You need to initialize Facebook SDK before you can use it. Add Facebook App ID Then add your Facebook App ID to your project's strings file and update your Android manifest: 1. 2. 3. 4. 5. Thank you for downloading. Design for Facebook authentication in an iOS app that also accesses a secured web service. Authenticating against a REST API with iOS client using Facebook SSO as the only login mechanism. RESTful Web Services Authentication in Zend Framework - Chris Weldon. Over this past weekend, I spent time working on a new set of web services for an existing customer.

Previously, their web services were XMLRPC based, and performed authentication by sending the username and an API key rather than a password over the wire. These web services were secured via HTTPS, but use of HTTPS was not mandatory. Since the API exposed methods that allowed you to create, read, and delete records associated with a customer, the use of this API without using SSL could be disastrous for its customers. We had multiple outstanding requests to convert our web services to be REST-based and have also had the request to implement OAuth. These are definitely the direction we are heading for the project, but due to resource contraints (i.e. myself being the only developer), I have to be mindful about when I can deliver value.

Possible Authentication Solutions The business model our customer uses involves many API customer integrations. OAuth That’s a tremendous number of tasks. PHP Loginsystem. Eine Benutzerverwaltung hat für den Betreiber einer Seite viele Vorteile. Mit der Registrierung wird eine Verbindung zwischen Website und User hergestellt. Dadurch erhöht sich die Wahrscheinlichkeit, dass der User die Seite erneut und vielleicht sogar regelmäßig besucht. Mit dem Anlegen von registrierten Benutzern geht ein Loginsystem einher, durch dass man die Benutzer identifizieren und ihnen Rechte geben kann. Mit dieser Authentifizierung durch das PHP Login System erhöht man die Interaktionsmöglichkeiten der User, da man ihnen Zutritt zu bestimmten Bereichen geben kann (Members Only Area) oder ihnen Aktionsoptionen einräumt, wie z.B. den Download von Dateien. Ein tiefergehendes Rechtesystem kann man in Foren betrachten, in denen es eine Hierarchie gibt (Betreiber, Administrator, Moderator, User) und die verschiedenen Rechte noch weiter gestaffelt sind.

Ein Rechtesystem sollte immer integraler Bestandteil eines PHP Login Systems sein. Authenticating Users in Mobile Apps - Google Accounts Authentication and Authorization.