From 8fad5b1648d8ea0990029f78ca87b17fb0797d2d Mon Sep 17 00:00:00 2001 From: John Wang Date: Mon, 10 Jan 2022 23:58:20 -0800 Subject: [PATCH] enhance: oauth2: constants --- constants.go | 6 ++++-- goauth.go | 7 ++----- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/constants.go b/constants.go index 34a2aa0..8d681b1 100644 --- a/constants.go +++ b/constants.go @@ -1,8 +1,10 @@ package goauth const ( - GrantTypeAuthCode = "authorization_code" - GrantTypePassword = "password" + GrantTypeAuthorizationCode = "authorization_code" GrantTypeClientCredentials = "client_credentials" + GrantTypePassword = "password" GrantTypeRefreshToken = "refresh_token" + TokenBasic = "Basic" + TokenBearer = "Bearer" ) diff --git a/goauth.go b/goauth.go index f5e5674..b80df26 100644 --- a/goauth.go +++ b/goauth.go @@ -12,11 +12,8 @@ import ( ) const ( - VERSION = "0.2.0" - PATH = "github.com/grokify/goauth" - TokenBasic = "Basic" - TokenBearer = "Bearer" - GrantTypeAuthorizationCode = "code" + VERSION = "0.10" + PATH = "github.com/grokify/goauth" ) type AuthorizationType int