Skip to content

Further Integration

tenebrousedge edited this page Dec 26, 2012 · 1 revision

We made it! That wasn't so bad, was it? So now that we've told you all the basic steps for integration, there are a couple things that could be improved upon. Since this code is distributed as a plugin rather than a full application, we rely on you to bring your own user model. Unhappily, the only thing we can really rely on to be present is an 'id' field. We can't even rely on telling you to edit your user model, because that degrades the ability for this plugin to be used in other plugins, which is kind of the whole point.

Ideally though, the oauth tokens would be retrieved at login, and stored in the Session with the rest of the user data. This would allow lots of the code to be much simpler. If you do this, please let the Copula developers know about it; it would be nice to be able to point people in that direction.

That's it. Happy Coding.