Skip to content

Commit

Permalink
Updated the library version (use 1.0.0 instead of 2.0.0);
Browse files Browse the repository at this point in the history
  • Loading branch information
Pavel Petroshenko committed Jun 23, 2017
1 parent 4d2b0bd commit fc7b6d1
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion OAuth2.agent.lib.nut
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ enum Oauth2DeviceFlowState {

// The class that introduces OAuth2 namespace
class OAuth2 {
static VERSION = "2.0.0";
static VERSION = "1.0.0";
}

// The class that represents OAuth 2.0 authorization flow
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ This library provides OAuth 2.0 authentication and authorization flows. It suppo

The library exposes retrieved access tokens for applications and hides provider-specific operations, including the renewal of expired tokens.

**To add this library to your project, add** `#require "OAuth2.agent.lib.nut:2.0.0"` **to the top of your agent code.**
**To add this library to your project, add** `#require "OAuth2.agent.lib.nut:1.0.0"` **to the top of your agent code.**

## OAuth2.JWTProfile.Client

Expand Down Expand Up @@ -45,7 +45,7 @@ The second parameter, *userSettings*, defines a table with user- and application
#require "AWSLambda.agent.lib.nut:1.0.0"
// OAuth 2.0 library
#require "OAuth2.agent.lib.nut:2.0.0"
#require "OAuth2.agent.lib.nut:1.0.0"
// Substitute with real values
const LAMBDA_REGION = "us-west-1";
Expand Down Expand Up @@ -131,7 +131,7 @@ server.log("The access token is " + (client.isTokenValid() ? "valid" : "invalid"
```squirrel
#require "AWSRequestV4.class.nut:1.0.2"
#require "AWSLambda.agent.lib.nut:1.0.0"
#require "OAuth2.agent.lib.nut:2.0.0
#require "OAuth2.agent.lib.nut:1.0.0
// Substitute with real values
const LAMBDA_REGION = "us-west-1";
Expand Down Expand Up @@ -330,7 +330,7 @@ client.refreshAccessToken(
## Complete Example

```squirrel
#require "OAuth2.agent.lib.nut:2.0.0
#require "OAuth2.agent.lib.nut:1.0.0
// Fill CLIENT_ID and CLIENT_SECRET with correct values
local userConfig = {
Expand Down Expand Up @@ -364,7 +364,7 @@ if (token != null) {
server.log("CODE: " + code);
}
);
if (error != null) server.error("Client is already performing request (" + error + ")");
}
```
Expand Down
2 changes: 1 addition & 1 deletion examples/DeviceFlowGoogle.agent.nut
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
// ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
// OTHER DEALINGS IN THE SOFTWARE.

#require "OAuth2.agent.lib.nut:2.0.0"
#require "OAuth2.agent.lib.nut:1.0.0"

const CLIENT_ID = "";
const CLIENT_SECRET = "";
Expand Down
2 changes: 1 addition & 1 deletion examples/JWTGooglePubSub.agent.nut
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#require "AWSRequestV4.class.nut:1.0.2"
#require "AWSLambda.agent.lib.nut:1.0.0"
//@include "../OAuth2.agent.lib.nut"
#require "OAuth2.agent.lib.nut:2.0.0"
#require "OAuth2.agent.lib.nut:1.0.0"

const GOOGLE_ISS = "";
const GOOGLE_SECRET_KEY = "";
Expand Down

0 comments on commit fc7b6d1

Please sign in to comment.