mirror of
https://github.com/hpd840321/craftlabs-authorization-sdk.git
synced 2026-06-09 10:00:30 +08:00
feat(i7): async webhook delivery queue, OPS RBAC, UI role routing; docs and runbook
- Architect: I7_DESIGN.md, I7_IMPLEMENTATION_REVIEW.md; parallel index + track B - Backend: @EnableMethodSecurity; OPS login; CallbackInbox PreAuthorize; IntegrationCatalog triple role - Webhook: V2 webhook_platform_delivery; planner + scheduler + single-shot forwarder; tests - Frontend: Pinia hasAnyRole; MainLayout/HomeView/router for OPS vs dev - Runbook §10.5 delivery config Made-with: Cursor
This commit is contained in:
@@ -9,6 +9,15 @@ export const useAuthStore = defineStore("auth", {
|
||||
displayName: "",
|
||||
roles: [],
|
||||
}),
|
||||
getters: {
|
||||
hasAnyRole: (state) => {
|
||||
return (roleList) => {
|
||||
const need = roleList || [];
|
||||
const have = state.roles || [];
|
||||
return need.some((r) => have.includes(r));
|
||||
};
|
||||
},
|
||||
},
|
||||
actions: {
|
||||
async login(username, password) {
|
||||
const { data } = await axios.post("/api/v1/auth/login", { username, password });
|
||||
|
||||
Reference in New Issue
Block a user