Single Sign On Very simple Ruby on Rails snippet
Hello,
I have been able to implement bare bones Wild Apricot single sign on steps in a blank Ruby on Rails project, thanks to Wild Apricot support! Please find attached a redacted and commented version of the code here for anyone who is trying to do similar with their own custom web app. This snippet prints out the ID of the user who is signed in.
Cheers!
![](https://secure.gravatar.com/avatar/e47498b558fd38c011d2b2360d4a8e46?size=40&default=https%3A%2F%2Fassets.uvcdn.com%2Fpkg%2Fadmin%2Ficons%2Fuser_70-6bcf9e08938533adb9bac95c3e487cb2a6d4a32f890ca6fdc82e3072e0ea0368.png)
![](https://secure.gravatar.com/avatar/f45908cb0a7835de84c2f7b50532928f?size=40&default=https%3A%2F%2Fassets.uvcdn.com%2Fpkg%2Fadmin%2Ficons%2Fuser_70-6bcf9e08938533adb9bac95c3e487cb2a6d4a32f890ca6fdc82e3072e0ea0368.png)
Great, thank you for contribution.
We put copy of attached file to API samples on github:
https://github.com/WildApricot/ApiSamples/blob/master/RubyOnRails/SSO/application_controller.rb
-
CPorter commented
Thank you!