api-notebook icon indicating copy to clipboard operation
api-notebook copied to clipboard

Calling API.authenticate(client,"basic") fails

Open KonstantinSviridov opened this issue 10 years ago • 1 comments

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.

KonstantinSviridov avatar Sep 10 '14 21:09 KonstantinSviridov

Can't reproduce it. Could you tell me which API client are you trying to authenticate ?

joaquinbucca avatar Jun 28 '17 19:06 joaquinbucca