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

Unable to access the web admin account #207

Closed
tinu85 opened this issue Jan 11, 2016 · 9 comments
Closed

Unable to access the web admin account #207

tinu85 opened this issue Jan 11, 2016 · 9 comments
Milestone

Comments

@tinu85
Copy link

tinu85 commented Jan 11, 2016

I have followed the installation instructions for Ubuntu 14.04(Trusty),however i am unable to login to the web admin using https://10.1.114.64/admin/ where 10.1.114.64 is my API Umbrella host,i tried to login with Mozilla Persona ,i got verified in Mozilla ,but i get the following error message finally :
The account for 'tinu.elizabeth@quest-global.com' is not authorized to access the admin. Please contact us for further assistance.

Please Note: I have added the email id in the api-umbrella.yml config file as well

@GUI
Copy link
Member

GUI commented Jan 14, 2016

@tinu85: Did you happen to edit the /etc/api-umbrella/api-umbrella.yml file to add your e-mail address after you had already started API Umbrella? That's one reason I could think of that your initial account might not be working. You could try running sudo /etc/init.d/api-umbrella restart and logging again to see if that works.

If it's not that, then I'd maybe check the formatting and indentation of your /etc/api-umbrella/api-umbrella.yml file. Does it look like this?

web:
  admin:
    initial_superusers:
      - tinu.elizabeth@quest-global.com

@mitchellfranklin
Copy link

I am also getting this error, I have made sure the file like above (Except for the # in front of the lines) is the same

@GUI
Copy link
Member

GUI commented Mar 1, 2016

@mitchellfranklin: So do you mean that you do have # symbols in front of the lines? In other words, does your file look like?

# web:
#   admin:
#     initial_superusers:
#       - your-email@example.com

If so, those # symbols are comments in YAML files, so you'll actually need to remove those to uncomment the lines (so they are effective):

web:
  admin:
    initial_superusers:
      - your-email@example.com

You'll then need to restart API Umbrella after making any changes to this file (sudo /etc/init.d/api-umbrella restart).

But if I'm misunderstanding, or you're still running into any issues with those lines uncommented, let us know.

@mitchellfranklin
Copy link

No that is perfect - I thought it might be the case however the doco from what I can see does not state removing the # just to add in your email - thanks heaps

@tariq452
Copy link

tariq452 commented Sep 30, 2016

it's give me same error API key signup unexpectedly failed

`services:

  • general_db
  • log_db
  • router
  • web
    web:
    admin:
    initial_superusers:
    - tariq.a.tami@gmail.com
    auth_strategies:
    enabled:
    - github
    - google
    - persona
    github:
    client_id:
    client_secret:
    google:
    client_id:
    client_secret:
    elasticsearch:
    hosts:
    • http://127.0.0.1:14002
      mongodb:
      url: mongodb://127.0.0.1:14001/api_umbrella
      nginx:
      workers: 4
      gatekeeper:
      workers: 4
      `

@coobr01
Copy link

coobr01 commented Dec 28, 2016

I'm having the same issue. I'm using Docker on Windows but I do have the correct entry in /etc/api-umbrella/api-umbrella.yml

web:
  admin:
    initial_superusers:
      - test.test@test.com

when I access https://127.0.0.1/admin

I don't get an option to login.

image

@GUI
Copy link
Member

GUI commented Jan 4, 2017

@coobr01: Since Persona recently shut down, you'd need to setup one of the other login options. However, if you're just interested in testing, see #323 for a potential workaround. (However, we're also working on a local login option to make this easier in the next release.)

@coobr01
Copy link

coobr01 commented Jan 4, 2017

Thanks, that worked. The app_env: development parameter should probably be added to the setup section at https://api-umbrella.readthedocs.io/en/latest/getting-started.html#setup. I only say that because the default "initial_superusers" parameters don't seem to work at the moment.

@GUI GUI added this to the v0.14.0 milestone Feb 6, 2017
@GUI
Copy link
Member

GUI commented Feb 23, 2017

v0.14.0 is released with a local login option, which should make this setup easier.

@GUI GUI closed this as completed Feb 23, 2017
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

5 participants