Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed login for version 3.0 #24

Closed
acharl opened this issue Jan 24, 2020 · 9 comments
Closed

Failed login for version 3.0 #24

acharl opened this issue Jan 24, 2020 · 9 comments
Assignees

Comments

@acharl
Copy link

acharl commented Jan 24, 2020

when calling fakeLogin(username, password), it throws Error: Failed at step 2: do the login for version 3.0.0 of the API, can anybody confirm?

@mathewmeconry
Copy link
Owner

Hi @acharl
Have you entered for username and password the credentials for a valid user in your Bexio instance or for the V3.0 API?
This function is meant to fake a login procedure of a real user that we can establish a real server2server interface.

@mathewmeconry mathewmeconry self-assigned this Jan 28, 2020
@acharl
Copy link
Author

acharl commented Jan 29, 2020

@mathewmeconry yes, the provided credentials used to work for the fakeLogin using the previous version of the API, but it seems to fail for the new version. Can you confirm?

@mathewmeconry
Copy link
Owner

@acharl It works for my running project. Have you moved your app to version 3?

@chuckinSpace
Copy link

chuckinSpace commented Feb 6, 2020

The same thing happened to me, I just created the app but the fake login process gets me the same error Failed at step 2: do the login, any info on this? UPDATE, credentials weren't working properly, it is now stopped at step 3 perform the necessary SAML stuff

@mathewmeconry
Copy link
Owner

@chuckinSpace are you using the app credentials of the api v3 or api v2?

@chuckinSpace
Copy link

v3

@mathewmeconry
Copy link
Owner

these are currently not supported...
I try to find time end of february to implement the first draft of the v3 api

@mathewmeconry
Copy link
Owner

Hey
Better late then never but I published a pre-release for the api v3 implementation. It supports the same endpoints and works with the bexio api tokens for authentication (http://docs.bexio.com/#section/Authentication/API-Tokens)

Release: https://github.com/mathewmeconry/bexio/releases/tag/3.0.0 (not published on npm)

@mathewmeconry
Copy link
Owner

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

No branches or pull requests

3 participants