Comments (5)
you can select one of the claims from the TokenKeys list and use it with your revoker: https://github.com/devopsfaith/krakend-playground/blob/master/jwt-revoker/main.go#L15
once that key is defined, every input will have that key prepended before passing it to the BF
subject := *key + "-" + r.FormValue(*key)
from playground-community.
hi, @flashart92
the line
krakend_ce_1 | [KRAKEND] 2021/05/05 - 07:44:52.363 ▶ ERROR Couldn't register krakend-bf:1234 in consul: unable to create the consul client: no config
is telling you that the BF endpoint from the gateway can't be registered in consul because there is no config available, but nothing more: the BF component can be used without registering it into consul.
the jwk_revoke service is independent and should be listening at http://localhost:9000
cheers!
from playground-community.
In the krakend.json file I have a setting
"github_com/devopsfaith/bloomfilter": {
"N": 10000000,
"P": 0.0000001,
"HashName": "optimal",
"TTL": 1500,
"port": 1234,
"TokenKeys": [
"sub",
"did",
"aud"
]
}
}
In my case, there is no jti parameter in tokens. Please tell me how to block a token in my case?
from playground-community.
you can select one of the claims from the TokenKeys list and use it with your revoker: https://github.com/devopsfaith/krakend-playground/blob/master/jwt-revoker/main.go#L15
once that key is defined, every input will have that key prepended before passing it to the BF
subject := *key + "-" + r.FormValue(*key)
it worked, thank you so much!
from playground-community.
This issue was marked as resolved a long time ago and now has been automatically locked as there has not been any recent activity after it. You can still open a new issue and reference this link.
from playground-community.
Related Issues (20)
- ERROR writing to influx: {"code":"unauthorized","message":"unauthorized access"} HOT 1
- kid header is required by the JWT validator HOT 2
- env variables in krakend.json failing it to load in KrakenDesigner HOT 3
- simple pass thru of index.html swagger endpoint HOT 2
- Can we return a flat list for collection? HOT 2
- "target" : feature not working HOT 2
- Expired certificate HOT 4
- Web Client throws 'Uncaught ReferenceError: auth0 is not defined' on browser console HOT 2
- => ERROR [fake_api 1/1] FROM docker.io/jaxgeller/lwan@sha256:f7e799638df21fa6e0bc7b6e1b4937b1fbefdf0cad772ef318d5477c446feb63 HOT 2
- Unable to build with flexible configuration HOT 3
- CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin'
- Nothing at http://localhost:8080/demo HOT 3
- POST - request body doesnt propagate to backend. HOT 2
- docker compose breacks
- How to read krakend.json file as remote? HOT 2
- Does not work on arm64 MacOS HOT 2
- Add Encryption decryption to APIs
- npm ERR during installation! An error occurs. HOT 2
- impossible to login to :8080 HOT 2
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 playground-community.