Identity version 3 implementation

Please review code changes for these comments only

Implememnting v3 api's for identity component
Added back the asert code in the auth