Security login method and device based on SaaS application, electronic equipment and storage medium
By using organization identifiers and application environment identifiers as user identity identifiers in SaaS applications, the data security issues caused by changes in mobile phone numbers are resolved, thereby improving data security and login efficiency.
Patent Information
- Application Number
- CN202310835353.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-07
- Publication Date
- 2026-11-27
- Estimated Expiration
- 2043-07-07
AI Technical Summary
The use of mobile phone numbers as user identifiers in SaaS applications leads to data insecurity issues, especially regarding data ownership after a change of mobile phone number.
By combining the organization identifier of the SaaS application and the application environment identifier of the third-party application as user identity identifiers, authentication is performed and automatic login is initiated, ensuring the uniqueness of user identity identifiers.
It ensures data security in SaaS applications, avoids data insecurity issues caused by changes in mobile phone numbers, and improves login efficiency and user experience.
Smart Images

Figure CN117014191B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of data security technology, and in particular to a secure login method, device, electronic device and storage medium based on SaaS applications. Background Technology
[0002] Currently, the internet primarily uses Software as a Service (SaaS) as a marketing scenario for attracting and acquiring customers. SaaS applications mainly use mobile phone numbers as identifiers to identify users and to send push notifications and notifications for activities via mobile phone numbers.
[0003] In the process of developing this invention, the inventors discovered that mobile phone numbers are subject to change, recycling, and inheritance. Therefore, mobile phone numbers cannot guarantee a user's unique identity. Furthermore, when the user of a mobile phone number changes, the activity data generated based on that mobile phone number will also be inherited, resulting in data ownership insecurity. Summary of the Invention
[0004] In view of this, this application provides a secure login method, device, electronic device and storage medium based on SaaS applications to solve the technical problem of insecure activity data generated by mobile phone numbers as user identifiers in SaaS applications.
[0005] A first aspect of this application provides a secure login method based on a SaaS application, the method comprising: When a login command from a third-party application to a SaaS application is detected, the user's identity identifier is obtained, wherein the user identity identifier includes the organization identifier of the SaaS application and the application environment identifier of the third-party application; Verify that the user identity identifier exists; When the user's identity is verified to exist, the user is authorized to automatically log in to the SaaS application.
[0006] In an optional implementation, the method further includes: When the activity page receives the user's entry instruction, the user's user status is obtained; Determine the activity access permissions corresponding to the user's state; The system manages users' access to the activity page based on the activity access permissions.
[0007] In an optional implementation, the method further includes: In response to the user's instruction to view target business data, obtain the type and business validity period of the target business data; In response to the user's instruction to view target business data, obtain the level type and activity validity period corresponding to the target activity data; The user's viewing method is determined based on the level type of the target activity data; The scope of viewing the target activity data is determined based on the activity validity period. The user is allowed to view the target activity data within the specified viewing method and viewing scope.
[0008] In an optional implementation, the method further includes: If the user's identity is verified to exist, the user's mobile phone number is obtained; Determine whether the phone number stored in the SaaS application database has been changed based on the obtained phone number; When it is determined that a mobile phone number stored in the SaaS application database has changed, the mobile phone number stored in the SaaS application database is updated.
[0009] In an optional implementation, the method further includes: If the user identity identifier is not found, the user is automatically registered based on the user identity identifier.
[0010] In an optional implementation, the method further includes: When the user's identity is verified to exist, the user's mobile phone number is retrieved from the SaaS application database; Send a verification code to the mobile phone number and display the verification code input page; When the verification code input page receives the verification code entered by the user, the verification code entered by the user is compared with the sent verification code; When the verification code entered by the user matches the verification code sent, the user is authorized to automatically log in to the SaaS application.
[0011] In an optional implementation, the method further includes: If the verification code entered by the user does not match the verification code sent, the user will be redirected to the third-party application. The user is verified through the third-party application; When the user successfully completes security verification through the third-party application, the user is authorized to automatically log in to the SaaS application.
[0012] A second aspect of this application provides a secure login device based on a SaaS application, the device comprising: The detection module is used to obtain the user's identity identifier when it detects a login command from a third-party application to the SaaS application. The user identity identifier includes the organization identifier of the SaaS application and the application environment identifier of the third-party application. The verification module is used to verify whether the user identity identifier exists; The login module is used to authorize the user to automatically log in to the SaaS application when the user's identity is verified to exist.
[0013] A third aspect of this application provides an electronic device including a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of the SaaS application-based secure login method.
[0014] A fourth aspect of this application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the secure login method based on a SaaS application.
[0015] In summary, the secure login method, apparatus, electronic device, and storage medium based on SaaS applications provided in this application allow users to access a SaaS application from a third-party application. By obtaining the user's identity identifier and verifying its existence, and if the identifier exists, the user is authorized to automatically log in to the SaaS application. This application uses a combination of the SaaS application's organizational identifier and the third-party application's application environment identifier instead of a mobile phone number for secure login. Since the third-party application's application environment identifier is unique, a unique user identity identifier can only be created based on it. Therefore, using the SaaS application's organizational identifier and the third-party application's application environment identifier as the user identity identifier for verification and automatic login effectively ensures the security of user data within the SaaS application. Attached Figure Description
[0016] Figure 1 This is a flowchart illustrating a secure login method based on a SaaS application, as shown in an embodiment of this application. Figure 2 This is a functional block diagram of a secure login device based on a SaaS application, as shown in an embodiment of this application. Figure 3 This is a structural diagram of an electronic device shown in an embodiment of this application. Detailed Implementation
[0017] The terminology used in the following embodiments of this application is for the purpose of describing particular embodiments only and is not intended to be limiting of this application. As used in the specification of this application, the singular expressions “a,” “an,” “the,” “the,” “the,” and “this” are intended to include the plural expressions as well, unless the context clearly indicates otherwise. It should also be understood that the term “and / or” as used in this application refers to any or all possible combinations including one or more of the listed items.
[0018] Hereinafter, the terms "first" and "second" are used for descriptive purposes only and should not be construed as implying or suggesting relative importance or implicitly indicating the number of indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature, and in the description of the embodiments of this application, unless otherwise stated, "multiple" means two or more.
[0019] The secure login method based on SaaS applications provided in this application embodiment is executed by an electronic device, and correspondingly, the secure login device based on SaaS applications runs in the electronic device.
[0020] Figure 1 This is a flowchart of a secure login method based on a SaaS application provided in Embodiment 1 of this application. The secure login method based on a SaaS application specifically includes the following steps. Depending on different requirements, the order of the steps in this flowchart can be changed, and some steps can be omitted.
[0021] S11, when a login command from a third-party application to the SaaS application is detected, the user's identity identifier is obtained.
[0022] When users access a SaaS application through a third-party application, they need to log in within the SaaS application. To achieve fast and convenient login, the user's identity identifier can be obtained first, and then used to determine whether to allow the user to log in without logging in.
[0023] The user identity identifier includes the organization identifier of the SaaS application and the application environment identifier of the third-party application.
[0024] The institution identifier can be understood as a unique identity verification of the institution within the SaaS application scenario, serving as an identity identifier for users engaging in promotional and marketing activities within the SaaS application. The same user is essentially two users in different institution scenarios. For example, the institution identifier for Bank A is 10001, and the institution identifier for Bank B is 10002.
[0025] The application environment identifier is the identity identifier of a third-party application. The third-party application may include, but is not limited to, WeChat, Alipay, Weibo, Xiaohongshu, and other applications.
[0026] S12, verify whether the user identity identifier exists.
[0027] After obtaining a user's identity identifier, the SaaS application needs to verify its existence in the SaaS application database based on the application environment identifier. Since the application environment identifier is unique, the user identity identifier created from it is also unique. Therefore, the existence of the user identity identifier in the SaaS application database can be verified using the application environment identifier. Specifically, a search can be performed in the SaaS application database using the application environment identifier. If the same application environment identifier is found in the database, it is then determined whether the organization identifier in the user identity identifier matches the corresponding organization identifier in the SaaS application database. If the organization identifier matches, the user identity identifier exists in the SaaS application database. If no matching application environment identifier is found, or if the organization identifier in the user identity identifier does not match, the user identity identifier does not exist in the SaaS application database.
[0028] When a user logs into the SaaS application for the first time, a user identity is created based on the organization identifier and the application environment identifier. After successful creation, the user identity and its corresponding data are automatically stored in the SaaS application database. Subsequent logins to the SaaS application will be automatically granted using this user identity.
[0029] The data information may include, but is not limited to: username, user gender, login password, mobile phone number, etc.
[0030] It should be understood that only one user identity can be uniquely created based on the organization identifier and the application environment identifier. Different organization identifiers and / or different application environment identifiers create different user identity identifiers.
[0031] S13, when the user identity is verified to exist, authorize the user to automatically log in to the SaaS application.
[0032] If the user's identity exists in the SaaS application database, indicating that the user is a returning user, then automatic authorization login will be performed.
[0033] In other embodiments, if the user identity identifier is not found in the SaaS application database, indicating that the user is a new user, the user is automatically registered based on the user identity identifier.
[0034] For example, suppose user A possesses two organization identifiers, organization identifier 1 and organization identifier 2. User A creates a user identity identifier based on application environment identifier 1 and organization identifier 1, but does not create a user identity identifier based on application environment identifier 1 and organization identifier 2. If user A enters the activity page of organization 1 in the SaaS application through the third-party application corresponding to application environment identifier 1, the SaaS application will automatically authorize login because the user identity identifier (organization identifier 1 + application environment identifier 1) exists in the SaaS application database. If user A enters the activity page of organization 2 in the SaaS application through the third-party application corresponding to application environment identifier 1, the SaaS application will automatically register a user identity identifier based on organization identifier 2 and application environment identifier 1 because the user identity identifier (organization identifier 2 + application environment identifier 1) does not exist in the SaaS application database.
[0035] For example, suppose user A has two application environment identifiers, application environment identifier 1 and application environment identifier 2. User A creates a user identity activity data on an organization's activity page in the SaaS application based on application environment identifier 1. However, user A does not create a user identity on the same organization's activity page in the SaaS application based on application environment identifier 2. If user A enters the organization's activity page in the SaaS application through the third-party application corresponding to application environment identifier 1, the SaaS application will automatically determine that user A is an existing user and automatically authorize login. If user A enters the organization's activity page in the SaaS application through the third-party application corresponding to application environment identifier 2, the SaaS application will automatically determine that user A is a new user and automatically register based on the organization's identifier and application environment identifier 2 as the user identity.
[0036] Through the above implementation methods, the user identity created based on the application environment identifier and the organization identifier is unique, which is the foundation for ensuring the data security of the entire SaaS application. Authentication using the user identity identifier avoids the insecurity issues that arise when user identity identifiers authenticated via mobile phone numbers are inherited due to changes in mobile phone numbers within the SaaS application. Furthermore, when verification using the application environment identifier and the organization identifier as the user identity identifier is successful, authorization to log in to the SaaS application can be automatically granted, making the login process seamless for the user, improving login efficiency and enhancing the user experience.
[0037] In an optional implementation, when the user identity is verified to exist and the user is successfully authorized to automatically log in to the SaaS application, and the user needs to access the activity page, the method further includes: When the activity page receives the user's entry instruction, the user's user status is obtained; Determine the activity access permissions corresponding to the user's state; The system manages users' access to the activity page based on the activity access permissions.
[0038] After authorizing the user to automatically log in to the SaaS application, when the user needs to enter a certain activity page, the activity page will receive the user's entry instruction and determine the user's activity access permissions by obtaining the user's user status.
[0039] In some embodiments, the electronic device may pre-set multiple user states and assign an activity access permission to each user state. The user states may include, but are not limited to, normal users, locked users, and blacklisted users.
[0040] For example, if the user's user status is normal, the user can enter the activity scene through the activity page; if the user's user status is blacklisted, the user is prohibited from entering the activity scene through the activity page. If the user's user status is locked, the user needs to unlock the lock before entering the activity scene through the activity page.
[0041] In an optional implementation, the method further includes: In response to the user's instruction to view the target activity data, obtain the level type and activity validity period corresponding to the target activity data; The user's viewing method is determined based on the level type of the target activity data; The scope of viewing the target activity data is determined based on the activity validity period. The user is allowed to view the target activity data within the specified viewing method and viewing scope.
[0042] When a user enters the activity page to participate in the activity and needs to view specific activity data, a command to view that activity data will be triggered. The target activity data refers to the activity data the user needs to view. This activity data may include, but is not limited to: task data, achievement data, lottery data, financial data, etc.
[0043] Different application environment identifiers result in different activity data, different activity validity periods, and different viewing scopes for the activity data.
[0044] It should be understood that users can only view activity data corresponding to their user identity.
[0045] In some embodiments, the electronic device can pre-set different level types for different activity data and set a viewing method corresponding to each level type. For example, the electronic device can pre-set a first level type, a second level type, and a third level type, where the first level type corresponds to a first viewing method, the second level type corresponds to a second viewing method, and the third level type corresponds to a third viewing method. The first level type can be public, the second level type can be internal, and the third level type can be privacy.
[0046] For example, assuming target activity data D1 is a username and its level type is Level 1, the electronic device determines the user's viewing method as the first viewing method, allowing direct viewing of the target activity data within the SaaS system. Assuming target activity data D2 is lottery data and its level type is Level 2, the electronic device determines the user's viewing method as the second viewing method. This second viewing method requires authentication based on an organization identifier; the same organization identifier can view all activity data generated by that organization in the SaaS application. Assuming target activity data D3 is financial data and its level type is Level 3, the electronic device determines the user's viewing method as the third viewing method. This third viewing method involves authentication based on the application environment identifier and verification via mobile phone number and verification code.
[0047] In some embodiments, the electronic device may also pre-set different activity validity period types for different activity data, and set a viewing category corresponding to each activity validity period. For example, the electronic device may pre-set a first period type, a second period type, and a third period type, wherein the first period type corresponds to a first viewing category, the second period type corresponds to a second viewing category, and the third period type corresponds to a third viewing category. The first period type may be a one-off event, the second period type may be a short-term continuous event, and the third period type may be a long-term valid event.
[0048] For example, assuming target activity data D1 is one-off activity data, and the activity validity period of target activity data D1 belongs to the first type of period, the electronic device determines the user's viewing scope as the first viewing scope. The first viewing scope is only accessible to the user upon first entering the SaaS application. For example, for a one-off lottery activity, the user can only view it upon first entering the SaaS application, and will not be able to view it upon subsequent entry after the activity ends. Assuming target activity data D2 is short-term, continuous activity data, and the activity validity period of target activity data D2 belongs to the second type of period, the electronic device determines the user's viewing scope as the second viewing scope. The second viewing scope is only accessible upon entering the SaaS application within the short-term activity period. For example, for the 618 promotion (June 17th to June 19th), the user can view the relevant activity data of the 618 promotion upon entering the SaaS application from June 17th to June 19th; however, if the user enters the SaaS application after the June 17th to June 19th period, they will not be able to view it. Assuming the target activity data D3 is long-term valid activity data, and the activity validity period of target activity data D3 belongs to the third period type, then the electronic device determines the user's viewing scope as the third viewing scope. The third viewing scope means that the user can view the data every time they enter the SaaS application. For example, for a login to earn points activity, the user can view the login to earn points activity data every time they enter the SaaS application.
[0049] It should be noted that since the same user can have different application environment identifiers, the same user cannot view activity data generated outside of their application environment identifier based on different application environment identifiers. In other words, the activity data generated by the same user when logging in and using the SaaS application based on different application environment identifiers are incompatible when viewed. Users can only view the activity data generated by that application environment identifier in the SaaS application based on one application environment identifier.
[0050] For example, suppose user A possesses two application environment identifiers, application environment identifier 1 and application environment identifier 2. User A logs in to the SaaS application using application environment identifier 1 and generates corresponding activity data. User A also logs in to the SaaS application using application environment identifier 2 and generates corresponding activity data. User A can only view the activity data generated in the SaaS application using application environment identifier 1 as the user identifier, and user A can only view the activity data generated in the SaaS application using application environment identifier 2 as the user identifier. If user A wants to view the activity data generated in the SaaS application using application environment identifier 2 as the user identifier using application environment identifier 1, user A does not have permission. Similarly, if user A wants to view the activity data generated in the SaaS application using application environment identifier 1 as the user identifier using application environment identifier 2, user A also does not have permission.
[0051] In an optional implementation, the method further includes: If the user's identity is verified to exist, the user's mobile phone number is obtained; Determine whether the phone number stored in the SaaS application database has been changed based on the obtained phone number; When it is determined that the mobile phone number stored in the SaaS application database has changed, the mobile phone number stored in the SaaS application database is updated.
[0052] In some embodiments, the electronic device can obtain the user's mobile phone number through a third-party application, or it can display a mobile phone number input page to obtain the user's entered mobile phone number. Upon obtaining the user's mobile phone number, the electronic device automatically stores it in the SaaS application database.
[0053] The electronic device determines whether the mobile phone number stored in the SaaS application database has changed based on the acquired mobile phone number. If the organization identifier and application environment identifier are the same, but the acquired mobile phone number is different from the user's mobile phone number stored in the SaaS application database, it indicates that the user's mobile phone number has changed. In this case, the acquired mobile phone number is used to overwrite the user's mobile phone number stored in the SaaS application database, thereby updating the user's mobile phone number stored in the SaaS application database. If the organization identifier and application environment identifier are the same, and the acquired mobile phone number is the same as the user's mobile phone number stored in the SaaS application database, it indicates that the user's mobile phone number has not changed.
[0054] Through the above optional implementation methods, when verifying the existence of the user identity identifier, the system obtains the user's mobile phone number to determine whether the mobile phone number stored in the SaaS application database has changed. Therefore, when the mobile phone number stored in the SaaS application database changes, the system automatically updates the mobile phone number stored in the SaaS application database. Automatically updating the user's mobile phone number can improve the security of activity data generated by the user in different activity scenarios.
[0055] In an optional implementation, to further ensure the security of activity data based on SaaS applications, the method may further include: When the user's identity is verified to exist, the user's mobile phone number is retrieved from the SaaS application database; Send a verification code to the mobile phone number and display the verification code input page; When the verification code input page receives the verification code entered by the user, the verification code entered by the user is compared with the verification code sent. When the verification code entered by the user matches the verification code sent, the user is authorized to automatically log in to the SaaS application.
[0056] Mobile phone numbers, as a basic user attribute, can also be used to verify user identity. When the user's identity is verified based on the organization identifier and application environment identifier, the system further retrieves the user's mobile phone number from the SaaS application database and sends a verification code to that number. The verification code can be a random combination of numbers, letters, etc. When the verification code input page receives the user's input verification code, the electronic device compares the input verification code with the sent verification code. If the input verification code matches the sent verification code, it indicates that the user is a trusted user, and the user is authorized to automatically log in to the SaaS application.
[0057] The above optional implementation method, under the premise that the user identity is verified based on the organization identifier and the application environment identifier, performs verification again through the mobile phone number and verification code. That is, the user's mobile phone number is used to perform auxiliary verification of the user identity based on the organization identifier and the application environment identifier, thereby doubly ensuring the security of user login and thus ensuring the security of activity data based on SaaS applications.
[0058] In an optional implementation, the method further includes: If the verification code entered by the user does not match the verification code sent, the user will be redirected to the third-party application. The user is verified through the third-party application; When the user successfully completes security verification through the third-party application, the user is authorized to automatically log in to the SaaS application.
[0059] If the verification code entered by the user does not match the sent verification code, it indicates that the user is an untrusted user. In this case, a third-party application can be used to perform security verification on the user. If the third-party application successfully verifies the user's identity, the user is authorized to automatically log in to the SaaS application. If the third-party application fails to verify the user's identity, the user will need to log in to the SaaS application by entering their account password.
[0060] In other implementations, if the verification code entered by the user does not match the verification code sent, the electronic device can send a verification code to the mobile phone number again. When the verification code entered by the user is received on the verification code input page, the verification code entered by the user again is compared with the verification code sent again. Only when the verification code entered by the user matches the verification code sent is the user authorized to automatically log in to the SaaS application.
[0061] In other implementations, if the verification code entered by the user again is still inconsistent with the verification code sent again, the electronic device may also choose to perform auxiliary authentication through other methods, such as email or SMS.
[0062] Figure 2 This is a functional block diagram of the secure login device based on SaaS applications provided in Embodiment 2 of this application.
[0063] In some embodiments, the SaaS application-based secure login device 20 may include multiple functional modules composed of computer program segments. The computer programs of each program segment of the SaaS application-based secure login device 20 may be stored in the memory of an electronic device and executed by at least one processor to perform (see details). Figure 1 (Description) Secure login functionality based on SaaS applications.
[0064] In this embodiment, the SaaS application-based secure login device 20 can be divided into multiple functional modules according to its functions. These functional modules may include: a detection module 201, a verification module 202, a login module 203, and an acquisition module 204. The term "module" in this application refers to a series of computer program segments that can be executed by at least one processor and perform a fixed function, stored in memory. In this embodiment, the functions of each module will be detailed in subsequent embodiments.
[0065] The detection module 201 is used to obtain the user's user identity identifier when it detects a login command from a third-party application to the SaaS application.
[0066] When users access a SaaS application through a third-party application, they need to log in within the SaaS application. To achieve fast and convenient login, the user's identity identifier can be obtained first, and then used to determine whether to allow the user to log in without logging in.
[0067] The user identity identifier includes the organization identifier of the SaaS application and the application environment identifier of the third-party application.
[0068] The institution identifier can be understood as a unique identity verification of the institution within the SaaS application scenario, serving as an identity identifier for users engaging in promotional and marketing activities within the SaaS application. The same user is essentially two users in different institution scenarios. For example, the institution identifier for Bank A is 10001, and the institution identifier for Bank B is 10002.
[0069] The application environment identifier is the identity identifier of a third-party application. The third-party application may include, but is not limited to, WeChat, Alipay, Weibo, Xiaohongshu, and other applications.
[0070] The verification module 202 is used to verify whether the user identity identifier exists.
[0071] After obtaining the user's identity identifier, the verification module 202 needs to verify whether the user's identity identifier exists in the SaaS application database based on the application environment identifier. Since the application environment identifier is unique, the user identity identifier created based on the application environment identifier is also unique. Therefore, the existence of the user identity identifier in the SaaS application database can be verified based on the application environment identifier. Specifically, a search can be performed in the SaaS application database using the application environment identifier. When a search finds an identical application environment identifier in the SaaS application database, it is then determined whether the organization identifier in the user's identity identifier matches the corresponding organization identifier in the SaaS application database. If the organization identifier in the user's identity identifier matches the corresponding organization identifier in the SaaS application database, it is determined that the user's identity identifier exists in the SaaS application database. If a search finds no identical application environment identifier in the SaaS application database, or if the organization identifier in the user's identity identifier does not match the corresponding organization identifier in the SaaS application database, it is determined that the user's identity identifier does not exist in the SaaS application database.
[0072] When a user logs into the SaaS application for the first time, a user identity is created based on the organization identifier and the application environment identifier. After successful creation, the user identity and its corresponding data are automatically stored in the SaaS application database. Subsequent logins to the SaaS application will be automatically granted using this user identity.
[0073] The data information may include, but is not limited to: username, user gender, login password, mobile phone number, etc.
[0074] It should be understood that only one user identity can be uniquely created based on the organization identifier and the application environment identifier. Different organization identifiers and / or different application environment identifiers create different user identity identifiers.
[0075] The login module 203 is used to authorize the user to automatically log in to the SaaS application when the user identity is verified to exist.
[0076] If the user's identity is found to exist in the SaaS application database, indicating that the user is a returning user, then automatic authorization login will be performed.
[0077] In other embodiments, if the verification module 202 verifies that the user identity identifier does not exist in the SaaS application database, indicating that the user is a new user, then the user is automatically registered based on the user identity identifier.
[0078] For example, suppose user A possesses two organization identifiers, organization identifier 1 and organization identifier 2. User A creates a user identity identifier based on application environment identifier 1 and organization identifier 1, but does not create a user identity identifier based on application environment identifier 1 and organization identifier 2. If user A enters the activity page of organization 1 in the SaaS application through the third-party application corresponding to application environment identifier 1, the SaaS application will automatically authorize login because the user identity identifier (organization identifier 1 + application environment identifier 1) exists in the SaaS application database. If user A enters the activity page of organization 2 in the SaaS application through the third-party application corresponding to application environment identifier 1, the SaaS application will automatically register a user identity identifier based on organization identifier 2 and application environment identifier 1 because the user identity identifier (organization identifier 2 + application environment identifier 1) does not exist in the SaaS application database.
[0079] For example, suppose user A has two application environment identifiers, application environment identifier 1 and application environment identifier 2. User A creates a user identity activity data on an organization's activity page in the SaaS application based on application environment identifier 1. However, user A does not create a user identity on the same organization's activity page in the SaaS application based on application environment identifier 2. If user A enters the organization's activity page in the SaaS application through the third-party application corresponding to application environment identifier 1, the SaaS application will automatically determine that user A is an existing user and automatically authorize login. If user A enters the organization's activity page in the SaaS application through the third-party application corresponding to application environment identifier 2, the SaaS application will automatically determine that user A is a new user and automatically register based on the organization's identifier and application environment identifier 2 as the user identity.
[0080] Through the above implementation methods, the user identity created based on the application environment identifier and the organization identifier is unique, which is the foundation for ensuring the data security of the entire SaaS application. Authentication using the user identity identifier avoids the insecurity issues that arise when user identity identifiers authenticated via mobile phone numbers are inherited due to changes in mobile phone numbers within the SaaS application. Furthermore, when verification using the application environment identifier and the organization identifier as the user identity identifier is successful, authorization to log in to the SaaS application can be automatically granted, making the login process seamless for the user, improving login efficiency and enhancing the user experience.
[0081] The acquisition module 204 is used to acquire the user's user status when the user's entry instruction is received on the activity page.
[0082] After authorizing the user to automatically log in to the SaaS application, when the user needs to enter a certain activity page, the activity page will receive the user's entry instruction. The user status is obtained through the acquisition module 204, thereby determining the user's activity entry permissions.
[0083] In some embodiments, the electronic device may pre-set multiple user states and assign an activity access permission to each user state. The user states may include, but are not limited to, normal users, locked users, and blacklisted users.
[0084] For example, if the user's user status is normal, the user can enter the activity scene through the activity page; if the user's user status is blacklisted, the user is prohibited from entering the activity scene through the activity page. If the user's user status is locked, the user needs to unlock the lock before entering the activity scene through the activity page.
[0085] The acquisition module 204 is further configured to, in response to the user's instruction to view the target activity data, acquire the level type and activity validity period corresponding to the target activity data.
[0086] When a user enters the activity page to participate in the activity and needs to view specific activity data, a command to view that activity data will be triggered. The target activity data refers to the activity data the user needs to view. This activity data may include, but is not limited to: task data, achievement data, lottery data, financial data, etc.
[0087] Different application environment identifiers result in different activity data, different activity validity periods, and different viewing scopes for the activity data.
[0088] It should be understood that users can only view activity data corresponding to their user identity.
[0089] In some embodiments, the electronic device can pre-set different level types for different activity data and set a viewing method corresponding to each level type. For example, the electronic device can pre-set a first level type, a second level type, and a third level type, where the first level type corresponds to a first viewing method, the second level type corresponds to a second viewing method, and the third level type corresponds to a third viewing method. The first level type can be public, the second level type can be internal, and the third level type can be privacy.
[0090] For example, assuming target activity data D1 is a username and its level type is Level 1, the electronic device determines the user's viewing method as the first viewing method, allowing direct viewing of the target activity data within the SaaS system. Assuming target activity data D2 is lottery data and its level type is Level 2, the electronic device determines the user's viewing method as the second viewing method. This second viewing method requires authentication based on an organization identifier; the same organization identifier can view all activity data generated by that organization in the SaaS application. Assuming target activity data D3 is financial data and its level type is Level 3, the electronic device determines the user's viewing method as the third viewing method. This third viewing method involves authentication based on the application environment identifier and verification via mobile phone number and verification code.
[0091] In some embodiments, the electronic device may also pre-set different activity validity period types for different activity data, and set a viewing category corresponding to each activity validity period. For example, the electronic device may pre-set a first period type, a second period type, and a third period type, wherein the first period type corresponds to a first viewing category, the second period type corresponds to a second viewing category, and the third period type corresponds to a third viewing category. The first period type may be a one-off event, the second period type may be a short-term continuous event, and the third period type may be a long-term valid event.
[0092] For example, assuming target activity data D1 is one-off activity data, and the activity validity period of target activity data D1 belongs to the first type of period, the electronic device determines the user's viewing scope as the first viewing scope. The first viewing scope is only accessible to the user upon first entering the SaaS application. For example, for a one-off lottery activity, the user can only view it upon first entering the SaaS application, and will not be able to view it upon subsequent entry after the activity ends. Assuming target activity data D2 is short-term, continuous activity data, and the activity validity period of target activity data D2 belongs to the second type of period, the electronic device determines the user's viewing scope as the second viewing scope. The second viewing scope is only accessible upon entering the SaaS application within the short-term activity period. For example, for the 618 promotion (June 17th to June 19th), the user can view the relevant activity data of the 618 promotion upon entering the SaaS application from June 17th to June 19th; however, if the user enters the SaaS application after the June 17th to June 19th period, they will not be able to view it. Assuming the target activity data D3 is long-term valid activity data, and the activity validity period of target activity data D3 belongs to the third period type, then the electronic device determines the user's viewing scope as the third viewing scope. The third viewing scope means that the user can view the data every time they enter the SaaS application. For example, for a login to earn points activity, the user can view the login to earn points activity data every time they enter the SaaS application.
[0093] It should be noted that since the same user can have different application environment identifiers, the same user cannot view activity data generated outside of their application environment identifier based on different application environment identifiers. In other words, the activity data generated by the same user when logging in and using the SaaS application based on different application environment identifiers are incompatible when viewed. Users can only view the activity data generated by that application environment identifier in the SaaS application based on one application environment identifier.
[0094] For example, suppose user A possesses two application environment identifiers, application environment identifier 1 and application environment identifier 2. User A logs in to the SaaS application using application environment identifier 1 and generates corresponding activity data. User A also logs in to the SaaS application using application environment identifier 2 and generates corresponding activity data. User A can only view the activity data generated in the SaaS application using application environment identifier 1 as the user identifier, and user A can only view the activity data generated in the SaaS application using application environment identifier 2 as the user identifier. If user A wants to view the activity data generated in the SaaS application using application environment identifier 2 as the user identifier using application environment identifier 1, user A does not have permission. Similarly, if user A wants to view the activity data generated in the SaaS application using application environment identifier 1 as the user identifier using application environment identifier 2, user A also does not have permission.
[0095] The acquisition module 204 is further configured to acquire the user's mobile phone number when the user identity identifier is verified to exist.
[0096] In some embodiments, the acquisition module 204 of the electronic device can obtain the user's mobile phone number through a third-party application, or it can display a mobile phone number input page and obtain the user's input mobile phone number through the mobile phone number input page. When the acquisition module 204 obtains the user's mobile phone number, the electronic device will automatically store the user's mobile phone number in the SaaS application database.
[0097] The electronic device determines whether the mobile phone number stored in the SaaS application database has changed based on the mobile phone number obtained by the acquisition module 204. If the organization identifier and application environment identifier are the same, but the obtained mobile phone number is inconsistent with the user's mobile phone number stored in the SaaS application database, it indicates that the user's mobile phone number has changed. In this case, the obtained mobile phone number is used to overwrite the user's mobile phone number stored in the SaaS application database, thereby updating the user's mobile phone number stored in the SaaS application database. If the organization identifier and application environment identifier are the same, and the obtained mobile phone number is consistent with the user's mobile phone number stored in the SaaS application database, it indicates that the user's mobile phone number has not changed.
[0098] Through the above optional implementation methods, when verifying the existence of the user identity identifier, the acquisition module 204 obtains the user's mobile phone number to determine whether the mobile phone number stored in the SaaS application database has changed. Therefore, when the mobile phone number stored in the SaaS application database changes, the mobile phone number stored in the SaaS application database is automatically updated. Automatically updating the user's mobile phone number can improve the security of activity data generated by the user in different activity scenarios.
[0099] The acquisition module 204 is further configured to acquire the user's mobile phone number from the SaaS application database when the user identity identifier is verified to exist.
[0100] A mobile phone number, as a basic attribute of a user, can also be used to verify user identity. When the user identity is verified to exist based on the organization identifier and application environment identifier, the acquisition module 204 further obtains the user's mobile phone number from the SaaS application database and sends a verification code to the mobile phone number. The verification code can be a random combination of numbers, letters, etc.
[0101] The verification module 202 is also used to verify whether the verification code entered by the user is consistent with the verification code sent.
[0102] When the verification code input page receives the verification code entered by the user, the verification module 202 compares the verification code entered by the user with the sent verification code. When the verification code entered by the user matches the sent verification code, it indicates that the user is a trusted user, and the user is authorized to automatically log in to the SaaS application.
[0103] The above optional implementation method, under the premise that the existence of the user identity identifier is verified by the verification module 202 based on the organization identifier and the application environment identifier, performs verification again by using the mobile phone number and verification code. That is, the user's mobile phone number is used to perform auxiliary verification of the user identity identifier based on the organization identifier and the application environment identifier, thereby doubly ensuring the security of user login and thus ensuring the security of activity data based on SaaS applications.
[0104] When the verification module 202 compares the verification code entered by the user with the verification code sent, it redirects to display the third-party application and performs security verification on the user through the third-party application.
[0105] The login module 203 is also used to authorize the user to automatically log in to the SaaS application when the user is successfully verified through the third-party application.
[0106] If the verification code entered by the user does not match the sent verification code, it indicates that the user is an untrusted user. In this case, a third-party application can be used to perform security verification on the user. If the third-party application successfully verifies the user's identity, the user is authorized to automatically log in to the SaaS application. If the third-party application fails to verify the user's identity, the user will need to log in to the SaaS application by entering their account password.
[0107] In other implementations, if the verification code entered by the user does not match the verification code sent, the electronic device can send the verification code to the mobile phone number again. When the verification code entered by the user is received on the verification code input page, the verification module 202 compares the verification code entered by the user again with the verification code sent again. Only when the verification code entered by the user matches the verification code sent is the user authorized to automatically log in to the SaaS application.
[0108] In other implementations, if the verification code entered by the user again is still inconsistent with the verification code sent again, the electronic device may also choose to perform auxiliary authentication through other methods, such as email or SMS.
[0109] The login module 203 is also used to verify that when the verification code entered by the user matches the verification code sent, it authorizes the user to automatically log in to the SaaS application.
[0110] When the verification code input page receives the verification code entered by the user, the verification module 202 compares the verification code entered by the user with the sent verification code. When the verification code entered by the user matches the sent verification code, it indicates that the user is a trusted user, and the login module 203 authorizes the user to automatically log in to the SaaS application.
[0111] See Figure 3 The diagram shown is a structural schematic of an electronic device provided in Embodiment 3 of this application. In a preferred embodiment of this application, the electronic device 3 includes a memory 61, at least one processor 62, and at least one communication bus 63.
[0112] Those skilled in the art should understand that Figure 3 The structure of the electronic device shown does not constitute a limitation of the embodiments of this application. It can be a bus structure or a star structure. The electronic device 3 may also include more or fewer other hardware or software than shown, or different component arrangements.
[0113] In some embodiments, the electronic device 3 is a device capable of automatically performing numerical calculations and / or information processing according to pre-set or stored instructions. Its hardware includes, but is not limited to, microprocessors, application-specific integrated circuits (ASICs), programmable gate arrays (FPGAs), digital processors, and embedded devices. The electronic device 3 may also include user equipment, which includes, but is not limited to, any electronic product capable of human-computer interaction with a user via a keyboard, mouse, remote control, touchpad, or voice control device, such as a personal computer, tablet computer, smartphone, or digital camera.
[0114] It should be noted that the electronic device 3 is merely an example. Other existing or future electronic products that are suitable for this application should also be included within the scope of protection of this application and are incorporated herein by reference.
[0115] In some embodiments, the memory 61 stores a computer program that, when executed by the at least one processor 62, implements all or part of the steps in the SaaS application-based secure login method described above. The memory 61 includes read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), one-time programmable read-only memory (OTPROM), electrically-erasable programmable read-only memory (EEPROM), compact disc read-only memory (CD-ROM) or other optical disc storage, disk storage, magnetic tape storage, or any other computer-readable medium capable of carrying or storing data. Further, the computer-readable storage medium may primarily include a program storage area and a data storage area, wherein the program storage area may store an operating system, at least one application program required for a function, etc.
[0116] In some embodiments, the at least one processor 62 is the control unit of the electronic device 3, connecting various components of the electronic device 3 via various interfaces and lines. It executes programs or modules stored in the memory 61 and calls data stored in the memory 61 to perform various functions and process data of the electronic device 3. For example, when the at least one processor 62 executes a computer program stored in the memory, it implements all or part of the steps of the SaaS application-based secure login method described in this application embodiment; or it implements all or part of the functions of the SaaS application-based secure login device. The at least one processor 62 may be composed of integrated circuits, such as a single-packaged integrated circuit or multiple integrated circuits with the same or different functions, including combinations of one or more central processing units (CPUs), microprocessors, digital processing chips, graphics processors, and various control chips.
[0117] In some embodiments, the at least one communication bus 63 is configured to enable communication between the memory 61 and the at least one processor 62, etc. Although not shown, the electronic device 3 may also include a power supply (e.g., a battery) to power the various components. Preferably, the power supply can be logically connected to the at least one processor 62 via a power management device, thereby enabling functions such as charging, discharging, and power consumption management. The power supply may also include one or more DC or AC power supplies, recharging devices, power fault detection circuits, power converters or inverters, power status indicators, and other arbitrary components. The electronic device 3 may also include various sensors, Bluetooth modules, Wi-Fi modules, etc., which will not be described in detail here.
[0118] The integrated unit implemented as a software functional module described above can be stored in a computer-readable storage medium. This software functional module, stored in a storage medium, includes several instructions to cause an electronic device (which may be a personal computer, electronic device, or network device, etc.) or processor to execute portions of the methods described in the various embodiments of this application.
[0119] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of modules is only a logical functional division, and other division methods may be used in actual implementation.
[0120] The modules described as separate components may or may not be physically separate. The components shown as modules may or may not be physical units; they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs.
Claims
1. A secure login method based on SaaS applications, characterized in that, The method includes: When a login command from a third-party application to a SaaS application is detected, the user's identity identifier is obtained, wherein the user identity identifier includes the organization identifier of the SaaS application and the application environment identifier of the third-party application; Verify that the user identity identifier exists; When the user's identity is verified to exist, the user is authorized to automatically log in to the SaaS application; If the user identity identifier does not exist, the user is automatically registered based on the user identity identifier; When the activity page receives the user's entry instruction, the user's user status is obtained; Determine the activity access permissions corresponding to the user's state; Manage users' access to the activity page according to the activity access permissions; The step of verifying the existence of the user identity identifier includes: Search the SaaS application database using the application environment identifier; When the same application environment identifier is found in the SaaS application database, it is determined whether the organization identifier in the user identity identifier is consistent with the organization identifier corresponding to the application environment identifier in the SaaS application database. When the organization identifier in the user identity identifier matches the organization identifier corresponding to the application environment identifier in the SaaS application database, it is determined that the user identity identifier exists; When no identical application environment identifier is found in the SaaS application database, or when the organization identifier in the user identity identifier is inconsistent with the organization identifier corresponding to the application environment identifier in the SaaS application database, it is determined that the user identity identifier does not exist; The automatic registration of the user based on the user identity identifier includes: The user identity identifier is created based on the organization identifier and the application environment identifier. After the user identity identifier is successfully created, the user identity identifier and the corresponding data information are stored in the SaaS application database so that the user can automatically log in to the SaaS application using the user identity identifier when logging in to the SaaS application later. It is noted that only one user identity identifier can be uniquely created based on the organization identifier and the application environment identifier. Different organization identifiers and / or different application environment identifiers create different user identity identifiers. The method further includes: If the user's identity is verified to exist, the user's mobile phone number is obtained; When the organization identifier and the application environment identifier are the same, and the obtained mobile phone number is inconsistent with the mobile phone number stored in the SaaS application database, the obtained mobile phone number is used to overwrite the mobile phone number stored in the SaaS application database to update the mobile phone number stored in the SaaS application database. The management of user access to the activity page based on the activity access permissions includes: When a user's user status is normal, the user enters the activity scene through the activity page; when a user's user status is on the abnormal list, the user is prohibited from entering the activity scene through the activity page; when a user's user status is locked, the user unlocks the device and enters the activity scene through the activity page.
2. The secure login method based on SaaS applications according to claim 1, characterized in that, The method further includes: In response to the user's instruction to view the target activity data, obtain the level type and activity validity period corresponding to the target activity data; The user's viewing method is determined based on the level type of the target activity data; The scope of viewing the target activity data is determined based on the activity validity period. The user is allowed to view the target activity data within the specified viewing method and viewing scope.
3. The secure login method based on SaaS applications according to any one of claims 1 to 2, characterized in that, The method further includes: When the user's identity is verified to exist, the user's mobile phone number is retrieved from the SaaS application database; Send a verification code to the mobile phone number and display the verification code input page; When the verification code input page receives the verification code entered by the user, the verification code entered by the user is compared with the verification code sent. When the verification code entered by the user matches the verification code sent, the user is authorized to automatically log in to the SaaS application.
4. The secure login method based on SaaS applications according to claim 3, characterized in that, The method further includes: If the verification code entered by the user does not match the verification code sent, the user will be redirected to the third-party application. The user is verified through the third-party application; When the user successfully completes security verification through the third-party application, the user is authorized to automatically log in to the SaaS application.
5. A secure login device based on SaaS applications, characterized in that, The device includes: The detection module is used to obtain the user's identity identifier when it detects a login command from a third-party application to the SaaS application. The user identity identifier includes the organization identifier of the SaaS application and the application environment identifier of the third-party application. The verification module is used to verify whether the user identity identifier exists; The login module is used to authorize the user to automatically log in to the SaaS application when the user's identity is verified to exist; The registration module is used to automatically register the user based on the user identity identifier when the user identity identifier is not found. The acquisition module is used to acquire the user's user status when the user's entry instruction is received on the activity page; determine the activity entry permission corresponding to the user status; and manage the user's entry into the activity page according to the activity entry permission; wherein, the user status includes: normal user, locked user, and abnormal list user; and is used to acquire the user's mobile phone number when the user's identity identifier is verified to exist; The update module is used to update the mobile phone number stored in the SaaS application database by overwriting the mobile phone number stored in the SaaS application database when the organization identifier and the application environment identifier are the same and the obtained mobile phone number is inconsistent with the mobile phone number stored in the SaaS application database. The verification of whether the user identity identifier exists includes: Search the SaaS application database using the application environment identifier; When the same application environment identifier is found in the SaaS application database, it is determined whether the organization identifier in the user identity identifier is consistent with the organization identifier corresponding to the application environment identifier in the SaaS application database. When the organization identifier in the user identity identifier matches the organization identifier corresponding to the application environment identifier in the SaaS application database, it is determined that the user identity identifier exists; When no identical application environment identifier is found in the SaaS application database, or when the organization identifier in the user identity identifier is inconsistent with the organization identifier corresponding to the application environment identifier in the SaaS application database, it is determined that the user identity identifier does not exist; The registration module creates the user identity identifier based on the organization identifier and the application environment identifier. After successful creation of the user identity identifier, it stores the user identity identifier and corresponding data information in the SaaS application database so that the user can automatically log in to the SaaS application using the user identity identifier. Only one user identity identifier can be uniquely created based on the organization identifier and the application environment identifier; different organization identifiers and / or different application environment identifiers create different user identity identifiers. The step of managing the user's access to the activity page based on the activity access permission includes: when the user's status is a normal user, the user enters the activity scene through the activity page; when the user's status is an abnormal list user, the user is prohibited from entering the activity scene through the activity page; when the user's status is a locked user, the user unlocks and enters the activity scene through the activity page.
6. An electronic device, characterized in that, The method includes a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of the secure login method for a SaaS application as described in any one of claims 1 to 4.
7. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the steps of the secure login method based on SaaS applications as described in any one of claims 1 to 4.
Citation Information
Patent Citations
Service processing method and apparatus based on service platform
CN107040560A
