how to get jg_user.id and back again

maremv
2010-01-01
2013-05-08
  • maremv
    maremv
    2010-01-01

    I am wanting to take the number out of jg_user.id and put it into other table rows of my webapp database to show who modified a row last. Is there a build in jguard method to get the jg_user.id of the current authenticated in user?

    Also is there a jguard built in method to go back from jg_user.id to get a public credential's about that jg_user.id? Since one user can look at entries modified by another user.

    I'm using version 1.0.4 - If there are methods to do these things, but they are in the new version 2.0.0 how easy is it to upgrade? and how stable is it?

    -Thanks!

     
  • As not all authorization managers keep an user id I think the best approach is to use some identity credential as foreign key.