A reference design for enabling a ruby app to authenticate with an OAuth2 server