authcrunch / authcrunch.github.io

Documentation for Caddy v2 Auth Portal and Authorize Plugins.
77 stars 32 forks source link

oauth userinfo groups and roles #19

Open greenpau opened 2 years ago

greenpau commented 2 years ago

If userinfo contains field that ends either with groups or roles, then extract the values to roles.

  "roles": [
    "authp/admin",
    "authp/user"
  ],
  "sub": "00ua6qak3pEYegVb24x6",
  "userinfo": {
    "name": "Paul Greenberg",
    "zoneinfo": "America/Los_Angeles"
  }
}