Hi,
 
(Here a newbie question again, sorry about that)
 
I would like clients of the platform to need authentification, for instance 
calling the SPARQL select web service.
My current client application is a simple .html page based on marmotta.js.
 
I did set the security profile to "restricted".
 
Than the security parameters concerning SPARQL select look like:

security.permission.sparql_query.methods: GET,POST,OPTIONS
security.permission.sparql_query.pattern: /sparql/select
security.permission.sparql_query.priority: 5
 
Here the calls to marmottaClient.sparqlClient.select() from my .html page still 
work as expected (and succeed).
 
Thus I did add a new value:
security.permission.sparql_query.roles: user
 
Now the calls to sparqlClient.select() do fail, as expected.
And the administration interfaces work well too.
 
But then, how can the client now specify the credential to access the platform ?
I haven't found any information about that in marmotta.js.
I did look for information in the forum, also without success.
 
I see now that the php and java clients implementation do provide 
"clientConfiguration" mechanism.
Is it just not implemented yet for the javascript client ? if so, I could 
implement it based on the java/php implementations.
 
Thank you for any hint
Fabian
 
 

Reply via email to