Panda team is developing a Web application to change the configuration of Ivy server. We are creating the login step, so that just the Ivy Admin can access our page. Could you please tell us how to authenticate with the Ivy Administrator account (like the picture at the bottom) Panda team tried to do :
The result is we just can login with the accounts (IUser) of our application, not the account to manage the server. Please help us. Thank you very much asked 15.01.2014 at 11:10 anphunl |
You can make any user of an application a system administrator by granting him all permissions of the system security descriptor type on the system security descriptor. See SystemAdminMaker.java file below for more details. Note the class uses NON Public API and will therefore break in future releases of Xpert.ivy! SystemAdminMaker.java:
answered 17.01.2014 at 16:29 Reto Weiss ♦♦ Hi Reto Weiss, Thank you very much for your answer. Actually, our problem is not the permission to access the server's information. We are doing like that : public static List<ienvironment> getEnvironmentList(final IApplication application) throws Exception { return SecurityManagerFactory.getSecurityManager().executeAsSystem(new Callable<list<ienvironment>>() {
Now the problem is how can the admin of ivy server log in to our application? Regards, Phu Nguyen
(20.01.2014 at 05:41)
anphunl
1
Hi Phu I know that my answers is not was you have asked. But it is not a good idea to login a system administrator to your application. This is because a system administrator is in fact a user of the "system" application in Xpert.ivy. Because applications are strictly divided it is not possible to login a user of one application to another application. What the code does that I have written in the answer is to give a user of your application the same rights that also the system administrator have. Therefore it turns a user of your application into a system administrator.
(20.01.2014 at 09:00)
Reto Weiss ♦♦
Hi Phu It is also possible to grant the system administrator rights to a role of your application. In this case every user that owns the role automatically inherits the system administrator rights from the role.
(20.01.2014 at 09:01)
Reto Weiss ♦♦
Hi Reto Weiss, Thank you very much. We will use the users in our application and grant them the needed permission. Best regards, Phu Nguyen
(20.01.2014 at 09:03)
anphunl
|
Once you sign in you will be able to subscribe for any updates here
By RSS:Markdown Basics
Tags:
Asked: 15.01.2014 at 11:10
Seen: 3,239 times
Last updated: 20.01.2014 at 09:03
Can you explain me the use case you want to solve by authenticate a system administrator in your application? I may can help you better if I know the root cause of your question.
Hi Reto Weiss, Thanks for your comment, I updated my question. Could you please take a look?