-
Notifications
You must be signed in to change notification settings - Fork 111
Auth via env broken? #135
Comments
Can you confirm which version of this library you are using? I'd also check the following before you run the server:
|
I printed them out during debugging via console.log, and they were present. Also, I believe it throws a different error when they aren't. The API key and secret are still valid:
|
Could you try deleting the |
No change. |
I am using the environment variables fine with |
Thanks for the update. I'm still trying to find a way to reproduce this problem. Could you share your entire package tree as a gist? I want to ensure that we don't have any rouge stormpath dependencies that are getting inadvertently required. |
I think this has to do with the new way that configuration is being loaded. I'll look into this right away. According to the error an API key is being provided somewhere, but when used, authentication fails. This is currently the order in which API keys are being loaded. Notice that as keys are being loaded, they overwrite any previously loaded keys.
So it sounds as if you have some other file along the way that are overwriting the keys that you have in your environment. Can you check that you don't have any of the files as in the list above (step 2-5)? |
it seems strange to me that the environment is the bottom of the heap. I would have expected it to override all the files (except 6). |
I agree with @erbridge , I think that the environment variables should override everything except 6 |
Just waiting for a new SDK version then we'll be able to close this. |
Closing issue since it should have been resolved around 15th of October. |
I've been trying to use this as specified in the readme, ie. storing the auth details in the environment like:
But I get:
However, when I (finally) noticed that the following way was supported as well, i tried it out (with the same auth details) and it worked instantly:
The text was updated successfully, but these errors were encountered: