在現實生活中,使用者的權限必須與情境有所關係,例如時間、位置或其他等等。我們在本篇以情境角色-RBAC模型來實作具有情境的以角色為主的權限控管。並且由資料庫主動產生觸發,把符合時間情境角色的情境角色啟動,而使用者在登入系統後再依空間情境角色去啟動符合的情境角色。讓時間情境角色去自動被啟動。並且實作出一個系統,來呈現出一般權限與情境權限在不同的情境下,使用者可以擁有哪些權限;並且在情境發生改變時,使用者的情境權限可以跟著作改變。
In real world, a user’s permission may be associated with contexts, such as time, location, or others. We use Context Role-RBAC model to implement the concept of context in RBAC. Database will trigger events actively. Database can activate context roles according to the temporal constraints of context roles. The spatial context is dealt after the user logins. The temporal context roles are assigned automatically. A system was implemented to show the normal permission and context permission of a user in different context. While context changes, a user’s context permissions will be updated too.