Comments (4)
Hello @danielwhatmuff, currently jwt-to-rbac doesn't handle jwt-s issued with github connector. This is on our roadmap, the next week we'll release it. #8
from jwt-to-rbac.
@danielwhatmuff thanks for your notice about typo, but it doesn't cause error due to defined struct use FederatedClaimas as well. I'll fix it.
jwt-to-rbac/pkg/tokenhandler/token_handler.go
Lines 33 to 36 in ba28d31
from jwt-to-rbac.
@danielwhatmuff you have to add federated:id to oauth2config scope in your auth app as well.
The jwt structure has to be like this:
{
"iss": "http://dex/dex",
"sub": "sub",
"aud": "example-app",
"exp": 1550864685,
"iat": 1550778285,
"at_hash": "hash",
"email": "[email protected]",
"email_verified": true,
"groups": [
"pokeorg",
"pokeorg:admin",
"pokeorg:developer"
],
"name": "Peter Balogh",
"federated_claims": {
"connector_id": "github",
"user_id": "userid"
}
}
from jwt-to-rbac.
Hello @danielwhatmuff, could you be so kind to take a try now. Readme updated as well:
https://github.com/banzaicloud/jwt-to-rbac#define-github-custom-roles-in-config
from jwt-to-rbac.
Related Issues (20)
- Broken dependency chain HOT 2
- Support for add rules only for certain namespaces
- Hot reload config and update RBAC rules
- Build failed because github.com/belogik/goes package isn't found.
- Automate docker image build. HOT 3
- Move chart into the project
- Use github actions
- Example to deploy and configure Dex as OpenID connect provider
- Changing log level and applying it with helm does not take an effect HOT 1
- Verify JWT with any OIDC provider HOT 2
- Document required user claims HOT 1
- The response for HTTP POST /rbac/ HOT 1
- Add openapi v3 spec HOT 1
- Leveraging SA token to access EKS cluster HOT 6
- Do not allow clients to set TTL for SA token HOT 2
- Validate id token on service account token request
- Hot reload of `customGroups` not working
- cant overwrite a clusterrolebinding
- Security Policy violation Branch Protection HOT 3
- useless replace usage in go.mod
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 jwt-to-rbac.