Giter VIP home page Giter VIP logo

Comments (5)

kpacha avatar kpacha commented on August 20, 2024 1

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.

kpacha avatar kpacha commented on August 20, 2024

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.

flashart92 avatar flashart92 commented on August 20, 2024

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.

flashart92 avatar flashart92 commented on August 20, 2024

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.

github-actions avatar github-actions commented on August 20, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.