-
Notifications
You must be signed in to change notification settings - Fork 327
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
How to access admin auth token and API key? #135
Comments
I am guessing you created the admin account in question using the api-umbrella.yml initial_superusers functionality? @GUI It appears that this feature does not assign an authorization token to the admins that it creates, so there is none to be displayed in the admin console. I suspect this is a bug. When the admin console was enhanced to add this functionality, the router wasn't updated accordingly to generate an authorization token for these users when they are created via this path. In any case, in the mean time, if you create a new admin user from the web console, they will be assigned an authorization key. Unfortunately, you can't delete and recreate your admin users without resorting to the mongo shell and Rails console. |
@darylrobbins yes, I created my superuser via the yaml configuration file. @GUI is there a way to generate the authorization token(s) for the existing superusers? I don't want to set up a new email account, since we are using third party authentication sources. |
Unfortunately, the only way to rectify the issue at the moment is through the backend. You are going to have to connect using Mongo shell to your MongoDB.
Good luck! Correction: My original post had an error in step 5, the collection is named admins, not admin_users. This has now been corrected above. Sorry for the inconvenience. |
This does sound like a bug for admin accounts created via the |
@GUI any status update on this issue? |
I would also like to know what is the situation with this? Getting started with Admin API should be easier. Where I find admin user & password for mongo client after Umbrella 0.8.0.deb install? Or should authentication be configured for mongo after installation? |
Ok. Looks like there's no authentication initially so |
@GUI, any status update? We are still not able to get the auth token for the first Superuser account. Will this be fixed in an upcoming release? |
Ah, sorry for dropping the ball on this! I had fixed this while visiting in September: NREL/api-umbrella-router@fa10065 But it looks like there were actually two issues for this (#95), and I didn't see this one to update. So this will be part of the next package release, which I'm hoping to finally get pushed out soon (I'm aiming for this weekend, but it might be 1-2 weeks). |
@GUI, any status update on the 0.9 release? Our new developers are still struggling with this bug. |
Sorry about that. I believe we should have new packages published tomorrow. |
I've discovered that #192 (comment) is still an issue in the new stack. Since that impacts initial installations, I'd really like to get that fixed before releasing the new stable packages. That unfortunately means it's going to push the new package release out a couple more days. Sorry! I'll aim to get something release Friday, but apologies for the delays! |
v0.9 was released Friday, which should solve this issue. |
The documentation states:
However, when following those instructions from a superuser account, I do not see an auth token on the "My Account" page.
How do I access my auth token and admin API key?
The text was updated successfully, but these errors were encountered: