Authentication method and framework