-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy pathpluginAuth.html
More file actions
19 lines (18 loc) · 1.62 KB
/
pluginAuth.html
File metadata and controls
19 lines (18 loc) · 1.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
---
layout: default
title: Plugins | Authentication
section: pluginAuth
path: docs/pluginAuth.html
---
<h1 class="ui dividing header">
Plugins: Authentication
</h1>
<p>
LD-R provides a plugin for authentication and user access control. Since LD-R stores users as resources in the triple store, you need to first insert user's data into your data store under a graph name. You then need to set this dataset URI as <span class="ui label">authDatasetURI</span> in your general.js config file. There is already a sample schema available for admin user at <a href="https://github.com/ali1k/ld-r/blob/master/plugins/authentication/schema/users.ttl"><span class="ui label">plugins/authentication/schema/users.ttl</span></a> that can be used. To enable user authentication, you need to set the value for <span class="ui label">enableAuthentication</span> to '1'. You can also setup <span class="ui label">enableUserConfirmation</span> to control user confirmation after registration. Each registered user will create a new resource which can be viewed, browsed and edited like other resources in the system.
</p>
<p>
LD-R defines a view and edit access strategy for users. Access levels are based on the scopes defined for reactors. A Super user will have access to all levels and can configure which user has view/edit access to which level (e.g. User X can only edit dataset D1 or User Y can only edit Resource R or User Z can only edit Property P1 in Resource R1). The following figure depicts these user access levels:
</p>
<div>
<img class="ui centered image" src="/assets/img/userAccessLevels.jpg" alt="ld-reactor access levels" />
</div>