MadAppGang / identifo

Universal authentication framework for web, created with go

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Identifo Admin: Casbin authorization UI update doesn't work

kazemisoroush opened this issue · comments

This is an issue with the admin panel.

When I try to populate the Casbin authorization model for the application, it doesn't send the policy with the API call. Haven't checked the API but there is definitely an issue with the UI so far. Please have a look at this video:

https://www.loom.com/share/f0d5f99452684687b610c5bc171273e3

{
    "id": "_ID_",
    "secret": "secret",
    "active": true,
    "name": "SYSTEM",
    "description": "SYSTEM DESCRIPTION",
    "type": "web",
    "redirect_urls": [
        "https://domain.com"
    ],
    "tfa_status": "mandaroty",
    "debug_tfa_code": "1234",
    "registration_forbidden": true,
    "authorization_way": "internal",
    "authorization_model": "[request_definition]\nr = sub, obj, act\n\n[policy_definition]\np = sub, obj, act\n\n[policy_effect]\ne = some(where (p.eft == allow))\n\n[matchers]\nm = r.sub == p.sub && r.obj == p.obj && r.act == p.act || r.sub == \"root\"",
    "roles_whitelist": [
        "admin",
        "fleet_manager",
        "asset_manager"
    ],
    "new_user_default_role": "fleet_manager",
    "token_payload_service_plugin_settings": {},
    "token_payload_service_http_settings": {},
    "authorization_policy": "" ---->> THIS VALUE IS NOT BEING SET BY THE UI
}

Just wanted to confirm that if I manually store the authorization_policy value it will be visible on the UI page.
image