Can you suggest some working example of it? I tried Authlogic and Devise withous success.
The easiest way I've found to do this is to use RPX NOW service.
You can find a full working example of using it with Rails3 and the RPX NOW gem at github.