Skip to content

Commit

Permalink
Merge pull request #3 from Axway-API-Management-Plus/failed_login_anm
Browse files Browse the repository at this point in the history
Fixed ANM username and password now URI-Encoded
  • Loading branch information
Chris Wiechmann authored Feb 10, 2022
2 parents e09631b + 7ccc4e6 commit 2036951
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## [1.0.1] 2022-01-17

### Fixed
- Failed to login to ANM when using a password with special characters

## [1.0.0] 2022-01-17

### Added
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ async function sendRequest(url, options, data, expectedRC) {
async function loginToAdminNodeManager(anmConfig, options) {
try {
options.logger.debug(`Login to Admin-Node-Manager on URL: '${anmConfig.url}'`)
var data = `username=${anmConfig.username}&password=${anmConfig.password}`;
var data = `username=${encodeURIComponent(anmConfig.username)}&password=${encodeURIComponent(anmConfig.password)}`;
var reqOptions = {
path: `/api/rbac/login`,
method: 'POST',
Expand Down

0 comments on commit 2036951

Please sign in to comment.