[IdentityModule] small refactor on authentication protocol
[IdentityModule] small refactor on authentication protocol

reTHINK-project/dev-runtime-core,reTHINK-project/dev-runtime-core,reTHINK-project/dev-runtime-core