api-notebook
api-notebook copied to clipboard
Calling API.authenticate(client,"basic") fails
Hi, guys.
I observe three valid scenarios of basic authorizations. Two of them fail while the remaining works fine.
Scenario 1
Action 1. Call API.authenticate(client,"basic")
.
Reaction 1. TypeError: Cannot read property 'authorizationUri' of undefined
Scenario 2
Action 1. Call
API.authenticate(client,"basic", {
username : "usernameValue",
password : "passwordValue"
})
Reaction 1. Everithing is fine.
Action 2. Try to call API method. Reaction 2. A pop-up dialog with authorization request is opened.
Action 3. Enter valid credentials into the dialog. Reaction 3. Dialog does not accept valid credantials.
Scenario 3
Action 1. Do not call API.authenticate()
in any way.
Reaction 1. - - -
Action 2. Call some API method. Reaction 2. A pop-up dialog with authorization request is opened.
Action 3. Enter valid credentials into the dialog. Reaction 3. Everithing is fine.
Regards, Konstantin.
Can't reproduce it. Could you tell me which API client are you trying to authenticate ?