Comments (7)
Hi Radley,
Thanks for reporting this.
I have looked into it and I don't see any issue with the first thing that you mentioned. Binding there seems fine. But the second one was clearly wrong and the expanded home directory wasn't even used. So even though we expanded it, we were still used the original path.
I have fixed this and will soon create a PR for review/release.
A quick question, what OS are you using?
from stormpath-node-config.
Im using OSX El Capitan 10.11.2
I also pulled down the new file and tried using it. I'm still getting an error that API key ID and secret is required. I have put some logs in checking the state of the original file path and the expanded file path. Here are their results:
original: ~/.stormpath/stormpath.json
expanded: /Users/MY_USERNAME/.stormpath/stormpath.json
original: ~/.stormpath/stormpath.yml
expanded: /Users/MY_USERNAME/.stormpath/stormpath.yml
original: /Users/MY_USERNAME/workspace/MY_APP/stormpath.json
expanded: /Users/MY_USERNAME/workspace/MY_APP/stormpath.json
original: /Users/MY_USERNAME/workspace/MY_APP/stormpath.yml
expanded: /Users/MY_USERNAME/workspace/MY_APP/stormpath.yml
currently my YAML file resides here /Users/MY_USERNAME/workspace/MY_APP/stormpath.yml. (which would show that the final instance of the expandedDir being correct.)
Could multiple trips through the process be affecting the result?
I get that it's going through the various steps in checking where the file could be located, I'm just wondering.
side note: I've tried saving it as both .yaml and .yml file, neither are working
from stormpath-node-config.
I am noticing that the strategies are called with a config parameter, but this seems to be just a default object. Like when ValidateClientConfigStrategy is called, it has a fleshed out object, but the values like client.apiKey are null
from stormpath-node-config.
Nvm, it works thanks!
from stormpath-node-config.
Did you get it to work? Was it because of permissions to the file?
from stormpath-node-config.
It's working. I wrote the yaml without spaces between the colon and the value so it was getting parsed incorrectly. Really sorry about this. :\
from stormpath-node-config.
No problem! Good to hear that you solved it! :) Closing this issue now.
from stormpath-node-config.
Related Issues (17)
- Throw invalid config if `web.register.autoLogin` is true, while email verification is enabled HOT 1
- "TypeError: undefined is not a function" if no default account store HOT 3
- method are removed from cacheOptions.client HOT 2
- Urgent: Don't Depend on HOME Being Set
- ~/.stormpath/apiKey.properties is not loaded HOT 1
- Add ability to debug loading process HOT 1
- Configuration is cleared when an empty apiKey.properties file is used
- Unable to find apiKey.properties file when ~ is used
- Add support for stormpath.web.social config options HOT 2
- Fix array merging issues for web.produces
- Validate that web.spa.view is not null, if web.spa is enabled
- Add ability to disable social provider
- skipRemoteConfig Necessary? HOT 2
- postLoginHandler returns old data HOT 5
- Bug in Loading Strategies HOT 5
- cannot read property 'getGroup' of undefined. HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stormpath-node-config.