Comments (12)
Oh, good call. I missed that while adding that feature. Will do soon.
from onetimesecret.
Just tried it out - WFM. Thanks.
from onetimesecret.
Is this API enabled on the live site?
Just tried it and i'm getting a 404.
from onetimesecret.
@chelnak Are you trying with the secret key or the private key? It's only works with the private key so that only the person that created the secret can burn it.
from onetimesecret.
from onetimesecret.
That's the one yeah.
from onetimesecret.
@delano Did some more testing this morning. The 404 happens when you try and burn a secret that has a passphrase.
Works fine when burning a secret without one.
from onetimesecret.
@chelnak Ah interesting. Thanks for the details. I need to think on this for a bit to sort what the right approach is for this case.
from onetimesecret.
@delano Thank you for adding Burn API call.
But, I have an issue. Docs say that return values are the same as Get Metadata request, which isn't quite true: you include actual Metadata-request-like data in state field of response, which's.. well, i guess not really predictable.
from onetimesecret.
As you are thinking about this, could you also think about or answer why the result from using the burn
api call results in a non-flat JSON response, as in:
{
"state": {
"custid": "anon",
"metadata_key": "m212lw3mqmfy21t62jeswmi940yvfkz",
"secret_key": "",
"ttl": 604800,
"metadata_ttl": 604800,
"secret_ttl": 604800,
"state": "burned",
"updated": 1493922248,
"created": 1493922227,
"recipient": []
},
"secret_shortkey": "j96kga"
}
from onetimesecret.
Ha, just an oversight on my part. Thanks for the heads up.
from onetimesecret.
It still not works. Any solution?
from onetimesecret.
Related Issues (20)
- Introduce a setting to automatically burn secrets after a specified number of unsuccessful attempts. HOT 1
- Replace generic StandardError rescues
- Install Renovatebot to help manage dependencies. HOT 4
- Dockerhub account? HOT 6
- Review to add type hints
- Fix for Rubygems version in Ruby workflow
- the api not work HOT 7
- Re-add remove account button
- Better DX for deploying via docker image
- Migrate to new VM HOT 9
- Setting REDIS_URI without 'redis://' scheme leads to exception on load
- where can I change the length generate random password HOT 1
- Images and icons not showing p.2 HOT 4
- Cannot normalize nothing on docker build HOT 4
- Docker Build V0.13.0-RC6 Verification Email not being sent.
- wrong version of `uri-redis` in `Gemfile.lock`
- re: renovatebot install HOT 2
- Dependency Dashboard
- v0.13.0-RC7: undefined method `register_scheme' for URI:Module (NoMethodError) HOT 3
- Add config check at start-time
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 onetimesecret.