Comments (7)
@kr1sp1n we should consider adding the followAllRedirects: true
request option by default, if it makes sense. I didn't do any research in this specific issue, but from my (somewhat limited) knowledge of the vault API, I think it wouldn't hurt to add this.
from node-vault.
@edasque - I ran across a similar issue. The way I solved the 3xx response was to pass the request options as a field. For example:
vault.githubLogin({
githubToken,
requestOptions: {
followAllRedirects: true
}
});
from node-vault.
i have same issue
i think that is not just redirect
cuz i think node-vault
is basically caller API of Vault and almost API need value of X-Vault-Token
in header but this value set only time call vault.auths()
i think it is easy way that fix in handleVaultResponse
function
check login url and if this request is login, set client.token
i will write example under
//that is regular expression to check url of login
if (/\/auth\/[^\/]+\/login/.test(response.request.uri.path)) {
client.token = response.body.auth.client_token;
}
but i dont sure that is right way 😕
from node-vault.
I was struggling with this problem with relating to approleLogin().
I was catching a 'Status 307' error and I'm really glad I found this page.
I completely agree that this should be set by default.
from node-vault.
Noted for v1.0
from node-vault.
@edasque @liambowers I think PR #93 may solve your problems. It is included since v0.9.3. Please check it out and give feedback. Thanks 🙏
from node-vault.
Stale issue, closing
from node-vault.
Related Issues (20)
- Missing 'rewrap' and 'keys' command HOT 1
- Use root token always get 404 response code HOT 3
- V2 KV engine support HOT 1
- Missing ldapLogin from index.d.ts HOT 2
- Missing certificate authentication mechanism HOT 1
- Add example of transit secret usage. HOT 1
- How to unseal a vault that is already initialized? HOT 2
- unable to write new secrets HOT 2
- Vault.write overwrite old secret to new HOT 1
- Vulnerability in request library HOT 2
- Update dependencies HOT 1
- Create npm deployment CI mechanism
- Next release inquiry HOT 2
- SSL Error After Upgrading Application To Node 18 HOT 4
- Add support for KV v2 "destroy" command
- Import error on index.d.ts HOT 2
- [Question] Generate certs
- How to create ACL Policy?
- Question - is there a way to read a versioned secret ?
- WARNING : node-vault > postman-request > [email protected]: this library is no longer supported
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 node-vault.