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

Login attempt with Fiware throws Internal Server error #3209

Closed
Nazarah opened this issue Dec 11, 2017 · 6 comments
Closed

Login attempt with Fiware throws Internal Server error #3209

Nazarah opened this issue Dec 11, 2017 · 6 comments

Comments

@Nazarah
Copy link
Contributor

Nazarah commented Dec 11, 2017

Steps to Reproduce:

(required: Fiware login to be active in the environment)

  1. go to page: https://staging.apinf.io
  2. click Sign Up
  3. Click register with Fiware.
  4. Create a fiware account with required information (username, email address, password)
    [you can use randomly generalized emails using http://www.throwawaymail.com/en]
  5. Confirm email address in the sent email by clicking the link
  6. go to page: https://staging.apinf.io and click sign in
  7. click sign in with fiware
  8. provide the used credentials on the fiware window and click sign in
  9. click Authorize button

Outcome:
User can't sign in using created fiware account.
Page shows Internal Server Error
fiwaresigninerror

Expected Behavior:
Users should be able to sign in to APInf platform with valid credentials used for Fiware account.

Environment:
Windows 10, Chrome browser (latest), IE11, APInf Staging (https://staging.apinf.io)
Fiware information in staging environment:
image

Cases verified

  1. Creating a fiware account with completely new email address (never used in APInf) + attempting to sign in
  2. Creating a fiware account with previously used email address (in APInf) + attempting to sign in
@Nazarah Nazarah added the bug label Dec 11, 2017
@Nazarah
Copy link
Contributor Author

Nazarah commented Dec 11, 2017

Verified in nightly.apinf.io with completely new email address used to register fiware account.

@fdelavega
Copy link

I have been able to debug this error.

It seems that meteor is expecting a username field to be provided, but this field is not being provided as part of the account data generated by apinf-fiware package.

So in AccountsServer.Ap._attemptLogin (packages/accounts-base/accounts_server.js) the field result.error contains something like "Missing Username field", which is then included in attempt.error which (not sure why) generates a circular JSON error.

Anyway, I have included the username field within the serviceData provided by the package and that seems to solve the problem.

This have been provided in apinf-fiware repo in PR 23, although I have not yet included the tests

@preriasusi
Copy link
Contributor

apinf/apinf-fiware#23 closes this.

@Nazarah
Copy link
Contributor Author

Nazarah commented Apr 3, 2018

reopening this issue as it has emerged in release 0.55.0 in https://staging.apinf.io
This case registering attempt using fiware shows server error.

Also login isn't possible.

http://recordit.co/3e2bhFccY1

CC. @preriasusi

@preriasusi
Copy link
Contributor

Works now fine on nightly and saas. Closing again

@ghost ghost removed the icebox label Aug 21, 2018
@Madhu-NEC
Copy link

Madhu-NEC commented Mar 14, 2019

I am facing the same issue. The installation of APInf is done using docker-compose. I am using apinf/api-umbrella:0.15.0-apinf2 docker image for API-Umbrella and apinf/platform:0.58.0 docker image for APInf.
I have created the separate issue for this Issue:3727

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

No branches or pull requests

5 participants