Skip to content
This repository has been archived by the owner on Oct 2, 2019. It is now read-only.

Logon Failed #11

Closed
GonzaloMoldes opened this issue Apr 30, 2015 · 4 comments
Closed

Logon Failed #11

GonzaloMoldes opened this issue Apr 30, 2015 · 4 comments

Comments

@GonzaloMoldes
Copy link

Hi Andrew,

Im a Bitrix user and i want testing Brick in Gnome environment, but i found a issues to complete my test.

I use Ubuntu 14.04 LTS, i follow the steps to install from PPA. Compilation and installation has done without any issues, but i have a surprise when i try to logon in my account, the application sends a message: "Authorization failed :(" "Authorization error, wrong login or password"

My Bitrix account is self-hosted by us and we use the https to log in the system.

When i call "Brick" in a terminal i see this message:

g******@Samsung:~$ brick
[0430/103942:INFO:dbus_protocol.cc(117)] Acquired the bus org.brick.Brick

[0430/103942:WARNING:dbus_protocol.cc(359)] D-BUS implement me: AccountSwitchEvent

ATTENTION: default value of option force_s3tc_enable overridden by environment.
[0430/103943:WARNING:account.cc(188)] Auth failed: {success: false}

Can you help me with this?

Suggestion: When the logon fails, i don't have a any other options to click "try again", i think is nice if you put in this screen the possibility to change the account to login.

Thanks,

@buglloc
Copy link
Owner

buglloc commented Apr 30, 2015

Hi!
Can you provide some more information about your Bitrix24:

  • Version of module "Instant Messenger"
  • Is Bitrix24 used the AD/LDAP for authorization?

If your Bitrix24 is integrated with AD/LDAP, you may have trouble with authorization :-( Because the module "AD/LDAP connector" does not support Application Specific Password, used in Brick for security purposes.
In the new Brick version, I made two changes for this:

  • Allow using the "original" account password for authentication (deactivate checkbox "Use App Password (recommended)")
  • Allow changing account credentials when the logon fails - added a new button to display the the edit dialog account. I thought to make the ability to edit directly on the page with an error, but has refused for security reasons

I plan upload a new version (0.1.20.29) to the PPA in this evening, so tomorrow you can try it.

@buglloc
Copy link
Owner

buglloc commented Apr 30, 2015

If this is not the case...Please try to reproduce the problem:

  • Get the App Password from portal:
$ curl --data "renew_password=y&action=login&login=_your_login_&password=_your_password_&otp=" https://_your_bitrix24_domain_/desktop_app/login/
  • The answer should come with new App Password, for example:
{success: true, sessionId: 'qi0i10tu35dr6up6id1rv6tbn1', appPassword: 'ywzhbdxlcpnrygwf'}
  • Now, try to logon in with it (change ywzhbdxlcpnrygwf to appPassword value from presious step):
$ curl -v --data "action=login&login=_your_login_&password=ywzhbdxlcpnrygwf" https://_your_bitrix24_domain_/desktop_app/login/
  • Server should respond something like this:
{success: true, sessionId: 'r4cim3r8rala63hslj7gjgftn4'}

If http-response status code is not 200 or "success: false" in the response body - try wrote to Bitrix24 helpdesk (may be with link to this issue), probably Bitrix24 doesn't not support Application Specific Password somewhere else:-(

Or just wait tomorrow and update Brick to version 0.1.20.29. Then change the account password with deactivated checkbox "Use App Password (recommended)" :-)

@GonzaloMoldes
Copy link
Author

Hi Andrew,

I wait to update to version 0.1.20.29... works fine. I'm happy with your app. :) 👍

Another one suggestion: the option "feed news" redirect to the web app, i think it's better to see the "feed news" in Brick. you have scheduled for a update?

Thanks!

@buglloc
Copy link
Owner

buglloc commented May 4, 2015

Another one suggestion: the option "feed news" redirect to the web app, i think it's better to see the "feed news" in Brick. you have scheduled for a update?

Unfortunately, this cannot be implemented on the Brick-side. It should be supported in Bitrix24 (server-side) and only then it can appear in Brick. Therefore, this suggestion you better send to the helpdesk Bitrix24 if they support for official clients - I can do it for Brick

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants