• Welcome to KonaKart Community Forum. Please login or sign up.
 

Bypass Admin Login - Straight onto Product Panel

Started by jcm464, April 19, 2010, 09:15:15 am

Previous topic - Next topic

jcm464

Hi,

I would like to bypass the Admin Login panel and allow all registered users appart from admin@konakart.com direct access to the products panel.

So if I'm a konakart customer once I register I can access the products panel from the admin console. Idealy, I would like to give them access whitout the need of entering their user name and password.

Can you guys give me some direction on how to achieve this.

If this is not achievable I would like to maybe have the cat@konakart.com and password princess showing up on the login panel so the user simply needs to click submit. If I could at least automate this step it would be great so the system does the login in the background and the user accesses the product panel sraight on!

Thanking you in advance

julie

In the current version it is possible (because we do login behind the scenes for Liferay Integration) but it isn't obvious how to do it. In the next version we are introducing a servlet launcher where you'll be able to easily manage SSO and so obtain the functionality that you are looking for.

jcm464

Hi Julie,

Thank you for your prompt reply. Do you know were I can find the konakartadmin_welcome panel so I can try and achieve what I suggested in my last post i.e have the cat@konakart.com and password princess showing up on the login input fileds login panel so the user simply needs to click submit. If you have any ideas on how to automate this step it would be great so the system does the login in the background and the user accesses the product panel sraight on!

Thank you

julie

I'm afraid there is no welcome panel that you can edit. It's developed with Google GWT technology which generates java script.

jcm464

Hi Julie,

Thank you for your prompt reply! Can you give me a clue on how to go about it just like you guys do with Liferay. As you said we do login behind the scenes for Liferay Integration.

Thank you Julie!


julie

You need to edit the file KonakartAdmin.html under \KonaKart\webapps\konakartadmin by adding a few lines where you insert the user name. Under Liferay this file is generated dynamically in order to invoke the admin app.

<html>
   <head>
      <link rel='stylesheet' href='KonakartAdmin.css'>
      <title>KonaKart Admin Application</title>
      <meta name="Version" content="4.2.0.1">
      <meta name="Date" content="3:47PM 18-Jan-2010 GMT">
   </head>
   <body>
       <div id="nowloading" style="position:absolute;left:50%;top:50%"><img src="loader.gif"/></div>
      <div id="kkAdmin"></div>
      <script language='javascript' src='konakartadmin.nocache.js'></script>
      <iframe id='__gwt_historyFrame' style='width:0;height:0;border:0'></iframe>
      <iframe id="__printingFrame" style="width:0;height:0;border:0"></iframe>
      <form id="kkUserForm" action="http://somesite.com/prog/adduser"; method="post">
         <input type="hidden" name="user" value="admin@konakart.com">
      </form>

   </body>
</html>


jcm464

Hi Julie,

Thank you for your prompt reply and help, it does work beautifully!

I do not wish to push my luck but I thought I might as well ask if you know of a possible way in which we can change the following code below to register an actual user of the konakart system (customer). Such as it checks its credentials (email and password) and allow him/her straight access to the product panel.

<form id="kkUserForm" action="http://somesite.com/prog/adduser"; method="post">
         <input type="hidden" name="user" value="admin@konakart.com">
      </form>

Thank you Julie!

julie

That's actually what we do with Liferay. Could you give me some details of what product you are integrating with since this may help me give you a more accurate reply?

jcm464

Hi Julie,

Thank you for your prompt reply.

I'm customising konakart to enable customers from adding products onto the system. So, my line of thought is to have a customer register on the konakart front end application and once they are authenticated they are able to purchase products as well as sell their own items (trying to integrate konakart with konakartadmin)

To put it lightly, when the customer registers or signs in they are able to add their own products to the system. To achieve this they press the "add product button" and it automatically authenticates (email address and password) them as a customer and allows them straight access onto the konakartadmin product panel so they can add products.

Thank you Julie!

julie

Have you thought of creating a customized insert product screen and then use the KonaKartAdmin API to insert the product. This would allow you to create a very "customer friendly screen" showing only the attributes that interest you and would not require all customers to be registered as admin users.

jcm464

Hi Julie,

Thank you for your reply.

I think you might right in your suggestion. I will give it a go and look through the API's on how to achieve that, however, I would very much appreciate if you could enlighten me on how to authenticate the users and allow them access to the admin add product panel.


<form id="kkUserForm" action="http://somesite.com/prog/adduser"; method="post">
         <input type="hidden" name="user" value="admin@konakart.com">
      </form>

Thank you Julie!

julie

What you could do is to not show them the add product button unless they have logged in to the store front app. Then when they do the add product you generate the html page on the fly that invokes the admin app and you use a an admin user that has a reduced role to only allow him to add products.

jcm464

Hi Julie,

Thank you for your reply. I think that its probably the best way to go about it. Having said that, I will take into account what you said in your previous messages with regards to building a page within the konakart app to allow users to add products. I will try both methods and see which one suits the app the better.

Thank you Julie!

julie

My concern is that the Admin App UI is really for administrators and not designed for an average eCommerce customer. You may find that you'll need a wizard driven UI to guide your customer since a product definition can be quite complex. By the way, what type of products are we talking about?

jcm464

Hi Julie,

Thank you for your prompt reply. The shop will sell a wide spectrum of sports related equipment, so the actual attributes may actually be quite complex ranging from size, weight, height, width, manufacturers  etc. Also, the customers may also become sellers if they wish to sell their sports products online. Therefore, I was thinking on allowing access to the Admin Console/ Product panel so they can also define the relevant attributes to their items.

Basically, as the products may have many attributes I was thinking on having the user actually logging in to the AdminConsole with their own credentials (email address and password) and not as cat@konakart.com. If I could accomplish this I could then add a new attribute to either the product or customer class (customer_id for product || product_id for customer) to keep track of whom is selling what items.  I have tried to add a new seller table and add all the relevant classes and services, API calls etc, but in the end it got quite messy, so I decided to try a different route.

If you could give me an idea as to how to accomplish this I would very much appreciate it?

Thank you!