GithubHelp home page GithubHelp logo

Comments (4)

pbalogh-sa avatar pbalogh-sa commented on June 11, 2024

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.

pbalogh-sa avatar pbalogh-sa commented on June 11, 2024

@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.

type User struct {
Email string
Groups []string
FederatedClaimas FederatedClaims

from jwt-to-rbac.

pbalogh-sa avatar pbalogh-sa commented on June 11, 2024

@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.

pbalogh-sa avatar pbalogh-sa commented on June 11, 2024

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)

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.