Identify which authentication method was used at logon

Experts,

Is there any way to know which authentication method the user used to login into the box? I mean, is possible to identify if an active user had logged using keys or password for example?

Let me clarify: we have a script that we want to allow users to execute only if they have used their private keys to login the machine.

Is there such a thing?

We are using Solaris 10.

Thanks in advance.

This can be checked either from the syslog or messages file. You can script to to grep certain keywords or phrases like "logon" , "Failed" etc

I just grep those files and can't found neither. Guess I hadn't make myself clear, users must still allowed to login thru password authentication, however we want to give them the ability to run a specific script only when they used private keys.

My bad I forgot to say but my group isn't root on this specific box; we do have high privileges but still we're not root.

Thanks.