You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
after the account has been determined we need to fetch the roles the account has. should be a dedicated roles middleware.
open design question:
should we fetch all roles or can we reduce the scope by looking at the request destination / other properties? if subsequent services need to know about roles in other scopes they can fetch them themself?
The middleware fetches all role assignments for the authenticated user and mints their roleIDs into the x-access-token.
Services performing permission checks can then use the RoleManager from ocis-pkg to keep a self-updating local cache of those roles and run permission checks against that RoleManager.
The text was updated successfully, but these errors were encountered:
exalate-issue-syncbot
changed the title
fetch roles from the ocis-setting service
add proxy middleware to fetch user roles for the token context
Jul 20, 2020
after the account has been determined we need to fetch the roles the account has. should be a dedicated roles middleware.
open design question:
Open PR: owncloud/ocis-proxy#70
Current Implementation
The middleware fetches all role assignments for the authenticated user and mints their roleIDs into the
x-access-token
.Services performing permission checks can then use the RoleManager from ocis-pkg to keep a self-updating local cache of those roles and run permission checks against that RoleManager.
The text was updated successfully, but these errors were encountered: