Yes. It's on my list to write up some documentation, but until then, this github issue walks you through some supported scenarios (including some code suggestions):

https://github.com/FusionAuth/fusionauth-issues/issues/171