FYI - Scriptauth OAuth authentication system from FatFractal

This post demonstrates real examples authenticating users with various Oauth authentication providers on FatFractal.

Note - the source code for this sample app is availabe here.

Login using Facebook

Login using Twitter

Check it

You can verify that you are logged in by clicking "Save me!" below. This will create an object on the backend and report back the results. If not, you will get an error.

function Movie() {
    this.title = null;
    this.description = null;
    this.year = null;
    return this;
}


Note - since you can only create objects on a FatFractal backend with a logged in user, a successful save will demonstrate that you have successfully logged in using Twitter or Facebook.