From 4ab1af35cbaae77091375785d211b761d9b70650 Mon Sep 17 00:00:00 2001 From: MCatherine Date: Tue, 9 Jan 2024 17:28:31 -0800 Subject: [PATCH] feat: #921 add first and last name to user verification identity card (#1112) --- client-code-gen/app-access-control-openapi.json | 2 +- .../model/idim-proxy-idir-info.ts | 8 +++++++- .../components/grantaccess/UserIdentityCard.vue | 14 +++++++++----- server/backend/api/app/schemas.py | 10 ++++++---- .../testspg/crud/test_idim_proxy_service.py | 3 ++- .../testspg/router/test_router_idim_proxy.py | 4 ++++ 6 files changed, 29 insertions(+), 12 deletions(-) diff --git a/client-code-gen/app-access-control-openapi.json b/client-code-gen/app-access-control-openapi.json index 28b6256da..cd9030a6b 100644 --- a/client-code-gen/app-access-control-openapi.json +++ b/client-code-gen/app-access-control-openapi.json @@ -1 +1 @@ -{"openapi":"3.0.3","info":{"title":"Forest Access Management - FAM - API","description":"\nForest Access Management API used by the Forest Access Management application\nto Define who has access to what apps, and what roles they will operate under\n once access is granted.\n","contact":{"name":"Guy Lafleur","url":"https://en.wikipedia.org/wiki/Guy_Lafleur","email":"guy.lafleur@montreal.canadians.ca"},"license":{"name":"Apache 2.0","url":"https://www.apache.org/licenses/LICENSE-2.0.html"},"version":"0.0.1"},"paths":{"/fam_applications":{"get":{"tags":["FAM Applications"],"summary":"Get Applications","description":"List of different applications that are administered by FAM","operationId":"get_applications","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/FamApplication"},"type":"array","title":"Response Get Applications"}}}}},"security":[{"6jfveou69mgford233or30hmta":[]}]}},"/fam_applications/{application_id}/fam_roles":{"get":{"tags":["FAM Applications"],"summary":"Get Fam Application Roles","description":"gets the roles associated with an application\n\n:param application_id: application id\n:param db: database session, defaults to Depends(database.get_db)","operationId":"get_fam_application_roles","security":[{"6jfveou69mgford233or30hmta":[]}],"parameters":[{"name":"application_id","in":"path","required":true,"schema":{"type":"integer","title":"Application Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/FamApplicationRole"},"title":"Response Get Fam Application Roles"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/fam_applications/{application_id}/user_role_assignment":{"get":{"tags":["FAM Applications"],"summary":"Get Fam Application User Role Assignment","description":"gets the roles associated with an application\n\n:param application_id: application id\n:param db: database session, defaults to Depends(database.get_db)","operationId":"get_fam_application_user_role_assignment","security":[{"6jfveou69mgford233or30hmta":[]}],"parameters":[{"name":"application_id","in":"path","required":true,"schema":{"type":"integer","title":"Application Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/FamApplicationUserRoleAssignmentGet"},"title":"Response Get Fam Application User Role Assignment"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/user_role_assignment":{"post":{"tags":["FAM User Role Assignment"],"summary":"Create User Role Assignment","description":"Create FAM user_role_xref association.","operationId":"create_user_role_assignment","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FamUserRoleAssignmentCreate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FamUserRoleAssignmentGet"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"6jfveou69mgford233or30hmta":[]}]}},"/user_role_assignment/{user_role_xref_id}":{"delete":{"tags":["FAM User Role Assignment"],"summary":"Delete User Role Assignment","description":"Delete FAM user_role_xref association.","operationId":"delete_user_role_assignment","security":[{"6jfveou69mgford233or30hmta":[]}],"parameters":[{"name":"user_role_xref_id","in":"path","required":true,"schema":{"type":"integer","title":"User Role Xref Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/forest_clients/search":{"get":{"tags":["FAM Forest Clients"],"summary":"Search","description":"Forest Client(s) search (by defined query parameter(s)).\n\nparam: 'client_number=[query_value]'\n Note! Current Forest Client API limits it to exact search for a whole 8-digits number.\n\nreturn: List of found FamForestClient. However, currently only 1 exact match returns.","operationId":"search","security":[{"6jfveou69mgford233or30hmta":[]}],"parameters":[{"name":"client_number","in":"query","required":true,"schema":{"type":"string","minLength":3,"maxLength":8,"title":"Client Number"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/FamForestClient"},"title":"Response Search"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/identity_search/idir":{"get":{"tags":["IDIR/BCeID Proxy"],"summary":"Idir Search","operationId":"idir_search","security":[{"6jfveou69mgford233or30hmta":[]}],"parameters":[{"name":"user_id","in":"query","required":true,"schema":{"type":"string","maxLength":20,"title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IdimProxyIdirInfo"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/bcsc/token/dev":{"post":{"tags":["BCSC Proxy"],"summary":"Bcsc Token Dev","operationId":"bcsc_token_dev","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/bcsc/token/test":{"post":{"tags":["BCSC Proxy"],"summary":"Bcsc Token Test","operationId":"bcsc_token_test","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/bcsc/token/prod":{"post":{"tags":["BCSC Proxy"],"summary":"Bcsc Token Prod","operationId":"bcsc_token_prod","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/bcsc/userinfo/dev":{"get":{"tags":["BCSC Proxy"],"summary":"Bcsc Userinfo Dev","operationId":"bcsc_userinfo_dev","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/bcsc/userinfo/test":{"get":{"tags":["BCSC Proxy"],"summary":"Bcsc Userinfo Test","operationId":"bcsc_userinfo_test","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/bcsc/userinfo/prod":{"get":{"tags":["BCSC Proxy"],"summary":"Bcsc Userinfo Prod","operationId":"bcsc_userinfo_prod","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/bcsc/jwks.json":{"get":{"tags":["BCSC Proxy"],"summary":"Bcsc Jwks","operationId":"bcsc_jwks","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/smoke_test":{"get":{"tags":["Smoke Test"],"summary":"Smoke Test","description":"List of different applications that are administered by FAM","operationId":"smoke_test","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}}},"components":{"schemas":{"AppEnv":{"type":"string","enum":["DEV","TEST","PROD"],"title":"AppEnv"},"FamApplication":{"properties":{"application_name":{"type":"string","maxLength":100,"title":"Application Name"},"application_description":{"type":"string","maxLength":200,"title":"Application Description"},"application_client_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Application Client Id"},"app_environment":{"anyOf":[{"$ref":"#/components/schemas/AppEnv"},{"type":"null"}]},"application_id":{"type":"integer","title":"Application Id"},"create_user":{"type":"string","maxLength":60,"title":"Create User"},"create_date":{"type":"string","format":"date-time","title":"Create Date"},"update_user":{"anyOf":[{"type":"string","maxLength":60},{"type":"null"}],"title":"Update User"},"update_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Update Date"}},"type":"object","required":["application_name","application_description","application_id","create_user","create_date"],"title":"FamApplication"},"FamApplicationRole":{"properties":{"role_name":{"type":"string","maxLength":100,"title":"Role Name"},"role_purpose":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Role Purpose"},"parent_role_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Reference role_id to higher role"},"application_id":{"type":"integer","title":"Application this role is associated with"},"forest_client_number":{"anyOf":[{"type":"string","maxLength":8},{"type":"null"}],"title":"Forest Client this role is associated with"},"create_user":{"type":"string","maxLength":60,"title":"Create User"},"role_type_code":{"$ref":"#/components/schemas/RoleType"},"client_number":{"anyOf":[{"$ref":"#/components/schemas/FamForestClientCreate"},{"type":"null"}]},"role_id":{"type":"integer","title":"Role Id"}},"type":"object","required":["role_name","application_id","create_user","role_type_code","role_id"],"title":"FamApplicationRole"},"FamApplicationUserRoleAssignmentGet":{"properties":{"user_role_xref_id":{"type":"integer","title":"User Role Xref Id"},"user_id":{"type":"integer","title":"User Id"},"role_id":{"type":"integer","title":"Role Id"},"application_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Application Id"},"user":{"$ref":"#/components/schemas/FamUserOnlyName"},"role":{"$ref":"#/components/schemas/FamRoleWithClient"}},"type":"object","required":["user_role_xref_id","user_id","role_id","user","role"],"title":"FamApplicationUserRoleAssignmentGet"},"FamForestClient":{"properties":{"client_name":{"anyOf":[{"type":"string","maxLength":60},{"type":"null"}],"title":"Client Name"},"forest_client_number":{"type":"string","maxLength":8,"title":"Forest Client Number"},"status":{"anyOf":[{"$ref":"#/components/schemas/FamForestClientStatus"},{"type":"null"}]}},"type":"object","required":["forest_client_number"],"title":"FamForestClient"},"FamForestClientCreate":{"properties":{"forest_client_number":{"type":"string","maxLength":8,"title":"Forest Client Number"},"create_user":{"type":"string","maxLength":60,"title":"Create User"}},"type":"object","required":["forest_client_number","create_user"],"title":"FamForestClientCreate"},"FamForestClientStatus":{"properties":{"status_code":{"$ref":"#/components/schemas/FamForestClientStatusType"},"description":{"type":"string","maxLength":10,"title":"Description"}},"type":"object","required":["status_code","description"],"title":"FamForestClientStatus"},"FamForestClientStatusType":{"type":"string","enum":["A","I"],"title":"FamForestClientStatusType"},"FamRoleMin":{"properties":{"role_name":{"type":"string","maxLength":100,"title":"Role Name"},"role_type_code":{"$ref":"#/components/schemas/RoleType"},"application_id":{"type":"integer","title":"Application Id"}},"type":"object","required":["role_name","role_type_code","application_id"],"title":"FamRoleMin"},"FamRoleWithClient":{"properties":{"role_name":{"type":"string","maxLength":100,"title":"Role Name"},"role_purpose":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Role Purpose"},"parent_role_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Reference role_id to higher role"},"application_id":{"type":"integer","title":"Application this role is associated with"},"forest_client_number":{"anyOf":[{"type":"string","maxLength":8},{"type":"null"}],"title":"Forest Client this role is associated with"},"create_user":{"type":"string","maxLength":60,"title":"Create User"},"role_type_code":{"$ref":"#/components/schemas/RoleType"},"client_number":{"anyOf":[{"$ref":"#/components/schemas/FamForestClient"},{"type":"null"}]},"role_id":{"type":"integer","title":"Role Id"},"parent_role":{"anyOf":[{"$ref":"#/components/schemas/FamRoleMin"},{"type":"null"}]}},"type":"object","required":["role_name","application_id","create_user","role_type_code","role_id"],"title":"FamRoleWithClient"},"FamUserOnlyName":{"properties":{"user_type_code":{"$ref":"#/components/schemas/UserType"},"cognito_user_id":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Cognito User Id"},"user_name":{"type":"string","maxLength":20,"title":"User Name"},"user_guid":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"User Guid"},"create_user":{"type":"string","maxLength":60,"title":"Create User"},"update_user":{"anyOf":[{"type":"string","maxLength":60},{"type":"null"}],"title":"Update User"},"user_type":{"$ref":"#/components/schemas/FamUserType"}},"type":"object","required":["user_type_code","user_name","create_user","user_type"],"title":"FamUserOnlyName"},"FamUserRoleAssignmentCreate":{"properties":{"user_name":{"type":"string","maxLength":20,"minLength":3,"title":"User Name"},"user_type_code":{"$ref":"#/components/schemas/UserType"},"role_id":{"type":"integer","title":"Role Id"},"forest_client_number":{"anyOf":[{"type":"string","maxLength":8,"minLength":1},{"type":"null"}],"title":"Forest Client Number"}},"type":"object","required":["user_name","user_type_code","role_id"],"title":"FamUserRoleAssignmentCreate"},"FamUserRoleAssignmentGet":{"properties":{"user_role_xref_id":{"type":"integer","title":"User Role Xref Id"},"user_id":{"type":"integer","title":"User Id"},"role_id":{"type":"integer","title":"Role Id"},"application_id":{"type":"integer","title":"Application Id"}},"type":"object","required":["user_role_xref_id","user_id","role_id","application_id"],"title":"FamUserRoleAssignmentGet"},"FamUserType":{"properties":{"code":{"$ref":"#/components/schemas/UserType"},"description":{"type":"string","maxLength":35,"title":"Description"}},"type":"object","required":["code","description"],"title":"FamUserType"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"IdimProxyIdirInfo":{"properties":{"found":{"type":"boolean","title":"Found"},"userId":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"title":"Userid"},"displayName":{"anyOf":[{"type":"string","maxLength":50},{"type":"null"}],"title":"Displayname"}},"type":"object","required":["found"],"title":"IdimProxyIdirInfo"},"RoleType":{"type":"string","enum":["A","C"],"title":"RoleType"},"UserType":{"type":"string","enum":["I","B"],"title":"UserType"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}},"securitySchemes":{"6jfveou69mgford233or30hmta":{"type":"oauth2","flows":{"authorizationCode":{"scopes":{},"authorizationUrl":"https://dev-fam-user-pool-domain.auth.ca-central-1.amazoncognito.com/authorize","tokenUrl":"https://dev-fam-user-pool-domain.auth.ca-central-1.amazoncognito.com/token"}}}}},"tags":[{"name":"Forest Access Management - FAM","description":"Controls the user access to different Forest basedapplications and what roles different users will have once logged in"}]} \ No newline at end of file +{"openapi":"3.0.3","info":{"title":"Forest Access Management - FAM - API","description":"\nForest Access Management API used by the Forest Access Management application\nto Define who has access to what apps, and what roles they will operate under\n once access is granted.\n","contact":{"name":"Guy Lafleur","url":"https://en.wikipedia.org/wiki/Guy_Lafleur","email":"guy.lafleur@montreal.canadians.ca"},"license":{"name":"Apache 2.0","url":"https://www.apache.org/licenses/LICENSE-2.0.html"},"version":"0.0.1"},"paths":{"/fam_applications":{"get":{"tags":["FAM Applications"],"summary":"Get Applications","description":"List of different applications that are administered by FAM","operationId":"get_applications","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/FamApplication"},"type":"array","title":"Response Get Applications"}}}}},"security":[{"6jfveou69mgford233or30hmta":[]}]}},"/fam_applications/{application_id}/fam_roles":{"get":{"tags":["FAM Applications"],"summary":"Get Fam Application Roles","description":"gets the roles associated with an application\n\n:param application_id: application id\n:param db: database session, defaults to Depends(database.get_db)","operationId":"get_fam_application_roles","security":[{"6jfveou69mgford233or30hmta":[]}],"parameters":[{"name":"application_id","in":"path","required":true,"schema":{"type":"integer","title":"Application Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/FamApplicationRole"},"title":"Response Get Fam Application Roles"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/fam_applications/{application_id}/user_role_assignment":{"get":{"tags":["FAM Applications"],"summary":"Get Fam Application User Role Assignment","description":"gets the roles associated with an application\n\n:param application_id: application id\n:param db: database session, defaults to Depends(database.get_db)","operationId":"get_fam_application_user_role_assignment","security":[{"6jfveou69mgford233or30hmta":[]}],"parameters":[{"name":"application_id","in":"path","required":true,"schema":{"type":"integer","title":"Application Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/FamApplicationUserRoleAssignmentGet"},"title":"Response Get Fam Application User Role Assignment"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/user_role_assignment":{"post":{"tags":["FAM User Role Assignment"],"summary":"Create User Role Assignment","description":"Create FAM user_role_xref association.","operationId":"create_user_role_assignment","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FamUserRoleAssignmentCreate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FamUserRoleAssignmentGet"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"6jfveou69mgford233or30hmta":[]}]}},"/user_role_assignment/{user_role_xref_id}":{"delete":{"tags":["FAM User Role Assignment"],"summary":"Delete User Role Assignment","description":"Delete FAM user_role_xref association.","operationId":"delete_user_role_assignment","security":[{"6jfveou69mgford233or30hmta":[]}],"parameters":[{"name":"user_role_xref_id","in":"path","required":true,"schema":{"type":"integer","title":"User Role Xref Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/forest_clients/search":{"get":{"tags":["FAM Forest Clients"],"summary":"Search","description":"Forest Client(s) search (by defined query parameter(s)).\n\nparam: 'client_number=[query_value]'\n Note! Current Forest Client API limits it to exact search for a whole 8-digits number.\n\nreturn: List of found FamForestClient. However, currently only 1 exact match returns.","operationId":"search","security":[{"6jfveou69mgford233or30hmta":[]}],"parameters":[{"name":"client_number","in":"query","required":true,"schema":{"type":"string","minLength":3,"maxLength":8,"title":"Client Number"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/FamForestClient"},"title":"Response Search"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/identity_search/idir":{"get":{"tags":["IDIR/BCeID Proxy"],"summary":"Idir Search","operationId":"idir_search","security":[{"6jfveou69mgford233or30hmta":[]}],"parameters":[{"name":"user_id","in":"query","required":true,"schema":{"type":"string","maxLength":20,"title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IdimProxyIdirInfo"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/bcsc/token/dev":{"post":{"tags":["BCSC Proxy"],"summary":"Bcsc Token Dev","operationId":"bcsc_token_dev","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/bcsc/token/test":{"post":{"tags":["BCSC Proxy"],"summary":"Bcsc Token Test","operationId":"bcsc_token_test","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/bcsc/token/prod":{"post":{"tags":["BCSC Proxy"],"summary":"Bcsc Token Prod","operationId":"bcsc_token_prod","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/bcsc/userinfo/dev":{"get":{"tags":["BCSC Proxy"],"summary":"Bcsc Userinfo Dev","operationId":"bcsc_userinfo_dev","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/bcsc/userinfo/test":{"get":{"tags":["BCSC Proxy"],"summary":"Bcsc Userinfo Test","operationId":"bcsc_userinfo_test","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/bcsc/userinfo/prod":{"get":{"tags":["BCSC Proxy"],"summary":"Bcsc Userinfo Prod","operationId":"bcsc_userinfo_prod","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/bcsc/jwks.json":{"get":{"tags":["BCSC Proxy"],"summary":"Bcsc Jwks","operationId":"bcsc_jwks","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/smoke_test":{"get":{"tags":["Smoke Test"],"summary":"Smoke Test","description":"List of different applications that are administered by FAM","operationId":"smoke_test","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}}},"components":{"schemas":{"AppEnv":{"type":"string","enum":["DEV","TEST","PROD"],"title":"AppEnv"},"FamApplication":{"properties":{"application_name":{"type":"string","maxLength":100,"title":"Application Name"},"application_description":{"type":"string","maxLength":200,"title":"Application Description"},"application_client_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Application Client Id"},"app_environment":{"anyOf":[{"$ref":"#/components/schemas/AppEnv"},{"type":"null"}]},"application_id":{"type":"integer","title":"Application Id"},"create_user":{"type":"string","maxLength":60,"title":"Create User"},"create_date":{"type":"string","format":"date-time","title":"Create Date"},"update_user":{"anyOf":[{"type":"string","maxLength":60},{"type":"null"}],"title":"Update User"},"update_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Update Date"}},"type":"object","required":["application_name","application_description","application_id","create_user","create_date"],"title":"FamApplication"},"FamApplicationRole":{"properties":{"role_name":{"type":"string","maxLength":100,"title":"Role Name"},"role_purpose":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Role Purpose"},"parent_role_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Reference role_id to higher role"},"application_id":{"type":"integer","title":"Application this role is associated with"},"forest_client_number":{"anyOf":[{"type":"string","maxLength":8},{"type":"null"}],"title":"Forest Client this role is associated with"},"create_user":{"type":"string","maxLength":60,"title":"Create User"},"role_type_code":{"$ref":"#/components/schemas/RoleType"},"client_number":{"anyOf":[{"$ref":"#/components/schemas/FamForestClientCreate"},{"type":"null"}]},"role_id":{"type":"integer","title":"Role Id"}},"type":"object","required":["role_name","application_id","create_user","role_type_code","role_id"],"title":"FamApplicationRole"},"FamApplicationUserRoleAssignmentGet":{"properties":{"user_role_xref_id":{"type":"integer","title":"User Role Xref Id"},"user_id":{"type":"integer","title":"User Id"},"role_id":{"type":"integer","title":"Role Id"},"application_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Application Id"},"user":{"$ref":"#/components/schemas/FamUserOnlyName"},"role":{"$ref":"#/components/schemas/FamRoleWithClient"}},"type":"object","required":["user_role_xref_id","user_id","role_id","user","role"],"title":"FamApplicationUserRoleAssignmentGet"},"FamForestClient":{"properties":{"client_name":{"anyOf":[{"type":"string","maxLength":60},{"type":"null"}],"title":"Client Name"},"forest_client_number":{"type":"string","maxLength":8,"title":"Forest Client Number"},"status":{"anyOf":[{"$ref":"#/components/schemas/FamForestClientStatus"},{"type":"null"}]}},"type":"object","required":["forest_client_number"],"title":"FamForestClient"},"FamForestClientCreate":{"properties":{"forest_client_number":{"type":"string","maxLength":8,"title":"Forest Client Number"},"create_user":{"type":"string","maxLength":60,"title":"Create User"}},"type":"object","required":["forest_client_number","create_user"],"title":"FamForestClientCreate"},"FamForestClientStatus":{"properties":{"status_code":{"$ref":"#/components/schemas/FamForestClientStatusType"},"description":{"type":"string","maxLength":10,"title":"Description"}},"type":"object","required":["status_code","description"],"title":"FamForestClientStatus"},"FamForestClientStatusType":{"type":"string","enum":["A","I"],"title":"FamForestClientStatusType"},"FamRoleMin":{"properties":{"role_name":{"type":"string","maxLength":100,"title":"Role Name"},"role_type_code":{"$ref":"#/components/schemas/RoleType"},"application_id":{"type":"integer","title":"Application Id"}},"type":"object","required":["role_name","role_type_code","application_id"],"title":"FamRoleMin"},"FamRoleWithClient":{"properties":{"role_name":{"type":"string","maxLength":100,"title":"Role Name"},"role_purpose":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Role Purpose"},"parent_role_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Reference role_id to higher role"},"application_id":{"type":"integer","title":"Application this role is associated with"},"forest_client_number":{"anyOf":[{"type":"string","maxLength":8},{"type":"null"}],"title":"Forest Client this role is associated with"},"create_user":{"type":"string","maxLength":60,"title":"Create User"},"role_type_code":{"$ref":"#/components/schemas/RoleType"},"client_number":{"anyOf":[{"$ref":"#/components/schemas/FamForestClient"},{"type":"null"}]},"role_id":{"type":"integer","title":"Role Id"},"parent_role":{"anyOf":[{"$ref":"#/components/schemas/FamRoleMin"},{"type":"null"}]}},"type":"object","required":["role_name","application_id","create_user","role_type_code","role_id"],"title":"FamRoleWithClient"},"FamUserOnlyName":{"properties":{"user_type_code":{"$ref":"#/components/schemas/UserType"},"cognito_user_id":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Cognito User Id"},"user_name":{"type":"string","maxLength":20,"title":"User Name"},"user_guid":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"User Guid"},"create_user":{"type":"string","maxLength":60,"title":"Create User"},"update_user":{"anyOf":[{"type":"string","maxLength":60},{"type":"null"}],"title":"Update User"},"user_type":{"$ref":"#/components/schemas/FamUserType"}},"type":"object","required":["user_type_code","user_name","create_user","user_type"],"title":"FamUserOnlyName"},"FamUserRoleAssignmentCreate":{"properties":{"user_name":{"type":"string","maxLength":20,"minLength":3,"title":"User Name"},"user_type_code":{"$ref":"#/components/schemas/UserType"},"role_id":{"type":"integer","title":"Role Id"},"forest_client_number":{"anyOf":[{"type":"string","maxLength":8,"minLength":1},{"type":"null"}],"title":"Forest Client Number"}},"type":"object","required":["user_name","user_type_code","role_id"],"title":"FamUserRoleAssignmentCreate"},"FamUserRoleAssignmentGet":{"properties":{"user_role_xref_id":{"type":"integer","title":"User Role Xref Id"},"user_id":{"type":"integer","title":"User Id"},"role_id":{"type":"integer","title":"Role Id"},"application_id":{"type":"integer","title":"Application Id"}},"type":"object","required":["user_role_xref_id","user_id","role_id","application_id"],"title":"FamUserRoleAssignmentGet"},"FamUserType":{"properties":{"code":{"$ref":"#/components/schemas/UserType"},"description":{"type":"string","maxLength":35,"title":"Description"}},"type":"object","required":["code","description"],"title":"FamUserType"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"IdimProxyIdirInfo":{"properties":{"found":{"type":"boolean","title":"Found"},"userId":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"title":"Userid"},"firstName":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"title":"Firstname"},"lastName":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"title":"Lastname"}},"type":"object","required":["found"],"title":"IdimProxyIdirInfo"},"RoleType":{"type":"string","enum":["A","C"],"title":"RoleType"},"UserType":{"type":"string","enum":["I","B"],"title":"UserType"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}},"securitySchemes":{"6jfveou69mgford233or30hmta":{"type":"oauth2","flows":{"authorizationCode":{"scopes":{},"authorizationUrl":"https://dev-fam-user-pool-domain.auth.ca-central-1.amazoncognito.com/authorize","tokenUrl":"https://dev-fam-user-pool-domain.auth.ca-central-1.amazoncognito.com/token"}}}}},"tags":[{"name":"Forest Access Management - FAM","description":"Controls the user access to different Forest basedapplications and what roles different users will have once logged in"}]} \ No newline at end of file diff --git a/client-code-gen/gen/app-access-control-api/model/idim-proxy-idir-info.ts b/client-code-gen/gen/app-access-control-api/model/idim-proxy-idir-info.ts index a963f368b..241da4ce8 100644 --- a/client-code-gen/gen/app-access-control-api/model/idim-proxy-idir-info.ts +++ b/client-code-gen/gen/app-access-control-api/model/idim-proxy-idir-info.ts @@ -37,6 +37,12 @@ export interface IdimProxyIdirInfo { * @type {string} * @memberof IdimProxyIdirInfo */ - 'displayName'?: string | null; + 'firstName'?: string | null; + /** + * + * @type {string} + * @memberof IdimProxyIdirInfo + */ + 'lastName'?: string | null; } diff --git a/frontend/src/components/grantaccess/UserIdentityCard.vue b/frontend/src/components/grantaccess/UserIdentityCard.vue index 350f64720..bc083c0a3 100644 --- a/frontend/src/components/grantaccess/UserIdentityCard.vue +++ b/frontend/src/components/grantaccess/UserIdentityCard.vue @@ -26,13 +26,17 @@ const props = defineProps<{

Verified user information