Coder Social home page Coder Social logo

ianknauer / omniauth-rails3-forcedotcom Goto Github PK

View Code? Open in Web Editor NEW

This project forked from quintonwall/omniauth-rails3-forcedotcom

0.0 1.0 0.0 169 KB

Sample Rails 3 application using Omniauth and Httparty to connect to the Force.com platform via the REST APIs

Home Page: https://github.com/quintonwall/omniauth-rails3-forcedotcom/wiki

omniauth-rails3-forcedotcom's Introduction

Rails 3 with Omniauth, REST and HTTParty example for Force.com
 
 
This sample rails3 app uses a custom Force.com strategy for Omniauth
to connect to Force.com using OAuth2, then performs a simple REST
call using Httparty to retrieve a list of Accounts.

How to use it:
see https://github.com/quintonwall/omniauth-rails3-forcedotcom/wiki


files  of note:

lib/forcedotcom.rb - the custom Omniauth strategy
config/initializers/omniauth.rb - add your consumer key and consumer secret here
lib/accounts.rb - the Httparty class which performs a rest call
app/controllers/session_controller.rb - the create method handles the oauth callback
config/routes.rb - includes callback routing
config/environment.rb - includes env variable to set REST API version number
rails/server - I have updated this to support HTTPS. You will need to generate your own
keys and drop them in the lib/certs dir. Check out the README in that dir for more info



omniauth-rails3-forcedotcom's People

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.