README.md in wso2_toolbox-0.1.0 vs README.md in wso2_toolbox-0.2.0

- old
+ new

@@ -20,9 +20,22 @@ $ gem install wso2_toolbox ## Usage +Firstly, need set credentials to generate token. Create `config/initializers/wso2_toolbox.rb` file and +fill in the attributes: +``` +Wso2Toolbox.configure do |config| + config.token_url = ENV['GENERATE_TOKEN_DEV_URL'] + config.token_username = ENV['GENERATE_TOKEN_DEV_USERNAME'] + config.token_password = ENV['GENERATE_TOKEN_DEV_PASSWORD'] +end + +Then, you can generate a token calling `Wso2Toolbox::TokenManager.generate_token`, +that it will set the new token in your request. + +``` ### Example controller ``` class MyController include Wso2Toolbox::IdentityHeaders