Skip to content

Commit

Permalink
changed path name for secure
Browse files Browse the repository at this point in the history
  • Loading branch information
Jmfwolf committed Jun 19, 2023
1 parent 5abf851 commit fe11506
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/authentication/authenticator.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import (
olError "github.com/onelogin/onelogin-go-sdk/internal/error"
)

var (
TokenPath string = "/auth/oauth2/v2/token"
const (
TkPath string = "/auth/oauth2/v2/token"
RevokePath string = "/auth/oauth2/revoke"
)

Expand All @@ -38,7 +38,7 @@ func (a *Authenticator) GenerateToken() error {
}

// Construct the authentication URL
authURL := fmt.Sprintf("https://api.onelogin.com%s", TokenPath)
authURL := fmt.Sprintf("https://api.onelogin.com%s", TkPath)

// Create authentication request payload
data := map[string]string{
Expand Down

0 comments on commit fe11506

Please sign in to comment.