diff --git a/OAuth2.agent.lib.nut b/OAuth2.agent.lib.nut index 8f31c78..75f66b9 100644 --- a/OAuth2.agent.lib.nut +++ b/OAuth2.agent.lib.nut @@ -40,7 +40,7 @@ enum Oauth2DeviceFlowState { // The class that introduces OAuth2 namespace class OAuth2 { - static VERSION = "1.0.0"; + static VERSION = "2.0.0"; } // The class that represents OAuth 2.0 authorization flow diff --git a/README.md b/README.md index 5b65d0a..8f236e4 100644 --- a/README.md +++ b/README.md @@ -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:1.0.0"` **to the top of your agent code.** +**To add this library to your project, add** `#require "OAuth2.agent.lib.nut:2.0.0"` **to the top of your agent code.** ## OAuth2.JWTProfile.Client @@ -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:1.0.0" +#require "OAuth2.agent.lib.nut:2.0.0" // Substitute with real values const LAMBDA_REGION = "us-west-1"; @@ -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:1.0.0 +#require "OAuth2.agent.lib.nut:2.0.0 // Substitute with real values const LAMBDA_REGION = "us-west-1"; @@ -330,7 +330,7 @@ client.refreshAccessToken( ## Complete Example ```squirrel -#require "OAuth2.agent.lib.nut:1.0.0 +#require "OAuth2.agent.lib.nut:2.0.0 // Fill CLIENT_ID and CLIENT_SECRET with correct values local userConfig = { diff --git a/examples/DeviceFlowGoogle.agent.nut b/examples/DeviceFlowGoogle.agent.nut index 8fe8ac8..23685e3 100644 --- a/examples/DeviceFlowGoogle.agent.nut +++ b/examples/DeviceFlowGoogle.agent.nut @@ -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:1.0.0" +#require "OAuth2.agent.lib.nut:2.0.0" const CLIENT_ID = ""; const CLIENT_SECRET = ""; diff --git a/examples/JWTGooglePubSub.agent.nut b/examples/JWTGooglePubSub.agent.nut index 086ac47..4d440bb 100644 --- a/examples/JWTGooglePubSub.agent.nut +++ b/examples/JWTGooglePubSub.agent.nut @@ -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:1.0.0" +#require "OAuth2.agent.lib.nut:2.0.0" const GOOGLE_ISS = ""; const GOOGLE_SECRET_KEY = "";