From b70fa53a97bdb193ed92b78238ac4fc79be25777 Mon Sep 17 00:00:00 2001 From: Mal Curtis Date: Wed, 19 Feb 2014 07:56:53 +1300 Subject: [PATCH] Update README.md --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index fb6f13e..585fe3d 100644 --- a/README.md +++ b/README.md @@ -38,6 +38,17 @@ Or install it yourself as: ## Usage +### Basic Auth and Oauth Support +Authentication defaults to Basic Auth. You can switch to Oauth by adding the following code to an initializer. + +```ruby +# config/vending_machine.rb +Vend.config do |config| + config.auth_method = :oauth # defaults to :basic_auth +end + +``` + ### Get a store instance All usage revolves around your store, as per Vend itself