The present invention proposes a context-aware dynamic unified authentication method and system. By collecting personalized information of users when using the Internet and mobile Internet, the server log files stored in the client, Web server and proxy server can be verified. , Cookies, user registration information, and data explicitly entered by users, etc., for machine learning and data mining, and dynamically verify the user's identity. Learn the user's usage habits, and dynamically adjust the authentication level according to the status of the user's current terminal device and access method. In the environment that the user is familiar with, the authentication is mainly convenient and fast. When the user is in an unfamiliar environment, the authentication level is automatically increased. The implementation of the present invention can effectively solve the security threats that may exist in the increasingly popular mobile Internet applications, and through appropriate comprehensive protection measures, overcome the vulnerability of the mobile Internet system itself, control and reduce its security risks, and ensure people's daily work, Mobile Internet applications in life are safe, and at the same time, improve user experience.