How to give permission to web/json/console/app/(*:appId)/(~:version)/datalist/list?

Confluence User - 08 Oct, 2018

Hi.

 

How to give permission to web/json/console/app/(*:appId)/(~:version)/datalist/list so that everyone can access. Current user role for this datalist is only Admin. i want this api can be access to all user.

datalists

7


08 Oct, 2018
confluenceUser
confluenceUser

Hey there izzat,

As long as the JSON authentication uses the Admin credentials, it is completely up to you on how to handle the JSON output to display to end users.

Hope this clarifies.

08 Oct, 2018
confluenceUser
confluenceUser

if i use ajax and add Authenticate by Passing Parameters like below, if i refresh the tab, why the user change from user1 to admin? <script> $(document).ready(function(){ $.ajax({ type: "POST", url: 'http://localhost:8080/jw/web/json/workflow/assignment/list/pending';, data: { j_username : 'admin', j_password : 'admin' }, success: function(res) { console.log(res) }, dataType: "json" }); }); </script>

08 Oct, 2018
confluenceUser
confluenceUser

I use the Master login method, i append "?j_username=admin&j_password=admin&loginAs=cat" to my url. Why the app redirect me to page login?

08 Oct, 2018
confluenceUser
confluenceUser

if i add "?j_username=admin&j_password=admin&loginAs=cat" to my url like this "/jw/web/json/data/list/inspektoratBangunan/listJadual" , why app redirect me to the login page?

09 Oct, 2018
confluenceUser
confluenceUser

Hey izzat, how did you test the script above? The user will change if this is tested via browser dev tool or in browser URL directly, since the browser will retain its session. By using tools such as JSON Tool, it does not retain the session.

09 Oct, 2018
confluenceUser
confluenceUser

Hi justin, i test my api by using browser URL directly. it redirect me to login page. how can i use my api?

09 Oct, 2018
confluenceUser
confluenceUser

By testing that way, it will change the logged in user. Try testing by running it in runtime instead.

RELATED QUESTIONS

Your answer


To answer a question you'll need an account.

Print