Ficlets, Rails and OpenID

Kevin Lawver

This is a presentation. If you'd like to view all the slides like a normal web page, you can.

What is Ficlets?

How did Ficlets Happen?

What Were You Trying to Prove?

Who Did It?

What Happens to Ficlets Now?

Why We Used Rails

What's Rails?

Why is it Cool?

Getting Started With Rails

Creating a Project

Getting Something Working

The Scale Myth

OpenID

OpenID and Rails

The OpenID Login Process

  1. User entered OpenID
  2. Relying party requests OpenID, looks for delegate URLs
  3. Redirects User to URL found in the openid.server link.
  4. User authenticates and grants or denies permission
  5. User is redirected by Identity Provider back to Relying Party

The Code: Signin

  1. Checks to see if you're already signed in
  2. Checks for return URL and sets that in the session
  3. If it's a POST
    1. Begins the OpenID login process
    2. Redirects to Identity Provider or returns error

The Code: Signedin

  1. Check for success criteria
  2. Checks to see if User exists
    1. If User exists
      1. Set session[:user] to User.id
    2. else
      1. Create new User
  3. Redirects to intended URL or the homepage

Handling Multiple Userspaces in One App

Lessons Learned

Conclusion

Questions?

My questions for you: