CN116232658A - User operation control method and system in blockchain as a service - Google Patents

User operation control method and system in blockchain as a service Download PDF

Info

Publication number
CN116232658A
CN116232658A CN202211667428.2A CN202211667428A CN116232658A CN 116232658 A CN116232658 A CN 116232658A CN 202211667428 A CN202211667428 A CN 202211667428A CN 116232658 A CN116232658 A CN 116232658A
Authority
CN
China
Prior art keywords
user
user operation
service
module
micro
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211667428.2A
Other languages
Chinese (zh)
Inventor
谭锦志
李伟
吴启凯
邱炜伟
胡麦芳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Qulian Technology Co Ltd
Original Assignee
Hangzhou Qulian Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Qulian Technology Co Ltd filed Critical Hangzhou Qulian Technology Co Ltd
Priority to CN202211667428.2A priority Critical patent/CN116232658A/en
Publication of CN116232658A publication Critical patent/CN116232658A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/083Network architectures or network communication protocols for network security for authentication of entities using passwords
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/02Standardisation; Integration
    • H04L41/0246Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols
    • H04L41/0273Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols using web services for network management, e.g. simple object access protocol [SOAP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

本申请适用于区块链技术领域,提供了一种区块链即服务中的用户操作控制方法及系统,该方法包括:业务微服务模块在响应于用户操作请求时,获取用户身份信息,根据用户身份信息,生成并发送用户操作鉴权请求至用户微服务模块,异步等待用户微服务模块的用户操作鉴权结果,执行与用户操作请求相关的业务准备进程,直至确认用户操作鉴权成功时,再执行与用户操作请求相关的链上操作进程。为了能够实现用户操控鉴权,对用户操作进行控制,配置区块链即服务的架构为前端模块与业务微服务模块建立数据连接,业务微服务模块再与用户微服务模块建立数据连接,上述方法,缩短了用户操作请求的等待时间,也保证了链上操作的安全性。

Figure 202211667428

This application is applicable to the field of blockchain technology, and provides a user operation control method and system in blockchain as a service. The method includes: when the business microservice module responds to user operation requests, obtains user identity information, and User identity information, generate and send the user operation authentication request to the user microservice module, asynchronously wait for the user operation authentication result of the user microservice module, execute the business preparation process related to the user operation request, until it is confirmed that the user operation authentication is successful , and then execute the on-chain operation process related to the user operation request. In order to realize user manipulation authentication and control user operations, configure the blockchain-as-a-service architecture to establish a data connection between the front-end module and the business micro-service module, and then establish a data connection between the business micro-service module and the user micro-service module. The above method , which shortens the waiting time for user operation requests and ensures the security of operations on the chain.

Figure 202211667428

Description

一种区块链即服务中的用户操作控制方法及系统User operation control method and system in blockchain as a service

技术领域technical field

本申请属于区块链技术领域,尤其涉及一种区块链即服务中的用户操作控制方法及系统。The present application belongs to the technical field of blockchain, and in particular relates to a user operation control method and system in blockchain as a service.

背景技术Background technique

区块链即服务(BaaS,Blockchain as a Service)是指将区块链框架嵌入云计算平台,利用云服务基础设施的部署和管理优势,为应用程序开发者提便捷、高性能的区块链生态环境和生态配套服务,支持开发者的业务拓展及运营支持的区块链开放平台。Blockchain as a Service (BaaS, Blockchain as a Service) refers to embedding the blockchain framework into the cloud computing platform, taking advantage of the deployment and management advantages of the cloud service infrastructure, and providing convenient and high-performance blockchain services for application developers. Ecological environment and ecological supporting services, an open blockchain platform that supports developers' business expansion and operational support.

区块链即服务中每个用户在登陆后存在个人视图和机构视图(用户加入某一机构后则存在机构视图),个人视图下用户资源属于个人,用户操作是无需鉴权的,机构视图下用户被赋予各种角色,每个角色在机构视图下的所有操作是需要进行鉴权的,从而才能防止机构下的用户出现越权操作,例如:用户具有区块链开发角色,则可以创建链,但是,具有区块链运维角色的用户是不允许创建链的。In the blockchain as a service, each user has a personal view and an organization view after logging in (there is an organization view after the user joins an organization). The user resources in the personal view belong to the individual, and user operations do not need to be authenticated. Users are assigned various roles, and all operations of each role under the organization view need to be authenticated, so as to prevent users under the organization from exceeding their authority. For example, if a user has a blockchain development role, he can create a chain, However, users with blockchain operation and maintenance roles are not allowed to create chains.

除上述的用户角色权限鉴权外,区块链即服务也对接一条身份链,每个用户在身份链上对应一个身份,即分布式用户身份,该身份决定了用户在链上操作的权限,因此,还需要对用户的链上操作权限进行鉴权。In addition to the above-mentioned user role authority authentication, the blockchain as a service also connects to an identity chain, and each user corresponds to an identity on the identity chain, that is, a distributed user identity, which determines the user's authority to operate on the chain. Therefore, it is also necessary to authenticate the user's on-chain operation authority.

由于区块链即服务架构的特殊性,现有的鉴权方式无法实现区块链即服务中的用户操作鉴权,对用户操作进行控制,并且,由于区块链即服务架构中用户身份信息是由某一个微服务进行处理的,故,在其他微服务无法获取到用户身份信息以进行鉴权和对用户操作进行控制。Due to the particularity of the blockchain-as-a-service architecture, the existing authentication methods cannot implement user operation authentication and control user operations in the blockchain-as-a-service architecture, and because user identity information in the blockchain-as-a-service architecture It is processed by a certain microservice, so other microservices cannot obtain user identity information for authentication and control of user operations.

发明内容Contents of the invention

本申请实施例提供了一种区块链即服务中的用户操作控制方法及系统,可以解决上述技术问题。The embodiment of the present application provides a user operation control method and system in blockchain as a service, which can solve the above technical problems.

第一方面,本申请实施例提供了一种区块链即服务中的用户操作控制方法,由业务微服务模块执行,业务微服务模块分别与前端模块和用户微服务模块建立数据连接。包括:响应于用户操作请求,获取用户身份信息,根据用户身份信息,生成并发送用户操作鉴权请求至用户微服务模块;其中,用户操作请求为前端模块通过网关模块发送的;异步等待用户操作鉴权结果,执行与用户操作请求相关的业务准备进程;其中,用户操作鉴权结果为用户微服务模块响应于用户操作鉴权请求,获取用户操作请求视图、机构标识、用户角色和分布式用户身份信息,根据用户操作请求视图、机构标识、用户角色和分布式用户身份信息确定的;直至确认用户操作鉴权成功时,执行与用户操作请求相关的链上操作进程。In the first aspect, the embodiment of the present application provides a user operation control method in the blockchain as a service, which is executed by the business microservice module, and the business microservice module establishes data connections with the front-end module and the user microservice module respectively. Including: in response to user operation requests, obtain user identity information, generate and send user operation authentication requests to the user microservice module according to user identity information; among them, user operation requests are sent by the front-end module through the gateway module; asynchronously wait for user operations The authentication result executes the business preparation process related to the user operation request; among them, the user operation authentication result is that the user microservice module responds to the user operation authentication request and obtains the user operation request view, organization ID, user role and distributed user Identity information is determined according to the user operation request view, organization identifier, user role, and distributed user identity information; until it is confirmed that the user operation authentication is successful, the on-chain operation process related to the user operation request is executed.

进一步地,直至确认用户操作鉴权成功时,执行与用户操作请求相关的链上操作进程,包括:若执行完与用户操作请求相关的业务准备进程时未等待到用户操作鉴权结果,则阻塞与用户操作请求相关的链上操作进程,直至等待到用户操作鉴权结果,根据用户操作鉴权结果确认用户操作鉴权成功时,执行与用户操作请求相关的链上操作进程。Further, until it is confirmed that the user operation authentication is successful, execute the on-chain operation process related to the user operation request, including: if the user operation authentication result is not waited for after executing the service preparation process related to the user operation request, block The on-chain operation process related to the user operation request waits for the user operation authentication result, and when the user operation authentication is confirmed to be successful according to the user operation authentication result, the on-chain operation process related to the user operation request is executed.

进一步地,响应于用户操作请求的业务微服务模块为网关模块根据用户操作请求携带的微服务名称以及已注册的微服务名称与微服务地址之间的对应关系确定的。Further, the business microservice module responding to the user operation request is determined by the gateway module according to the microservice name carried in the user operation request and the corresponding relationship between the registered microservice name and the microservice address.

第二方面,本申请实施例提供了一种区块链即服务中的用户操作控制方法,由用户微服务模块执行,用户微服务模块与业务微服务模块建立数据连接,业务微服务模块与前端模块建立数据连接,包括:响应于用户操作鉴权请求,获取用户身份信息;其中,用户操作鉴权请求为业务微服务模块响应于用户操作请求,获取用户身份信息,根据用户身份信息生成的;根据用户身份信息,得到用户操作请求视图、机构标识、用户角色和用户标识;根据用户标识确定用户在身份链上的分布式用户身份信息;根据用户操作请求视图、机构标识、用户角色和分布式用户身份信息,确定用户操作权限是否鉴权成功,发送用户操作鉴权结果至业务微服务模块。In the second aspect, the embodiment of the present application provides a user operation control method in blockchain as a service, which is executed by the user micro-service module, the user micro-service module establishes a data connection with the business micro-service module, and the business micro-service module and the front-end The module establishes a data connection, including: obtaining user identity information in response to a user operation authentication request; wherein, the user operation authentication request is generated according to the user identity information obtained by the business microservice module in response to the user operation request; According to the user identity information, get the user operation request view, organization ID, user role and user ID; determine the distributed user identity information of the user on the identity chain according to the user ID; User identity information, determine whether the user operation authorization is successfully authenticated, and send the user operation authentication result to the business microservice module.

进一步地,根据用户操作请求视图、机构标识、用户角色和分布式用户身份信息,确定用户操作权限是否鉴权成功,发送用户操作鉴权结果至业务微服务模块,包括:若用户操作请求视图为机构视图,获取当前路由对应的权限;其中,当前路由为响应于用户操作请求的业务微服务模块所关联的路由;判断机构标识对应的机构下用户角色对应的角色权限是否包含当前路由对应的权限,若是,确定用户角色权限鉴权成功;根据分布式用户身份信息,判断用户是否具备与用户操作请求相关的链上操作权限,若是,确定用户链上权限鉴权成功;若用户角色权限和用户链上权限均鉴权成功,则将指示用户操作鉴权成功的用户操作鉴权结果发送至业务微服务模块。Further, according to the user operation request view, organization identifier, user role and distributed user identity information, determine whether the user operation authorization is successfully authenticated, and send the user operation authentication result to the business microservice module, including: if the user operation request view is Organization view, to obtain the permissions corresponding to the current route; where the current route is the route associated with the business microservice module in response to the user operation request; determine whether the role permissions corresponding to the user roles under the organization corresponding to the organization ID include the permissions corresponding to the current route , if so, determine that the authentication of the user's role authority is successful; according to the distributed user identity information, determine whether the user has the on-chain operation authority related to the user operation request, and if so, determine that the user's on-chain authority authentication is successful; if the user role authority and the user's If all permissions on the chain are successfully authenticated, the user operation authentication result indicating that the user operation authentication is successful is sent to the business microservice module.

进一步地,根据用户操作请求视图、机构标识、用户角色和分布式用户身份信息,确定用户操作权限是否鉴权成功,发送用户操作鉴权结果至业务微服务模块,还包括:若用户操作请求视图为个人视图,将指示用户操作鉴权成功的用户操作鉴权结果发送至业务微服务模块。Further, according to the user operation request view, organization identifier, user role and distributed user identity information, determine whether the user operation authorization is successfully authenticated, send the user operation authentication result to the business microservice module, and also include: if the user operation request view For the personal view, send the user operation authentication result indicating that the user operation authentication is successful to the business microservice module.

第三方面,本申请实施例提供了一种区块链即服务中的用户操作控制方法,前端模块与业务微服务模块建立数据连接,业务微服务模块与用户微服务模块建立数据连接,包括:业务微服务模块响应于用户操作请求,获取用户身份信息,根据用户身份信息,生成并发送用户操作鉴权请求至用户微服务模块;其中,用户操作请求为前端模块通过网关模块发送的;用户微服务模块响应于用户操作鉴权请求,获取用户身份信息;根据用户身份信息,得到用户操作请求视图、机构标识、用户角色和用户标识;根据用户标识确定用户在身份链上的分布式用户身份信息;根据用户操作请求视图、机构标识、用户角色和分布式用户身份信息,确定用户操作权限是否鉴权成功,发送用户操作鉴权结果至业务微服务模块;业务微服务模块异步等待用户操作鉴权结果,执行与用户操作请求相关的业务准备进程;业务微服务模块直至确认用户操作鉴权成功时,执行与用户操作请求相关的链上操作进程。In the third aspect, the embodiment of the present application provides a user operation control method in blockchain as a service, the front-end module establishes a data connection with the business micro-service module, and the business micro-service module establishes a data connection with the user micro-service module, including: The business microservice module obtains the user identity information in response to the user operation request, generates and sends the user operation authentication request to the user microservice module according to the user identity information; among them, the user operation request is sent by the front-end module through the gateway module; the user microservice module The service module obtains the user identity information in response to the user operation authentication request; obtains the user operation request view, institution ID, user role and user ID according to the user ID information; determines the distributed user ID information of the user on the identity chain according to the user ID ;According to the user operation request view, organization ID, user role and distributed user identity information, determine whether the user operation authorization is successfully authenticated, and send the user operation authentication result to the business microservice module; the business microservice module waits for user operation authentication asynchronously As a result, the business preparation process related to the user operation request is executed; the business microservice module executes the on-chain operation process related to the user operation request until it confirms that the user operation authentication is successful.

进一步地,业务微服务模块响应于用户操作请求之前,还包括:网关模块接收用户操作请求和用户操作请求携带的微服务名称;网关模块根据用户操作请求携带的微服务名称和已注册的微服务名称与微服务地址之间的对应关系,得到用户操作请求对应的微服务地址,将用户操作请求发送至用户操作请求对应的微服务地址上的业务微服务模块。Further, before the business microservice module responds to the user operation request, it also includes: the gateway module receives the user operation request and the microservice name carried by the user operation request; the gateway module receives the microservice name carried by the user operation request and the registered microservice The corresponding relationship between the name and the microservice address obtains the microservice address corresponding to the user operation request, and sends the user operation request to the business microservice module on the microservice address corresponding to the user operation request.

第四方面,本申请实施例提供了一种区块链即服务中的用户操作控制装置,包括:响应请求单元,用于响应于用户操作请求,获取用户身份信息,根据用户身份信息,生成并发送用户操作鉴权请求至用户微服务模块;其中,用户操作请求为前端模块通过网关模块发送的;异步等待单元,用于异步等待用户操作鉴权结果,执行与用户操作请求相关的业务准备进程;其中,用户操作鉴权结果为用户微服务模块响应于用户操作鉴权请求,获取用户操作请求视图、机构标识、用户角色和分布式用户身份信息,根据用户操作请求视图、机构标识、用户角色和分布式用户身份信息确定的;操作控制单元,用于直至确认用户操作鉴权成功时,执行与用户操作请求相关的链上操作进程。In a fourth aspect, the embodiment of the present application provides a user operation control device in a blockchain as a service, including: a response request unit, configured to obtain user identity information in response to a user operation request, generate and Send the user operation authentication request to the user microservice module; among them, the user operation request is sent by the front-end module through the gateway module; the asynchronous waiting unit is used to asynchronously wait for the user operation authentication result, and execute the business preparation process related to the user operation request ; Among them, the user operation authentication result is that the user microservice module responds to the user operation authentication request, obtains the user operation request view, organization ID, user role and distributed user identity information, and according to the user operation request view, organization ID, user role and the distributed user identity information; the operation control unit is used to execute the on-chain operation process related to the user operation request until it is confirmed that the user operation authentication is successful.

进一步地,操作控制单元,具体用于:若执行完与用户操作请求相关的业务准备进程时未等待到用户操作鉴权结果,则阻塞与用户操作请求相关的链上操作进程,直至等待到用户操作鉴权结果,根据用户操作鉴权结果确认用户操作鉴权成功时,执行与用户操作请求相关的链上操作进程。Further, the operation control unit is specifically configured to: if the user operation authentication result is not waited for after executing the service preparation process related to the user operation request, then block the on-chain operation process related to the user operation request until the user operation request is received Operation authentication result. When the user operation authentication is confirmed to be successful according to the user operation authentication result, the on-chain operation process related to the user operation request is executed.

第五方面,本申请实施例提供了一种区块链即服务中的用户操作控制装置,包括:第一获取单元,用于响应于用户操作鉴权请求,获取用户身份信息;其中,用户操作鉴权请求为业务微服务模块响应于用户操作请求,获取用户身份信息,根据用户身份信息生成的;第二获取单元,用于根据用户身份信息,得到用户操作请求视图、机构标识、用户角色和用户标识;确定单元,用于根据用户标识确定用户在身份链上的分布式用户身份信息;鉴权单元,用于根据用户操作请求视图、机构标识、用户角色和分布式用户身份信息,确定用户操作权限是否鉴权成功,发送用户操作鉴权结果至业务微服务模块。In the fifth aspect, the embodiment of the present application provides a user operation control device in blockchain as a service, including: a first acquisition unit, configured to acquire user identity information in response to a user operation authentication request; wherein, the user operation The authentication request is generated based on the user identity information obtained by the business microservice module in response to the user operation request; the second acquisition unit is used to obtain the user operation request view, organization ID, user role and User ID; the determination unit is used to determine the user's distributed user identity information on the identity chain according to the user ID; the authentication unit is used to determine the user's identity information according to the user operation request view, organization ID, user role and distributed user identity information Whether the operation authority is authenticated successfully, and the user operation authentication result is sent to the business microservice module.

进一步地,鉴权单元,具体用于:若用户操作请求视图为机构视图,获取当前路由对应的权限;其中,当前路由为响应于用户操作请求的业务微服务模块所关联的路由;判断机构标识对应的机构下用户角色对应的角色权限是否包含当前路由对应的权限,若是,确定用户角色权限鉴权成功;根据分布式用户身份信息,判断用户是否具备与用户操作请求相关的链上操作权限,若是,确定用户链上权限鉴权成功;若用户角色权限和用户链上权限均鉴权成功,则将指示用户操作鉴权成功的用户操作鉴权结果发送至业务微服务模块。Further, the authentication unit is specifically used to: if the user operation request view is an organization view, obtain the authority corresponding to the current route; wherein, the current route is the route associated with the business microservice module responding to the user operation request; determine the organization ID Whether the role authority corresponding to the user role under the corresponding organization includes the authority corresponding to the current route, if so, determine whether the user role authority authentication is successful; according to the distributed user identity information, determine whether the user has the on-chain operation authority related to the user operation request, If yes, it is determined that the authentication of the user's on-chain authority is successful; if both the user's role authority and the user's on-chain authority are successfully authenticated, the user operation authentication result indicating that the user operation authentication is successful is sent to the business microservice module.

进一步地,鉴权单元,还具体用于:响应于用户操作鉴权请求,获取当前路由;其中,当前路由为响应于用户操作请求的业务微服务模块所关联的路由;若当前路由在预配置的白名单路由内,将指示用户操作鉴权成功的用户操作鉴权结果发送至业务微服务模块。Further, the authentication unit is also specifically configured to: obtain the current route in response to the user operation authentication request; wherein, the current route is the route associated with the business microservice module in response to the user operation request; if the current route is in the preconfigured In the whitelist route of , send the user operation authentication result indicating that the user operation authentication is successful to the business microservice module.

第六方面,本申请实施例提供了一种区块链即服务中的用户操作控制装置,包括:响应请求单元,用于业务微服务模块响应于用户操作请求,获取用户身份信息,根据用户身份信息,生成并发送用户操作鉴权请求至用户微服务模块;其中,用户操作请求为前端模块通过网关模块发送的;操作鉴权单元,用于用户微服务模块响应于用户操作鉴权请求,获取用户身份信息;根据用户身份信息,得到用户操作请求视图、机构标识、用户角色和用户标识;根据用户标识确定用户在身份链上的分布式用户身份信息;根据用户操作请求视图、机构标识、用户角色和分布式用户身份信息,确定用户操作权限是否鉴权成功,发送用户操作鉴权结果至业务微服务模块;异步等待单元,用于业务微服务模块异步等待用户操作鉴权结果,执行与用户操作请求相关的业务准备进程;操作控制单元,用于业务微服务模块直至确认用户操作鉴权成功时,执行与用户操作请求相关的链上操作进程。In the sixth aspect, the embodiment of the present application provides a user operation control device in blockchain as a service, including: a response request unit, used for the business microservice module to obtain user identity information in response to the user operation request, and according to the user identity information, generate and send the user operation authentication request to the user micro-service module; wherein, the user operation request is sent by the front-end module through the gateway module; the operation authentication unit is used for the user micro-service module to respond to the user operation authentication request and obtain User identity information; get the user operation request view, organization ID, user role and user ID according to the user ID information; determine the distributed user identity information of the user on the identity chain according to the user ID; role and distributed user identity information, to determine whether the user operation authority is successfully authenticated, and send the user operation authentication result to the business microservice module; the asynchronous waiting unit is used for the business microservice module to asynchronously wait for the user operation authentication result, and executes and communicates with the user The business preparation process related to the operation request; the operation control unit is used for the business micro-service module to execute the on-chain operation process related to the user operation request until the successful authentication of the user operation is confirmed.

进一步地,区块链即服务中的用户操作控制装置,还包括:接收单元,用于网关模块接收用户操作请求和用户操作请求携带的微服务名称;发送单元,用于网关模块根据用户操作请求携带的微服务名称和已注册的微服务名称与微Further, the user operation control device in the blockchain as a service also includes: a receiving unit for the gateway module to receive the user operation request and the microservice name carried in the user operation request; a sending unit for the gateway module to receive the user operation request according to the user operation request The carried microservice name and the registered microservice name are related to the microservice

服务地址之间的对应关系,得到用户操作请求对应的微服务地址,将用户操作5请求发送至用户操作请求对应的微服务地址上的业务微服务模块。Correspondence between service addresses, obtain the microservice address corresponding to the user operation request, and send the user operation 5 request to the business microservice module on the microservice address corresponding to the user operation request.

第七方面,本申请实施例提供了一种区块链即服务中的用户操作控制系统,包括:该系统中包括前端模块、网关模块、业务微服务模块、用户微服务模块和身份链模块。前端模块与业务微服务模块建立数据连接,业务微服务模块与In the seventh aspect, the embodiment of the present application provides a user operation control system in blockchain as a service, including: the system includes a front-end module, a gateway module, a business microservice module, a user microservice module and an identity chain module. The front-end module establishes a data connection with the business micro-service module, and the business micro-service module and

用户微服务模块建立数据连接;业务微服务模块用于响应于用户操作请求,获0取用户身份信息,根据用户身份信息,生成并发送用户操作鉴权请求至用户微服务模块;其中,用户操作请求为前端模块通过网关模块发送的;用户微服务模块用于响应于用户操作鉴权请求,获取用户身份信息;根据用户身份信息,得到用户操作请求视图、机构标识、用户角色和用户标识;根据用户标识确定The user microservice module establishes a data connection; the business microservice module is used to respond to user operation requests, obtain user identity information, generate and send user operation authentication requests to the user microservice module according to user identity information; among them, user operation The request is sent by the front-end module through the gateway module; the user micro-service module is used to obtain user identity information in response to the user operation authentication request; according to the user identity information, obtain the user operation request view, organization ID, user role and user ID; according to User ID determination

用户在身份链模块中存储的身份链上的分布式用户身份信息;根据用户操作请5求视图、机构标识、用户角色和分布式用户身份信息,确定用户操作权限是否鉴权成功,发送用户操作鉴权结果至业务微服务模块;业务微服务模块还用于异步等待用户操作鉴权结果,执行与用户操作请求相关的业务准备进程;业务微服务模块还用于直至确认用户操作鉴权成功时,执行与用户操作请求相关的链上操作进程。The distributed user identity information on the identity chain stored by the user in the identity chain module; according to the user operation request view, organization ID, user role and distributed user identity information, determine whether the user operation authority is successfully authenticated, and send the user operation The authentication result is sent to the business microservice module; the business microservice module is also used to asynchronously wait for the user operation authentication result, and executes the business preparation process related to the user operation request; the business microservice module is also used to confirm that the user operation authentication is successful , to execute the on-chain operation process related to the user operation request.

0进一步地,网关模块用于接收用户操作请求和用户操作请求携带的微服务名称;根据用户操作请求携带的微服务名称和已注册的微服务名称与微服务地址之间的对应关系,得到用户操作请求对应的微服务地址,将用户操作请求发送至用户操作请求对应的微服务地址上的业务微服务模块。0 Further, the gateway module is used to receive the user operation request and the microservice name carried by the user operation request; according to the corresponding relationship between the microservice name carried by the user operation request and the registered microservice name and the microservice address, the user The microservice address corresponding to the operation request, and send the user operation request to the business microservice module on the microservice address corresponding to the user operation request.

第八方面,本申请实施例提供了一种计算机可读存储介质,计算机可读存5储介质存储有计算机程序,计算机程序被处理器执行时实现如上述第一方面、第二方面或第三方面的方法。In an eighth aspect, an embodiment of the present application provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the above-mentioned first aspect, second aspect or third aspect can be realized. aspects of the method.

本申请实施例中,为了能够实现用户操控鉴权,对用户操作进行控制,配置区块链即服务的架构为前端模块与业务微服务模块建立数据连接,业务微服务模块再与用户微服务模块建立数据连接。In the embodiment of this application, in order to realize user manipulation authentication and control user operations, the blockchain-as-a-service architecture is configured to establish a data connection between the front-end module and the business micro-service module, and the business micro-service module and the user micro-service module Establish a data connection.

对于业务微服务模块来说,考虑到一般情况下,用户操作鉴权应该是迅速且正确的,因而,业务微服务模块在响应于前端模块通过网关模块发送的用户操作请求时,会立即获取用户身份信息,根据用户身份信息,生成并发送用户操作鉴权请求至用户微服务模块,并异步等待用户微服务模块的用户操作鉴权结果,执行与用户操作请求相关的业务准备进程,从而可以缩短用户操作请求的等待时间,一般情况下用户操作鉴权是成功的,但是依旧存在用户操作鉴权失败的可能性,因此,在业务准备完成后,业务微服务模块会等待用户操作鉴权结果,直至确认用户操作鉴权成功时,再执行与用户操作请求相关的链上操作进程,从而保证了链上操作的安全性,对用户操作进行了有效地控制,避免出现越权操作。For the business microservice module, considering that under normal circumstances, user operation authentication should be fast and correct. Therefore, when the business microservice module responds to the user operation request sent by the front-end module through the gateway module, it will immediately obtain the user Identity information, according to the user identity information, generate and send user operation authentication requests to the user microservice module, and asynchronously wait for the user operation authentication results of the user microservice module, and execute the business preparation process related to the user operation request, thus shortening the The waiting time for user operation requests. Generally, user operation authentication is successful, but there is still the possibility of user operation authentication failure. Therefore, after the business preparation is completed, the business microservice module will wait for the user operation authentication result. Until the successful authentication of the user operation is confirmed, the on-chain operation process related to the user operation request is executed, thereby ensuring the security of the operation on the chain, effectively controlling the user operation, and avoiding unauthorized operations.

对于用户微服务模块来说,无论是哪一业务微服务模块响应于用户操作请求,都会通过用户微服务模块进行用户操作鉴权,具体地,用户微服务模块响应于业务微服务模块发送的用户操作鉴权请求,获取用户身份信息,根据用户身份信息,得到用户操作请求视图、机构标识、用户角色和用户标识,根据用户标识确定用户在身份链上的分布式用户身份信息,最后,根据用户操作请求视图、机构标识、用户角色和分布式用户身份信息,确定用户操作权限是否鉴权成功,发送用户操作鉴权结果至业务微服务模块,这一过程中用户微服务模块不仅实现了用户角色权限的鉴权,也整合了身份链中的分布式用户身份信息,实现了用户链上权限鉴权,从而通过用户操作鉴权结果保证了业务微服务模块对用户操作进行有效控制。For the user microservice module, no matter which business microservice module responds to the user operation request, the user operation authentication will be performed through the user microservice module. Specifically, the user microservice module responds to the user Operate the authentication request to obtain user identity information. According to the user identity information, obtain the user operation request view, organization ID, user role and user ID, and determine the distributed user identity information of the user on the identity chain according to the user ID. Finally, according to the user Operation request view, organization ID, user role and distributed user identity information, determine whether the user operation authority is successfully authenticated, and send the user operation authentication result to the business microservice module. In this process, the user microservice module not only realizes the user role The authority authentication also integrates the distributed user identity information in the identity chain to realize the authority authentication on the user chain, thereby ensuring the effective control of user operations by the business microservice module through the user operation authentication results.

附图说明Description of drawings

为了更清楚地说明本申请实施例中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the accompanying drawings that need to be used in the descriptions of the embodiments or the prior art will be briefly introduced below. Obviously, the accompanying drawings in the following description are only for the present application For some embodiments, those of ordinary skill in the art can also obtain other drawings based on these drawings without paying creative efforts.

图1是本申请第一实施例提供的一种区块链即服务中的用户操作控制系统的架构示意图;FIG. 1 is a schematic diagram of the architecture of a user operation control system in a blockchain as a service provided in the first embodiment of the present application;

图2是本申请第二实施例提供的一种区块链即服务中的用户操作控制方法的示意流程图;FIG. 2 is a schematic flowchart of a user operation control method in a blockchain as a service provided in the second embodiment of the present application;

图3是本申请第三实施例提供的一种区块链即服务中的用户操作控制方法的示意流程图;Fig. 3 is a schematic flowchart of a user operation control method in a blockchain as a service provided in the third embodiment of the present application;

图4是本申请第三实施例提供的一种区块链即服务中的用户操作控制方法中S204的示意流程图;FIG. 4 is a schematic flowchart of S204 in a user operation control method in a blockchain as a service provided in the third embodiment of the present application;

图5是本申请第三实施例提供的一种区块链即服务中的用户操作控制方法的另一示意流程图;FIG. 5 is another schematic flowchart of a user operation control method in a blockchain as a service provided in the third embodiment of the present application;

图6是本申请第四实施例提供的一种区块链即服务中的用户操作控制方法的示意流程图;FIG. 6 is a schematic flowchart of a user operation control method in a blockchain as a service provided in the fourth embodiment of the present application;

图7是本申请第五实施例提供的区块链即服务中的用户操作控制装置的示意图;Fig. 7 is a schematic diagram of a user-operated control device in the blockchain as a service provided by the fifth embodiment of the present application;

图8是本申请第六实施例提供的区块链即服务中的用户操作控制装置的示意图;Fig. 8 is a schematic diagram of a user-operated control device in the blockchain as a service provided by the sixth embodiment of the present application;

图9是本申请第七实施例提供的区块链即服务中的用户操作控制装置的示意图。FIG. 9 is a schematic diagram of a user-operated control device in the blockchain as a service provided by the seventh embodiment of the present application.

具体实施方式Detailed ways

以下描述中,为了说明而不是为了限定,提出了诸如特定系统结构、技术之类的具体细节,以便透彻理解本申请实施例。然而,本领域的技术人员应当清楚,在没有这些具体细节的其它实施例中也可以实现本申请。在其它情况中,省略对众所周知的系统、装置、电路以及方法的详细说明,以免不必要的细节妨碍本申请的描述。In the following description, specific details such as specific system structures and technologies are presented for the purpose of illustration rather than limitation, so as to thoroughly understand the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.

应当理解,当在本申请说明书和所附权利要求书中使用时,术语“包括”指示所描述特征、整体、步骤、操作、元素和/或组件的存在,但并不排除一个或多个其它特征、整体、步骤、操作、元素、组件和/或其集合的存在或添加。It should be understood that when used in this specification and the appended claims, the term "comprising" indicates the presence of described features, integers, steps, operations, elements and/or components, but does not exclude one or more other Presence or addition of features, wholes, steps, operations, elements, components and/or collections thereof.

还应当理解,在本申请说明书和所附权利要求书中使用的术语“和/或”是指相关联列出的项中的一个或多个的任何组合以及所有可能组合,并且包括这些组合。It should also be understood that the term "and/or" used in the description of the present application and the appended claims refers to any combination and all possible combinations of one or more of the associated listed items, and includes these combinations.

如在本申请说明书和所附权利要求书中所使用的那样,术语“如果”可以依据上下文被解释为“当...时”或“一旦”或“响应于确定”或“响应于检测到”。类似地,短语“如果确定”或“如果检测到[所描述条件或事件]”可以依据上下文被解释为意指“一旦确定”或“响应于确定”或“一旦检测到[所描述条件或事件]”或“响应于检测到[所描述条件或事件]”。As used in this specification and the appended claims, the term "if" may be construed, depending on the context, as "when" or "once" or "in response to determining" or "in response to detecting ". Similarly, the phrase "if determined" or "if [the described condition or event] is detected" may be construed, depending on the context, to mean "once determined" or "in response to the determination" or "once detected [the described condition or event] ]” or “in response to detection of [described condition or event]”.

另外,在本申请说明书和所附权利要求书的描述中,术语“第一”、“第二”、“第三”等仅用于区分描述,而不能理解为指示或暗示相对重要性。In addition, in the description of the specification and the appended claims of the present application, the terms "first", "second", "third" and so on are only used to distinguish descriptions, and should not be understood as indicating or implying relative importance.

在本申请说明书中描述的参考“一个实施例”或“一些实施例”等意味着在本申请的一个或多个实施例中包括结合该实施例描述的特定特征、结构或特点。由此,在本说明书中的不同之处出现的语句“在一个实施例中”、“在一些实施例中”、“在其他一些实施例中”、“在另外一些实施例中”等不是必然都参考相同的实施例,而是意味着“一个或多个但不是所有的实施例”,除非是以其他方式另外特别强调。术语“包括”、“包含”、“具有”及它们的变形都意味着“包括但不限于”,除非是以其他方式另外特别强调。Reference to "one embodiment" or "some embodiments" or the like in the specification of the present application means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in other embodiments," etc. in various places in this specification are not necessarily All refer to the same embodiment, but mean "one or more but not all embodiments" unless specifically stated otherwise. The terms "including", "comprising", "having" and variations thereof mean "including but not limited to", unless specifically stated otherwise.

请参见图1,图1是本申请第一实施例提供的一种区块链即服务中的用户操作控制系统的架构示意图,该系统中包括前端模块101、网关模块102、业务微服务模块103、用户微服务模块104和身份链模块105。Please refer to FIG. 1. FIG. 1 is a schematic diagram of the architecture of a user operation control system in blockchain as a service provided by the first embodiment of the present application. The system includes a front-end module 101, a gateway module 102, and a business microservice module 103. , the user microservice module 104 and the identity chain module 105.

前端模块101通过网关模块102与业务微服务模块103交互,业务微服务模块103与用户微服务模块104交互,用户微服务模块104与身份链模块105交互。上述交互是指通过建立数据连接,进行数据的流转交互。The front-end module 101 interacts with the business microservice module 103 through the gateway module 102, the business microservice module 103 interacts with the user microservice module 104, and the user microservice module 104 interacts with the identity chain module 105. The above-mentioned interaction refers to the exchange of data through the establishment of a data connection.

需要指出的是,对于模块这一概念存在多种理解,例如,将其理解为硬件设备中的程序,或者,也可以将其理解硬件设备。It should be pointed out that there are various understandings of the concept of a module, for example, it can be understood as a program in a hardware device, or it can also be understood as a hardware device.

在本申请实施例中,系统的各个模块均是指硬件设备,前端模块101是指实现前端功能的硬件设备,网关模块102是指实现网关功能的硬件设备,业务微服务模块103是指承载业务微服务功能的硬件设备,用户微服务模块104是指承载用户微服务功能的硬件设备,身份链模块105是指存储身份链(每个用户在身份链上存在对应的分布式用户身份,即,DID)的硬件设备。In this embodiment of the application, each module of the system refers to a hardware device, the front-end module 101 refers to a hardware device that realizes a front-end function, the gateway module 102 refers to a hardware device that realizes a gateway function, and the business microservice module 103 refers to a The hardware device of the microservice function, the user microservice module 104 refers to the hardware device carrying the user microservice function, and the identity chain module 105 refers to the storage identity chain (each user has a corresponding distributed user identity on the identity chain, that is, DID) hardware device.

系统中可以包括若干个业务微服务模块103,不同的业务微服务模块103承103载不同的业务微服务功能,每个业务微服务模块103有对应的微服务地址。The system may include several business microservice modules 103, and different business microservice modules 103 carry different business microservice functions, and each business microservice module 103 has a corresponding microservice address.

业务微服务模块103均与用户微服务模块104交互,触发用户微服务模块104进行用户操作鉴权,用户微服务模块104鉴权过程中会与身份链模块105交互。上述用户操作控制系统的架构能够很好地适配区块链即服务,下面将通过若干个实施例对区块链即服务中的用户操作控制方法进行详细说明,以表明上述模块在区块链即服务中如何实现用户操作鉴权、用户操作控制。The business microservice module 103 interacts with the user microservice module 104, and triggers the user microservice module 104 to perform user operation authentication. The user microservice module 104 interacts with the identity chain module 105 during the authentication process. The architecture of the above-mentioned user operation control system can be well adapted to the blockchain as a service. The user operation control method in the blockchain as a service will be described in detail below through several embodiments to show that the above modules are integrated in the blockchain. That is, how to implement user operation authentication and user operation control in the service.

请参见图2,图2是本申请第二实施例提供的一种区块链即服务中的用户操作控制方法的示意流程图。本实施例中一种区块链即服务中的用户操作控制方法的执行主体为业务微服务模块,该业务微服务模块可以为服务器、服务器集群等,也可以为服务器中的处理器、微处理器等,不具体对其进行限定。如图2所示的区块链即服务中的用户操作控制方法可以包括:Please refer to FIG. 2 . FIG. 2 is a schematic flowchart of a user operation control method in blockchain as a service provided by the second embodiment of the present application. In this embodiment, the execution subject of a user operation control method in a blockchain as a service is a business micro-service module, and the business micro-service module can be a server, a server cluster, etc., or a processor in a server, a micro-processing devices, etc., and are not specifically limited. The user operation control method in the blockchain as a service shown in Figure 2 may include:

S101:响应于用户操作请求,获取用户身份信息,根据用户身份信息,生成并发送用户操作鉴权请求至用户微服务模块;其中,用户操作请求为前端模块通过网关模块发送的。S101: Obtain user identity information in response to a user operation request, generate and send a user operation authentication request to the user microservice module according to the user identity information; wherein, the user operation request is sent by the front-end module through the gateway module.

在本实施例中,业务微服务模块分别与前端模块和用户微服务模块建立数据连接,用于进行数据的流转交互。In this embodiment, the business micro-service module respectively establishes data connections with the front-end module and the user micro-service module for data exchange and interaction.

业务微服务模块响应于用户操作请求,获取用户身份信息,根据用户身份信息,生成并发送用户操作鉴权请求至用户微服务模块。The business microservice module obtains user identity information in response to the user operation request, generates and sends a user operation authentication request to the user microservice module according to the user identity information.

其中,用户操作请求为前端模块通过网关模块发送的。关于业务微服务、用户微服务模块以及前端模块可以参见第一实施例的说明,在此不进行复述。Wherein, the user operation request is sent by the front-end module through the gateway module. For business microservices, user microservice modules, and front-end modules, reference may be made to the description of the first embodiment, which will not be repeated here.

简单理解来说,用户根据需求在前端模块中操作,触发前端模块生成该用户操作请求,前端模块通过网关模块将该用户操作请求发送至业务微服务模块。In a simple understanding, the user operates in the front-end module according to the requirement, triggers the front-end module to generate the user operation request, and the front-end module sends the user operation request to the business microservice module through the gateway module.

举例来说,需求可以是在部署一份合约,也可以是创建一条新的链。For example, a requirement could be deploying a contract or creating a new chain.

用户操作请求中至少包括用户身份信息,在一个可选的实施方式中,该用户身份信息可以是指用户token(令牌),其可以指明用户的唯一身份,用于进行用户操作鉴权。The user operation request includes at least user identity information. In an optional embodiment, the user identity information may refer to a user token (token), which may indicate the unique identity of the user and is used for user operation authentication.

由于区块链即服务中可能包括若干个业务微服务模块,不同的业务微服务模块用于处理不同的用户操作,解决不同的用户需求,因此,需要确定对应的业务微服务模块响应于用户操作请求。Since blockchain-as-a-service may include several business microservice modules, different business microservice modules are used to process different user operations and solve different user needs. Therefore, it is necessary to determine the corresponding business microservice modules to respond to user operations ask.

在一个可选的实施方式中,响应于用户操作请求的业务微服务模块为网关模块根据用户操作请求携带的微服务名称以及已注册的微服务名称与微服务地址之间的对应关系确定的。In an optional implementation, the business microservice module responding to the user operation request is determined by the gateway module according to the microservice name carried in the user operation request and the corresponding relationship between the registered microservice name and the microservice address.

可以理解的是,用户操作请求会携带相应的微服务名称,网关模块中存储有已注册的微服务名称与微服务地址之间的对应关系,那么根据用户操作请求携带的微服务名称,就可以得到一个对应的微服务地址,进而就可以将该用户操作请求发送至该微服务地址上的业务微服务模块。It is understandable that the user operation request will carry the corresponding micro-service name, and the gateway module stores the corresponding relationship between the registered micro-service name and the micro-service address, then according to the micro-service name carried by the user operation request, you can After obtaining a corresponding microservice address, the user operation request can be sent to the business microservice module on the microservice address.

该业务微服务模块获取到用户身份信息后,根据用户身份信息,生成并发送用户操作鉴权请求至用户微服务模块。After the business microservice module obtains the user identity information, it generates and sends a user operation authentication request to the user microservice module according to the user identity information.

S102:异步等待用户操作鉴权结果,执行与用户操作请求相关的业务准备进程;其中,用户操作鉴权结果为用户微服务模块响应于用户操作鉴权请求,获取用户操作请求视图、机构标识、用户角色和分布式用户身份信息,根据用户操作请求视图、机构标识、用户角色和分布式用户身份信息确定的。S102: Asynchronously wait for the user operation authentication result, and execute the business preparation process related to the user operation request; wherein, the user operation authentication result is that the user microservice module responds to the user operation authentication request, and obtains the user operation request view, organization ID, User roles and distributed user identity information are determined according to the user operation request view, institution ID, user role and distributed user identity information.

业务微服务模块异步等待用户操作鉴权结果,执行与用户操作请求相关的业务准备进程。The business microservice module asynchronously waits for the user operation authentication result, and executes the business preparation process related to the user operation request.

也就是说,业务微服务模块会在获取用户身份信息后,会生成并发送用户操作鉴权请求至用户微服务模块,并会异步执行与用户操作请求相关的业务准备进程,而不是等待到用户操作鉴权结果后,再执行与用户操作请求相关的业务准备进程。That is to say, after obtaining the user identity information, the business microservice module will generate and send the user operation authentication request to the user microservice module, and will asynchronously execute the business preparation process related to the user operation request, instead of waiting for the user to After operating the authentication result, execute the business preparation process related to the user operation request.

因为在一般情况下,用户操作鉴权的处理逻辑应该是迅速且正确的,比如:用户的正常页面操作并不会存在无权限的问题,因此,用户操作鉴权在正常情况下是会成功的,业务微服务模块在收到用户操作请求后,异步等待用户微服务模块的用户操作鉴权结果,可以极大程度上减少请求等待时间,缩短用户操作请求的反馈时长。Because under normal circumstances, the processing logic of user operation authentication should be fast and correct. For example, the user's normal page operation will not have the problem of no permission. Therefore, user operation authentication will succeed under normal circumstances. After receiving the user operation request, the business microservice module asynchronously waits for the user operation authentication result of the user microservice module, which can greatly reduce the request waiting time and shorten the feedback time of the user operation request.

用户操作鉴权是由用户微服务模块进行的,具体来说,用户操作鉴权结果为用户微服务模块响应于用户操作鉴权请求,获取用户操作请求视图、机构标识、用户角色和分布式用户身份信息,根据用户操作请求视图、机构标识、用户角色和分布式用户身份信息确定的。User operation authentication is performed by the user microservice module. Specifically, the user operation authentication result is that the user microservice module responds to the user operation authentication request and obtains the user operation request view, organization ID, user role and distributed user Identity information, determined according to user operation request view, institution ID, user role and distributed user identity information.

其中,用户操作请求视图、机构标识、用户角色用于进行用户角色权限的鉴权,分布式用户身份信息用于进行用户链上权限的鉴权。Among them, the user operation request view, organization ID, and user role are used to authenticate user role permissions, and distributed user identity information is used to authenticate user permissions on the chain.

具体如何进行用户操作鉴权请参见第三实施例的说明,在此不对其进行展开说明。For details on how to perform user operation authentication, please refer to the description of the third embodiment, which will not be further described here.

用户操作鉴权结果会指示用户操作鉴权成功或用户操作鉴权失败。The user operation authentication result will indicate that the user operation authentication succeeds or the user operation authentication fails.

如前述需要进行用户角色权限的鉴权和用户链上权限的鉴权,在本实施例中,当两个权限均鉴权成功时,确定用户操作鉴权成功。As mentioned above, it is necessary to authenticate user role permissions and user chain permissions. In this embodiment, when both permissions are successfully authenticated, it is determined that user operation authentication is successful.

还需要说明的是,某些用户操作是无需鉴权的,无需鉴权归属于用户操作鉴权成功。例如:用户在个人视图下的操作即是无需鉴权的。It should also be noted that some user operations do not require authentication, and authentication-free operations are attributed to successful authentication of user operations. For example: the user's operation in the personal view does not require authentication.

上述执行与用户操作请求相关的业务准备进程可以理解为执行与用户操作请求相关的业务逻辑处理。The above execution of the business preparation process related to the user operation request can be understood as the execution of business logic processing related to the user operation request.

S103:直至确认用户操作鉴权成功时,执行与用户操作请求相关的链上操作进程。S103: Execute the on-chain operation process related to the user operation request until it is confirmed that the user operation authentication is successful.

业务微服务模块直至确认用户操作鉴权成功时,执行与用户操作请求相关的链上操作进程。The business microservice module executes the on-chain operation process related to the user operation request until it confirms that the user operation authentication is successful.

具体来说,若执行完与用户操作请求相关的业务准备进程时未等待到用户操作鉴权结果,则业务微服务模块阻塞与用户操作请求相关的链上操作进程,直至等待到用户操作鉴权结果,根据用户操作鉴权结果确认用户操作鉴权成功时,执行与用户操作请求相关的链上操作进程。Specifically, if the business preparation process related to the user operation request is executed without waiting for the user operation authentication result, the business microservice module blocks the on-chain operation process related to the user operation request until it waits for the user operation authentication As a result, when the user operation authentication is confirmed to be successful according to the user operation authentication result, the on-chain operation process related to the user operation request is executed.

业务微服务模块阻塞与用户操作请求相关的链上操作进程可以理解为将用户操作请求相关的链上操作进程设置为阻塞状态。The blocking of the on-chain operation process related to the user operation request by the business microservice module can be understood as setting the on-chain operation process related to the user operation request to a blocked state.

举例来说,对于部署合约的用户操作请求,当执行完与该用户操作请求相关的业务准备进程后,直至确认用户操作鉴权成功时,业务微服务模块才会执行与该用户操作请求相关的链上操作进程,即,在链上部署一份合约。For example, for a user operation request to deploy a contract, after the business preparation process related to the user operation request is completed, the business microservice module will not execute the related user operation request until it is confirmed that the user operation authentication is successful. The operation process on the chain, that is, deploying a contract on the chain.

本申请实施例中,为了能够实现用户操控鉴权,对用户操作进行控制,配置区块链即服务的架构为前端模块与业务微服务模块建立数据连接,业务微服务模块再与用户微服务模块建立数据连接,对于业务微服务模块来说,考虑到一般情况下,用户操作鉴权应该是迅速且正确的,因而,业务微服务模块在响应于前端模块通过网关模块发送的用户操作请求时,会立即获取用户身份信息,根据用户身份信息,生成并发送用户操作鉴权请求至用户微服务模块,并异步等待用户微服务模块的用户操作鉴权结果,执行与用户操作请求相关的业务准备进程,从而可以缩短用户操作请求的等待时间,一般情况下用户操作鉴权是成功的,但是依旧存在用户操作鉴权失败的可能性,因此,在业务准备完成后,业务微服务模块会等待用户操作鉴权结果,直至确认用户操作鉴权成功时,再执行与用户操作请求相关的链上操作进程,从而保证了链上操作的安全性,对用户操作进行了有效地控制,避免出现越权操作。In the embodiment of this application, in order to realize user manipulation authentication and control user operations, the blockchain-as-a-service architecture is configured to establish a data connection between the front-end module and the business micro-service module, and the business micro-service module and the user micro-service module To establish a data connection, for the business micro-service module, considering that under normal circumstances, user operation authentication should be fast and correct. Therefore, when the business micro-service module responds to the user operation request sent by the front-end module through the gateway module, It will immediately obtain the user identity information, generate and send the user operation authentication request to the user microservice module according to the user identity information, and asynchronously wait for the user operation authentication result of the user microservice module, and execute the business preparation process related to the user operation request , so that the waiting time for user operation requests can be shortened. Generally, user operation authentication is successful, but there is still the possibility of user operation authentication failure. Therefore, after the business preparation is completed, the business microservice module will wait for the user operation As a result of the authentication, until the successful authentication of the user operation is confirmed, the on-chain operation process related to the user operation request is executed, thereby ensuring the security of the operation on the chain, effectively controlling the user operation, and avoiding unauthorized operations.

请参见图3,图3是本申请第三实施例提供的一种区块链即服务中的用户操作控制方法的示意流程图。本实施例中一种区块链即服务中的用户操作控制方法的执行主体为用户微服务模块,该用户微服务模块可以为服务器、服务器集群等,也可以为服务器中的处理器、微处理器等,不具体对其进行限定。如图3所示的区块链即服务中的用户操作控制方法可以包括:Please refer to FIG. 3 . FIG. 3 is a schematic flowchart of a user operation control method in blockchain as a service provided by the third embodiment of the present application. In this embodiment, the execution subject of a user operation control method in blockchain as a service is a user microservice module. The user microservice module can be a server, a server cluster, etc., or a processor in a server, a microprocessor devices, etc., and are not specifically limited. The user operation control method in the blockchain as a service shown in Figure 3 may include:

S201:响应于用户操作鉴权请求,获取用户身份信息;其中,用户操作鉴权请求为业务微服务模块响应于用户操作请求,获取用户身份信息,根据用户身份信息生成的。S201: Obtain user identity information in response to a user operation authentication request; wherein, the user operation authentication request is generated according to the user identity information obtained by the business microservice module in response to the user operation request.

用户微服务模块响应于用户操作鉴权请求,获取用户身份信息。The user microservice module obtains user identity information in response to user operation authentication requests.

如前所述,用户微服务模块与业务微服务模块建立数据连接,业务微服务模块与前端模块建立数据连接,由用户微服务模块进行用户操作鉴权。As mentioned above, the user microservice module establishes a data connection with the business microservice module, the business microservice module establishes a data connection with the front-end module, and the user microservice module performs user operation authentication.

其中,用户操作鉴权请求为业务微服务模块响应于用户操作请求,获取用户身份信息,根据用户身份信息生成的。Wherein, the user operation authentication request is generated according to the user identity information acquired by the business microservice module in response to the user operation request.

在一个可选的实施方式中,该用户身份信息可以是指用户token(令牌),其可以指明用户的唯一身份,用于进行用户操作鉴权。In an optional implementation manner, the user identity information may refer to a user token (token), which may indicate the unique identity of the user, and is used for user operation authentication.

S202:根据用户身份信息,得到用户操作请求视图、机构标识、用户角色和用户标识。S202: According to the user identity information, obtain a user operation request view, an institution ID, a user role, and a user ID.

用户微服务模块根据用户身份信息,得到用户操作请求视图、机构标识、用户角色和用户标识。According to the user identity information, the user micro-service module obtains the user operation request view, organization ID, user role and user ID.

区块链即服务中每个用户在登陆后存在个人视图和机构视图(用户加入某一机构后存在机构视图),个人视图下用户操作是无需鉴权的,机构视图下用户被赋予各种角色,每个角色在机构视图下的所有操作是需要进行鉴权的,从而才能防止机构下的用户出现越权操作。In the blockchain as a service, each user has a personal view and an organization view after logging in (there is an organization view after the user joins an organization), user operations in the personal view do not require authentication, and users in the organization view are assigned various roles , all operations of each role in the organization view need to be authenticated, so as to prevent users under the organization from performing unauthorized operations.

上述用户操作请求视图可能为个人视图,也可能为机构视图。The above user operation request view may be a personal view or an institutional view.

机构标识是区块链即服务中机构对应的唯一标识,此处用于指明用户加入哪一机构中。The organization ID is the unique ID corresponding to the organization in the blockchain as a service, and it is used here to indicate which organization the user joins.

用户角色是用户在该机构标识对应的机构中的角色。例如:区块链开发角色、区块链运维角色。The user role is the user's role in the organization corresponding to the organization ID. For example: blockchain development roles, blockchain operation and maintenance roles.

用户标识是区块链即服务中用户对应的唯一标识,此处用于指明是对哪一用户进行操作鉴权。The user ID is the unique ID corresponding to the user in the blockchain as a service, and it is used here to indicate which user is to perform operation authentication.

S203:根据用户标识确定用户在身份链上的分布式用户身份信息。S203: Determine the user's distributed user identity information on the identity chain according to the user identity.

除了要进行用户角色权限鉴权外,区块链即服务也对接一条身份链,每个用户在身份链上对应一个身份,即分布式用户身份,该身份决定了用户在链上操作的权限,因此,还需要对用户的链上操作权限进行鉴权。In addition to authentication of user roles and permissions, blockchain-as-a-service is also connected to an identity chain. Each user corresponds to an identity on the identity chain, that is, a distributed user identity, which determines the user's authority to operate on the chain. Therefore, it is also necessary to authenticate the user's on-chain operation authority.

在进行链上操作权限鉴权之前,用户微服务模块需要根据用户标识确定用户在身份链上的分布式用户身份信息(即,DID)。Before performing on-chain operation permission authentication, the user micro-service module needs to determine the user's distributed user identity information (ie, DID) on the identity chain according to the user ID.

S204:根据用户操作请求视图、机构标识、用户角色和分布式用户身份信息,确定用户操作权限是否鉴权成功,发送用户操作鉴权结果至业务微服务模块。S204: According to the user operation request view, organization identification, user role and distributed user identity information, determine whether the user operation authorization is successfully authenticated, and send the user operation authentication result to the business microservice module.

用户微服务模块根据用户操作请求视图、机构标识、用户角色和分布式用户身份信息,确定用户操作权限是否鉴权成功,发送用户操作鉴权结果至业务微服务模块。The user micro-service module determines whether the authentication of the user operation authority is successful according to the user operation request view, organization identification, user role and distributed user identity information, and sends the user operation authentication result to the business micro-service module.

具体地,用户微服务模块根据用户操作请求视图、机构标识、用户角色用于用户角色权限的鉴权,用户微服务模块根据分布式用户身份信息,进行用户链上权限的鉴权。Specifically, the user microservice module is used to authenticate user role permissions according to user operation request views, organization identifiers, and user roles, and the user microservice module performs authentication of user on-chain permissions based on distributed user identity information.

用户操作鉴权结果会指示用户操作鉴权成功或用户操作鉴权失败。The user operation authentication result will indicate that the user operation authentication succeeds or the user operation authentication fails.

如前述需要进行用户角色权限的鉴权和用户链上权限的鉴权,在本实施例中,当两个权限均鉴权成功时,确定用户操作鉴权成功。As mentioned above, it is necessary to authenticate user role permissions and user chain permissions. In this embodiment, when both permissions are successfully authenticated, it is determined that user operation authentication is successful.

还需要说明的是,某些用户操作是无需鉴权的,无需鉴权归属于用户操作鉴权成功。It should also be noted that some user operations do not require authentication, and authentication-free operations are attributed to successful authentication of user operations.

在一个可选的实施方式中,请参阅图4,图4是本申请第三实施例提供的一种区块链即服务中的用户操作控制方法中S204的示意流程图,S204包括:In an optional implementation, please refer to FIG. 4. FIG. 4 is a schematic flowchart of S204 in a user operation control method in a blockchain as a service provided in the third embodiment of the present application. S204 includes:

S2041:若用户操作请求视图为机构视图,获取当前路由对应的权限;其中,当前路由为响应于用户操作请求的业务微服务模块所关联的路由。S2041: If the user operation request view is an organization view, obtain the authority corresponding to the current route; wherein, the current route is the route associated with the business microservice module responding to the user operation request.

S2042:判断机构标识对应的机构下用户角色对应的角色权限是否包含当前路由对应的权限,若是,确定用户角色权限鉴权成功。S2042: Determine whether the role authority corresponding to the user role under the organization corresponding to the organization identifier includes the authority corresponding to the current route, and if so, determine that the authentication of the user role authority is successful.

关于步骤S2041~S2042,若用户操作请求视图为机构视图,获取当前路由对应的权限,当前路由是指响应于用户操作请求的业务微服务模块所关联的路由。可以理解的是,业务微服务模块发送出用户操作鉴权请求至用户微服务模块时会通过路由,每个业务微服务模块都有其所关联的路由,区块链即服务中存在路由与权限的对应关系,例如:部署合约的这个操作的路由对应的权限为A,用户微服务模块需要获取到当前路由对应的权限,判断机构标识对应的机构下用户角色对应的角色权限是否包含当前路由对应的权限,若是,则确定用户角色权限鉴权成功,若否,则确定用户角色权限鉴权失败。Regarding steps S2041-S2042, if the user operation request view is an organization view, the authority corresponding to the current route is obtained. The current route refers to the route associated with the business microservice module that responds to the user operation request. It is understandable that when the business microservice module sends the user operation authentication request to the user microservice module, it will pass through the route. Each business microservice module has its associated route. There are routes and permissions in the blockchain as a service. For example, the authority corresponding to the route of this operation of deploying the contract is A, the user microservice module needs to obtain the authority corresponding to the current route, and judge whether the role authority corresponding to the user role under the organization corresponding to the organization ID includes the corresponding authority of the current route If yes, it is determined that the authentication of the user role authority is successful, and if not, it is determined that the authentication of the user role authority fails.

S2043:根据分布式用户身份信息,判断用户是否具备与用户操作请求相关的链上操作权限,若是,确定用户链上权限鉴权成功。S2043: According to the distributed user identity information, determine whether the user has the on-chain operation authority related to the user operation request, and if so, determine that the user's on-chain authority authentication is successful.

每个分布式用户身份信息均具有其对应的链上操作权限,用户微服务模块根据分布式用户身份信息,判断用户是否具备与用户操作请求相关的链上操作权限,若是,确定用户链上权限鉴权成功,若否,确定用户链上权限鉴权失败。Each distributed user identity information has its corresponding on-chain operation authority, and the user micro-service module judges whether the user has the on-chain operation authority related to the user operation request based on the distributed user identity information, and if so, determines the user's on-chain authority If the authentication is successful, if not, it is determined that the authentication of the user's on-chain authority has failed.

关于步骤S2041~S2042所进行的用户角色权限鉴权和步骤S2043所进行的用户链上权限鉴权可以并行实现,也可以先进行用户角色权限鉴权,再进行用户链上权限鉴权。若先进行用户角色权限鉴权,再进行用户链上权限鉴权,则用户角色权限鉴权失败时,无需再进行用户链上权限鉴权,反之亦然。The user role authority authentication in steps S2041-S2042 and the user on-chain authority authentication in step S2043 can be implemented in parallel, or the user role authority authentication can be performed first, and then the user on-chain authority authentication can be performed. If the user role authority authentication is performed first, and then the user on-chain authority authentication is performed, when the user role authority authentication fails, there is no need to perform user on-chain authority authentication, and vice versa.

S2044:若用户角色权限和用户链上权限均鉴权成功,则将指示用户操作鉴权成功的用户操作鉴权结果发送至业务微服务模块。S2044: If both the user role authority and the user chain authority are successfully authenticated, send the user operation authentication result indicating that the user operation authentication is successful to the business microservice module.

若用户角色权限和用户链上权限均鉴权成功,则用户微服务模块将指示用户操作鉴权成功的用户操作鉴权结果发送至业务微服务模块。If both the user role authority and the user chain authority are successfully authenticated, the user microservice module sends the user operation authentication result indicating that the user operation authentication is successful to the business microservice module.

在一个可选的实施方式中,S204还包括:S2045:若用户操作请求视图为个人视图,将指示用户操作鉴权成功的用户操作鉴权结果发送至业务微服务模块。In an optional implementation manner, S204 further includes: S2045: If the user operation request view is a personal view, send a user operation authentication result indicating successful user operation authentication to the business microservice module.

由于用户操作请求视图为个人视图时无需鉴权,因此,用户微服务模块将指示用户操作鉴权成功的用户操作鉴权结果发送至业务微服务模块。Since no authentication is required when the user operation request view is a personal view, the user microservice module sends the user operation authentication result indicating that the user operation authentication is successful to the business microservice module.

请参阅图5,图5是本申请第三实施例提供的一种区块链即服务中的用户操作控制方法的另一示意流程图,S204包括:Please refer to FIG. 5. FIG. 5 is another schematic flowchart of a user operation control method in a blockchain as a service provided in the third embodiment of the present application. S204 includes:

S205:响应于用户操作鉴权请求,获取当前路由;其中,当前路由为响应于用户操作请求的业务微服务模块所关联的路由。S205: Obtain the current route in response to the user operation authentication request; wherein, the current route is the route associated with the business microservice module responding to the user operation request.

S206:若当前路由在预配置的白名单路由内,将指示用户操作鉴权成功的用户操作鉴权结果发送至业务微服务模块。S206: If the current route is in the pre-configured whitelist route, send the user operation authentication result indicating that the user operation authentication is successful to the business microservice module.

用户微服务模块响应于用户操作鉴权请求,会先获取当前路由,从而判断当前路由是否在预配置的白名单路由内,若是,则表示无需鉴权,直接将指示用户操作鉴权成功的用户操作鉴权结果发送至业务微服务模块。In response to the user operation authentication request, the user micro-service module will first obtain the current route to determine whether the current route is in the pre-configured whitelist route. The operation authentication result is sent to the business microservice module.

例如:用户登陆路由在预配置的白名单路内,那么当前路由为用户登陆路由,就表示其无需鉴权,可直接将指示用户操作鉴权成功的用户操作鉴权结果发送至业务微服务模块。For example, if the user login route is in the pre-configured whitelist, then the current route is the user login route, which means that it does not need to be authenticated, and the user operation authentication result indicating that the user operation authentication is successful can be directly sent to the business microservice module .

通过在响应于用户操作鉴权请求时,先判断当前路由是否在预配置的白名单路由内,可以更快速地在无需鉴权时返回用户操作鉴权结果。By first judging whether the current route is in the pre-configured whitelist route when responding to the user operation authentication request, the user operation authentication result can be returned more quickly when no authentication is required.

本申请实施例中,为了能够实现用户操控鉴权,对用户操作进行控制,配置区块链即服务的架构为前端模块与业务微服务模块建立数据连接,业务微服务模块再与用户微服务模块建立数据连接。对于用户微服务模块来说,无论是哪一业务微服务模块响应于用户操作请求,都会通过用户微服务模块进行用户操作鉴权,具体地,用户微服务模块响应于业务微服务模块发送的用户操作鉴权请求,获取用户身份信息,根据用户身份信息,得到用户操作请求视图、机构标识、用户角色和用户标识,根据用户标识确定用户在身份链上的分布式用户身份信息,最后,根据用户操作请求视图、机构标识、用户角色和分布式用户身份信息,确定用户操作权限是否鉴权成功,发送用户操作鉴权结果至业务微服务模块,这一过程中用户微服务模块不仅实现了用户角色权限的鉴权,也整合了身份链中的分布式用户身份信息,实现了用户链上权限鉴权,从而通过用户操作鉴权结果保证了业务微服务模块对用户操作进行有效控制。In the embodiment of this application, in order to realize user manipulation authentication and control user operations, the blockchain-as-a-service architecture is configured to establish a data connection between the front-end module and the business micro-service module, and the business micro-service module and the user micro-service module Establish a data connection. For the user microservice module, no matter which business microservice module responds to the user operation request, the user operation authentication will be performed through the user microservice module. Specifically, the user microservice module responds to the user Operate the authentication request to obtain user identity information. According to the user identity information, obtain the user operation request view, organization ID, user role and user ID, and determine the distributed user identity information of the user on the identity chain according to the user ID. Finally, according to the user Operation request view, organization ID, user role and distributed user identity information, determine whether the user operation authority is successfully authenticated, and send the user operation authentication result to the business microservice module. In this process, the user microservice module not only realizes the user role The authority authentication also integrates the distributed user identity information in the identity chain to realize the authority authentication on the user chain, thereby ensuring the effective control of user operations by the business microservice module through the user operation authentication results.

请参见图6,图6是本申请第四实施例提供的一种区块链即服务中的用户操作控制方法的示意流程图。本实施例中一种区块链即服务中的用户操作控制方法的执行主体至少包括:业务微服务模块和用户微服务模块,是从多方交互的角度对区块链即服务中的用户操作控制方法进行说明。如图6所示的区块链即服务中的用户操作控制方法可以包括:Please refer to FIG. 6 . FIG. 6 is a schematic flowchart of a user operation control method in blockchain as a service provided by the fourth embodiment of the present application. In this embodiment, the execution subject of a user operation control method in blockchain as a service includes at least: a business microservice module and a user microservice module, which control user operations in blockchain as a service from the perspective of multi-party interaction The method is explained. The user operation control method in the blockchain as a service shown in Figure 6 may include:

S301:业务微服务模块响应于用户操作请求,获取用户身份信息,根据用户身份信息,生成并发送用户操作鉴权请求至用户微服务模块;其中,用户操作请求为前端模块通过网关模块发送的。S301: The business microservice module obtains user identity information in response to the user operation request, generates and sends a user operation authentication request to the user microservice module according to the user identity information; wherein, the user operation request is sent by the front-end module through the gateway module.

S302:用户微服务模块响应于用户操作鉴权请求,获取用户身份信息;根据用户身份信息,得到用户操作请求视图、机构标识、用户角色和用户标识;根据用户标识确定用户在身份链上的分布式用户身份信息;根据用户操作请求视图、机构标识、用户角色和分布式用户身份信息,确定用户操作权限是否鉴权成功,发送用户操作鉴权结果至业务微服务模块。S302: The user micro-service module obtains user identity information in response to the user operation authentication request; obtains the user operation request view, organization ID, user role, and user ID according to the user ID information; determines the user's distribution on the identity chain according to the user ID According to the user operation request view, organization ID, user role and distributed user identity information, determine whether the user operation authorization is successfully authenticated, and send the user operation authentication result to the business microservice module.

S303:业务微服务模块异步等待用户操作鉴权结果,执行与用户操作请求相关的业务准备进程。S303: The business microservice module asynchronously waits for the user operation authentication result, and executes the business preparation process related to the user operation request.

S304:业务微服务模块直至确认用户操作鉴权成功时,执行与用户操作请求相关的链上操作进程。S304: The business microservice module executes the on-chain operation process related to the user operation request until it confirms that the user operation authentication is successful.

在本实施例中,前端模块与业务微服务模块建立数据连接,业务微服务模块与用户微服务模块建立数据连接,关于业务微服务模块所执行的步骤S301、S303至S304可以参考第二实施例中S101至S103的说明,关于用户微服务模块所执行的步骤S302可以参考第三实施例中S201至S204的说明,在此不对上述步骤重复进行解释。In this embodiment, the front-end module establishes a data connection with the business microservice module, and the business microservice module establishes a data connection with the user microservice module. For steps S301, S303 to S304 performed by the business microservice module, refer to the second embodiment For the descriptions of S101 to S103, as for the step S302 performed by the user microservice module, reference may be made to the descriptions of S201 to S204 in the third embodiment, and the above steps will not be repeatedly explained here.

在本实施例中,还包括步骤:网关模块接收用户操作请求和用户操作请求携带的微服务名称;网关模块根据用户操作请求携带的微服务名称和已注册的微服务名称与微服务地址之间的对应关系,得到用户操作请求对应的微服务地址,将用户操作请求发送至用户操作请求对应的微服务地址上的业务微服务模块。In this embodiment, further steps are included: the gateway module receives the user operation request and the microservice name carried by the user operation request; the gateway module communicates between the microservice name carried by the user operation request and the registered microservice name and the microservice address Corresponding relationship, obtain the microservice address corresponding to the user operation request, and send the user operation request to the business microservice module on the microservice address corresponding to the user operation request.

用户操作请求会携带相应的微服务名称,网关模块中存储有已注册的微服务名称与微服务地址之间的对应关系,那么根据用户操作请求携带的微服务名称,就可以得到一个对应的微服务地址,进而就可以将该用户操作请求发送至该微服务地址上的业务微服务模块。The user operation request will carry the corresponding microservice name, and the corresponding relationship between the registered microservice name and the microservice address is stored in the gateway module, so a corresponding microservice name can be obtained according to the microservice name carried in the user operation request. service address, and then the user operation request can be sent to the business microservice module on the microservice address.

关于本实施例的技术效果可以参见第二实施例和第三实施例中所阐述的技术效果。Regarding the technical effects of this embodiment, reference may be made to the technical effects described in the second embodiment and the third embodiment.

应理解,上述实施例中各步骤的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。It should be understood that the sequence numbers of the steps in the above embodiments do not mean the order of execution, and the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation to the implementation process of the embodiment of the present application.

请参见图7,图7是本申请第五实施例提供的区块链即服务中的用户操作控制装置的示意图。包括的各单元用于执行图2对应的实施例中的各步骤。具体请参阅图2对应的实施例中的相关描述。为了便于说明,仅示出了与本实施例相关的部分。参见图7,区块链即服务中的用户操作控制装置7包括:Please refer to FIG. 7 . FIG. 7 is a schematic diagram of a user operation control device in the blockchain as a service provided by the fifth embodiment of the present application. Each included unit is used to execute each step in the embodiment corresponding to FIG. 2 . For details, refer to the relevant description in the embodiment corresponding to FIG. 2 . For ease of description, only the parts related to this embodiment are shown. Referring to Figure 7, the user operation control device 7 in the blockchain as a service includes:

响应请求单元71,用于响应于用户操作请求,获取用户身份信息,根据用户身份信息,生成并发送用户操作鉴权请求至用户微服务模块;其中,用户操作请求为前端模块通过网关模块发送的;The response request unit 71 is used to obtain user identity information in response to the user operation request, generate and send a user operation authentication request to the user microservice module according to the user identity information; wherein, the user operation request is sent by the front-end module through the gateway module ;

异步等待单元72,用于异步等待用户操作鉴权结果,执行与用户操作请求相关的业务准备进程;其中,用户操作鉴权结果为用户微服务模块响应于用户操作鉴权请求,获取用户操作请求视图、机构标识、用户角色和分布式用户身份信息,根据用户操作请求视图、机构标识、用户角色和分布式用户身份信息确定的;The asynchronous waiting unit 72 is used to asynchronously wait for the user operation authentication result, and execute the business preparation process related to the user operation request; wherein, the user operation authentication result is that the user microservice module responds to the user operation authentication request and obtains the user operation request View, organization ID, user role and distributed user identity information, determined according to user operation request view, organization ID, user role and distributed user identity information;

操作控制单元73,用于直至确认用户操作鉴权成功时,执行与用户操作请求相关的链上操作进程。The operation control unit 73 is configured to execute the on-chain operation process related to the user operation request until it is confirmed that the user operation authentication is successful.

进一步地,操作控制单元73,具体用于:若执行完与用户操作请求相关的业务准备进程时未等待到用户操作鉴权结果,则阻塞与用户操作请求相关的链上操作进程,直至等待到用户操作鉴权结果,根据用户操作鉴权结果确认用户操作鉴权成功时,执行与用户操作请求相关的链上操作进程。Further, the operation control unit 73 is specifically configured to: if the user operation authentication result is not waited for after executing the service preparation process related to the user operation request, then block the on-chain operation process related to the user operation request until the waiting time is reached. User operation authentication result. When the user operation authentication is confirmed to be successful according to the user operation authentication result, the on-chain operation process related to the user operation request is executed.

请参见图8,图8是本申请第六实施例提供的区块链即服务中的用户操作控制装置的示意图。包括的各单元用于执行图3对应的实施例中的各步骤。具体请参阅图3对应的实施例中的相关描述。为了便于说明,仅示出了与本实施例相关的部分。参见图8,区块链即服务中的用户操作控制装置8包括:Please refer to FIG. 8 . FIG. 8 is a schematic diagram of a user-operated control device in the blockchain as a service provided by the sixth embodiment of the present application. Each included unit is used to execute each step in the embodiment corresponding to FIG. 3 . For details, refer to the relevant description in the embodiment corresponding to FIG. 3 . For ease of description, only the parts related to this embodiment are shown. Referring to Figure 8, the user operation control device 8 in the blockchain as a service includes:

第一获取单元81,用于响应于用户操作鉴权请求,获取用户身份信息;其中,用户操作鉴权请求为业务微服务模块响应于用户操作请求,获取用户身份信息,根据用户身份信息生成的;The first obtaining unit 81 is configured to obtain user identity information in response to a user operation authentication request; wherein, the user operation authentication request is a business microservice module that responds to a user operation request to obtain user identity information, and is generated according to the user identity information ;

第二获取单元82,用于根据用户身份信息,得到用户操作请求视图、机构标识、用户角色和用户标识;The second acquiring unit 82 is configured to obtain a user operation request view, an organization identifier, a user role, and a user identifier according to the user identity information;

确定单元83,用于根据用户标识确定用户在身份链上的分布式用户身份信息;A determining unit 83, configured to determine the distributed user identity information of the user on the identity chain according to the user identifier;

鉴权单元84,用于根据用户操作请求视图、机构标识、用户角色和分布式用户身份信息,确定用户操作权限是否鉴权成功,发送用户操作鉴权结果至业务微服务模块。The authentication unit 84 is used to determine whether the authentication of the user operation authority is successful according to the user operation request view, organization identifier, user role and distributed user identity information, and send the user operation authentication result to the business microservice module.

进一步地,鉴权单元84,具体用于:若用户操作请求视图为机构视图,获取当前路由对应的权限;其中,当前路由为响应于用户操作请求的业务微服务模块所关联的路由;判断机构标识对应的机构下用户角色对应的角色权限是否包含当前路由对应的权限,若是,确定用户角色权限鉴权成功;根据分布式用户身份信息,判断用户是否具备与用户操作请求相关的链上操作权限,若是,确定用户链上权限鉴权成功;若用户角色权限和用户链上权限均鉴权成功,则将指示用户操作鉴权成功的用户操作鉴权结果发送至业务微服务模块。Further, the authentication unit 84 is specifically configured to: if the user operation request view is an organization view, obtain the authority corresponding to the current route; wherein, the current route is the route associated with the business microservice module that responds to the user operation request; Whether the role authority corresponding to the user role under the corresponding organization includes the authority corresponding to the current route, if so, determine whether the user role authority authentication is successful; according to the distributed user identity information, determine whether the user has the on-chain operation authority related to the user operation request , if so, determine that the authentication of the user's on-chain authority is successful; if both the user's role authority and the user's on-chain authority are successfully authenticated, the user operation authentication result indicating that the user operation authentication is successful is sent to the business microservice module.

进一步地,鉴权单元84,还具体用于:响应于用户操作鉴权请求,获取当前路由;其中,当前路由为响应于用户操作请求的业务微服务模块所关联的路由;若当前路由在预配置的白名单路由内,将指示用户操作鉴权成功的用户操作鉴权结果发送至业务微服务模块。Further, the authentication unit 84 is also specifically configured to: obtain the current route in response to the user operation authentication request; wherein, the current route is the route associated with the business microservice module in response to the user operation request; if the current route is in the preset In the configured whitelist route, the user operation authentication result indicating that the user operation authentication is successful is sent to the business microservice module.

请参见图9,图9是本申请第七实施例提供的区块链即服务中的用户操作控制装置的示意图。包括的各单元用于执行图6对应的实施例中的各步骤。具体请参阅图6对应的实施例中的相关描述。为了便于说明,仅示出了与本实施例相关的部分。参见图9,区块链即服务中的用户操作控制装置9包括:Please refer to FIG. 9 . FIG. 9 is a schematic diagram of a user operation control device in the blockchain as a service provided by the seventh embodiment of the present application. Each included unit is used to execute each step in the embodiment corresponding to FIG. 6 . For details, refer to the relevant description in the embodiment corresponding to FIG. 6 . For ease of description, only the parts related to this embodiment are shown. Referring to Figure 9, the user operation control device 9 in the blockchain as a service includes:

响应请求单元91,用于业务微服务模块响应于用户操作请求,获取用户身份信息,根据用户身份信息,生成并发送用户操作鉴权请求至用户微服务模块;其中,用户操作请求为前端模块通过网关模块发送的;The response request unit 91 is used for the business microservice module to respond to the user operation request, obtain the user identity information, generate and send the user operation authentication request to the user microservice module according to the user identity information; wherein, the user operation request is the front-end module through Sent by the gateway module;

操作鉴权单元92,用于用户微服务模块响应于用户操作鉴权请求,获取用户身份信息;根据用户身份信息,得到用户操作请求视图、机构标识、用户角色和用户标识;根据用户标识确定用户在身份链上的分布式用户身份信息;根据用户操作请求视图、机构标识、用户角色和分布式用户身份信息,确定用户操作权限是否鉴权成功,发送用户操作鉴权结果至业务微服务模块;The operation authentication unit 92 is used for the user microservice module to obtain user identity information in response to the user operation authentication request; obtain the user operation request view, organization identifier, user role and user identifier according to the user identity information; determine the user ID according to the user identifier Distributed user identity information on the identity chain; according to the user operation request view, organization ID, user role and distributed user identity information, determine whether the user operation authorization is successfully authenticated, and send the user operation authentication result to the business microservice module;

异步等待单元93,用于业务微服务模块异步等待用户操作鉴权结果,执行与用户操作请求相关的业务准备进程;The asynchronous waiting unit 93 is used for the business microservice module to asynchronously wait for the user operation authentication result, and execute the business preparation process related to the user operation request;

操作控制单元94,用于业务微服务模块直至确认用户操作鉴权成功时,执行与用户操作请求相关的链上操作进程。The operation control unit 94 is used for the business microservice module to execute the on-chain operation process related to the user operation request until it is confirmed that the user operation authentication is successful.

进一步地,区块链即服务中的用户操作控制装置9还包括:Further, the user operation control device 9 in the blockchain as a service also includes:

接收单元,用于网关模块接收用户操作请求和用户操作请求携带的微服务名称;The receiving unit is used for the gateway module to receive the user operation request and the microservice name carried by the user operation request;

发送单元,用于网关模块根据用户操作请求携带的微服务名称和已注册的微服务名称与微服务地址之间的对应关系,得到用户操作请求对应的微服务地址,将用户操作请求发送至用户操作请求对应的微服务地址上的业务微服务模块。The sending unit is used for the gateway module to obtain the microservice address corresponding to the user operation request according to the corresponding relationship between the microservice name carried by the user operation request and the registered microservice name and the microservice address, and send the user operation request to the user The business microservice module on the microservice address corresponding to the operation request.

需要说明的是,上述装置/单元之间的信息交互、执行过程等内容,由于与本申请方法实施例基于同一构思,其具体功能及带来的技术效果,具体可参见方法实施例部分,此处不再赘述。It should be noted that the information interaction and execution process between the above-mentioned devices/units are based on the same concept as the method embodiment of the present application, and its specific functions and technical effects can be found in the method embodiment section. I won't repeat them here.

下面对区块链即服务中的用户操作控制系统进行更为详尽的说明,请参见图1,图1是本申请第一实施例提供的一种区块链即服务中的用户操作控制系统的架构示意图。The following is a more detailed description of the user operation control system in the blockchain as a service, please refer to Figure 1, Figure 1 is a user operation control system in the blockchain as a service provided in the first embodiment of the application Schematic diagram of the architecture.

该系统中包括前端模块101、网关模块102、业务微服务模块103、用户微服务模块104和身份链模块105。The system includes a front-end module 101 , a gateway module 102 , a business microservice module 103 , a user microservice module 104 and an identity chain module 105 .

前端模块101与业务微服务模块103建立数据连接,业务微服务模块103与用户微服务模块104建立数据连接;The front-end module 101 establishes a data connection with the business microservice module 103, and the business microservice module 103 establishes a data connection with the user microservice module 104;

业务微服务模块103用于响应于用户操作请求,获取用户身份信息,根据用户身份信息,生成并发送用户操作鉴权请求至用户微服务模块104;其中,用户操作请求为前端模块101通过网关模块102发送的;The business microservice module 103 is used to obtain user identity information in response to the user operation request, and generate and send a user operation authentication request to the user microservice module 104 according to the user identity information; wherein, the user operation request is that the front-end module 101 passes through the gateway module sent by 102;

用户微服务模块104用于响应于用户操作鉴权请求,获取用户身份信息;根据用户身份信息,得到用户操作请求视图、机构标识、用户角色和用户标识;根据用户标识确定用户在身份链模块105中存储的身份链上的分布式用户身份信息;根据用户操作请求视图、机构标识、用户角色和分布式用户身份信息,确定用户操作权限是否鉴权成功,发送用户操作鉴权结果至业务微服务模块103;The user microservice module 104 is used to respond to the user operation authentication request and obtain the user identity information; according to the user identity information, obtain the user operation request view, organization identification, user role and user identification; Distributed user identity information stored in the identity chain; according to the user operation request view, organization ID, user role and distributed user identity information, determine whether the user operation authority is successfully authenticated, and send the user operation authentication result to the business microservice module 103;

业务微服务模块103还用于异步等待用户操作鉴权结果,执行与用户操作请求相关的业务准备进程;The business microservice module 103 is also used to asynchronously wait for the user operation authentication result, and execute the business preparation process related to the user operation request;

业务微服务模块103还用于直至确认用户操作鉴权成功时,执行与用户操作请求相关的链上操作进程。The business microservice module 103 is also used to execute the on-chain operation process related to the user operation request until it is confirmed that the user operation authentication is successful.

进一步地,网关模块102用于接收用户操作请求和用户操作请求携带的微服务名称;根据用户操作请求携带的微服务名称和已注册的微服务名称与微服务地址之间的对应关系,得到用户操作请求对应的微服务地址,将用户操作请求发送至用户操作请求对应的微服务地址上的业务微服务模块103。Further, the gateway module 102 is used to receive the user operation request and the microservice name carried in the user operation request; according to the corresponding relationship between the microservice name carried in the user operation request and the registered microservice name and the microservice address, the user The microservice address corresponding to the operation request sends the user operation request to the business microservice module 103 on the microservice address corresponding to the user operation request.

需要说明的是,上述所提出的区块链即服务中的用户操作控制系统的内容,与本申请方法实施例基于同一构思,其具体功能及带来的技术效果,具体可参见方法实施例部分,此处不再赘述。It should be noted that the content of the user operation control system in the blockchain-as-a-service proposed above is based on the same concept as the method embodiment of this application, and its specific functions and technical effects can be found in the method embodiment section. , which will not be repeated here.

本申请实施例还提供了一种网络设备,该网络设备包括:至少一个处理器、存储器以及存储在所述存储器中并可在所述至少一个处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现上述任意各个方法实施例中的步骤。The embodiment of the present application also provides a network device, which includes: at least one processor, a memory, and a computer program stored in the memory and operable on the at least one processor, and the processor executes The computer program implements the steps in any of the above method embodiments.

本申请实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时实现可实现上述各个方法实施例中的步骤。The embodiment of the present application also provides a computer-readable storage medium, the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in each of the foregoing method embodiments can be realized.

本申请实施例提供了一种计算机程序产品,当计算机程序产品在移动终端上运行时,使得移动终端执行时实现可实现上述各个方法实施例中的步骤。An embodiment of the present application provides a computer program product. When the computer program product is run on a mobile terminal, the mobile terminal can implement the steps in the foregoing method embodiments when executed.

所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请实现上述实施例方法中的全部或部分流程,可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一计算机可读存储介质中,该计算机程序在被处理器执行时,可实现上述各个方法实施例的步骤。其中,所述计算机程序包括计算机程序代码,所述计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。所述计算机可读介质至少可以包括:能够将计算机程序代码携带到拍照装置/终端设备的任何实体或装置、记录介质、计算机存储器、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,RandomAccess Memory)、电载波信号、电信信号以及软件分发介质。例如U盘、移动硬盘、磁碟或者光盘等。在某些司法管辖区,根据立法和专利实践,计算机可读介质不可以是电载波信号和电信信号。If the integrated unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, all or part of the procedures in the method of the above-mentioned embodiments in the present application can be completed by instructing related hardware through a computer program. The computer program can be stored in a computer-readable storage medium. The computer program When executed by a processor, the steps in the above-mentioned various method embodiments can be realized. Wherein, the computer program includes computer program code, and the computer program code may be in the form of source code, object code, executable file or some intermediate form. The computer-readable medium may at least include: any entity or device capable of carrying computer program codes to a photographing device/terminal device, a recording medium, a computer memory, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), electrical carrier signal, telecommunication signal, and software distribution medium. Such as U disk, mobile hard disk, magnetic disk or optical disk, etc. In some jurisdictions, computer readable media may not be electrical carrier signals and telecommunication signals under legislation and patent practice.

在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述或记载的部分,可以参见其它实施例的相关描述。In the above-mentioned embodiments, the descriptions of each embodiment have their own emphases, and for parts that are not detailed or recorded in a certain embodiment, refer to the relevant descriptions of other embodiments.

本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Those skilled in the art can appreciate that the units and algorithm steps of the examples described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are executed by hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present application.

在本申请所提供的实施例中,应该理解到,所揭露的装置/网络设备和方法,可以通过其它的方式实现。例如,以上所描述的装置/网络设备实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通讯连接可以是通过一些接口,装置或单元的间接耦合或通讯连接,可以是电性,机械或其它的形式。In the embodiments provided in this application, it should be understood that the disclosed device/network device and method may be implemented in other ways. For example, the device/network device embodiments described above are only illustrative. For example, the division of the modules or units is only a logical function division. In actual implementation, there may be other division methods, such as multiple units Or components may be combined or may be integrated into another system, or some features may be omitted, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.

所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

以上所述实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围,均应包含在本申请的保护范围之内。The above-described embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: it can still implement the foregoing embodiments Modifications to the technical solutions described in the examples, or equivalent replacements for some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the various embodiments of the application, and should be included in the Within the protection scope of this application.

Claims (11)

1. The user operation control method in the block chain as a service is characterized by being executed by a business micro-service module, wherein the business micro-service module respectively establishes data connection with a front-end module and a user micro-service module, and comprises the following steps:
Responding to a user operation request, acquiring user identity information, and generating and sending a user operation authentication request to the user micro-service module according to the user identity information; the user operation request is sent by the front-end module through a gateway module;
asynchronously waiting for a user operation authentication result, and executing a service preparation process related to the user operation request; the user operation authentication result is that the user micro-service module responds to the user operation authentication request to acquire a user operation request view, an organization identifier, a user role and distributed user identity information, and the user operation request view, the organization identifier, the user role and the distributed user identity information are determined according to the user operation request view;
and executing the operation process on the chain related to the user operation request until the user operation authentication is confirmed to be successful.
2. The blockchain as in claim 1, wherein the performing the on-chain operation process associated with the user operation request until the user operation authentication is confirmed to be successful comprises:
and if the service preparation process related to the user operation request is not waiting for the user operation authentication result when the service preparation process related to the user operation request is executed, blocking the on-chain operation process related to the user operation request until the user operation authentication result is waiting for, and executing the on-chain operation process related to the user operation request when the user operation authentication is confirmed to be successful according to the user operation authentication result.
3. The blockchain as in claim 1 or 2, wherein the user operation control method in service is characterized by:
and the business micro-service module responding to the user operation request is determined for the gateway module according to the micro-service name carried by the user operation request and the corresponding relation between the registered micro-service name and the micro-service address.
4. The user operation control method in the block chain as a service is characterized by being executed by a user micro-service module, wherein the user micro-service module establishes data connection with a business micro-service module, and the business micro-service module establishes data connection with a front-end module, and the method comprises the following steps:
responding to a user operation authentication request, and acquiring user identity information; the user operation authentication request is generated according to the user identity information by the service micro-service module responding to the user operation request and acquiring the user identity information;
obtaining a user operation request view, an organization identifier, a user role and a user identifier according to the user identity information;
determining distributed user identity information of a user on an identity chain according to the user identification;
and determining whether the user operation authority is successfully authenticated according to the user operation request view, the mechanism identification, the user role and the distributed user identity information, and sending a user operation authentication result to the business micro-service module.
5. The method for authenticating user operations in a blockchain as a service of claim 4, wherein determining whether user operation authority is authenticated successfully according to the user operation request view, the organization identifier, the user role and the distributed user identity information, and sending a user operation authentication result to the service microservice module comprises:
if the user operation request view is a mechanism view, acquiring the authority corresponding to the current route; the current route is a route associated with a business micro-service module responding to the user operation request;
judging whether the role authority corresponding to the user role under the mechanism corresponding to the mechanism identifier contains the authority corresponding to the current route, if so, determining that the authentication of the user role authority is successful;
judging whether a user has on-chain operation authority related to the user operation request according to the distributed user identity information, if so, determining that the on-chain authority authentication of the user is successful;
and if the authority of the user role and the authority on the user chain are successfully authenticated, transmitting a user operation authentication result indicating that the user operation authentication is successful to the service micro-service module.
6. The method for authenticating user operations in a blockchain as a service of claim 5, wherein determining whether user operation authority is authenticated successfully according to the user operation request view, the organization identifier, the user role and the distributed user identity information, and sending a user operation authentication result to the service microservice module, further comprises:
and if the user operation request view is a personal view, sending a user operation authentication result indicating that the user operation authentication is successful to the service micro-service module.
7. A blockchain as in any of claims 4 to 6, wherein prior to the obtaining the user identity information, further comprising:
responding to the user operation authentication request to acquire a current route; the current route is a route associated with a business micro-service module responding to the user operation request;
and if the current route is in the pre-configured white list route, sending a user operation authentication result indicating that the user operation authentication is successful to the service micro-service module.
8. A user operation control method in block chain as service is characterized in that a front end module establishes data connection with a business micro service module, the business micro service module establishes data connection with a user micro service module, and the method comprises the following steps:
The business micro-service module responds to a user operation request, acquires user identity information, and generates and sends a user operation authentication request to the user micro-service module according to the user identity information; the user operation request is sent by the front-end module through a gateway module;
the user micro-service module responds to a user operation authentication request to acquire the user identity information; obtaining a user operation request view, an organization identifier, a user role and a user identifier according to the user identity information; determining distributed user identity information of a user on an identity chain according to the user identification; determining whether the user operation authority is successfully authenticated according to the user operation request view, the mechanism identification, the user role and the distributed user identity information, and sending a user operation authentication result to the business micro-service module;
the service micro-service module asynchronously waits for the authentication result of the user operation and executes a service preparation process related to the user operation request;
and the service micro-service module executes the on-chain operation process related to the user operation request until the user operation authentication is confirmed to be successful.
9. The blockchain as in-service user operation control method of claim 8, wherein before the business micro service module responds to the user operation request, further comprising:
the gateway module receives the user operation request and a micro-service name carried by the user operation request;
and the gateway module obtains the micro-service address corresponding to the user operation request according to the micro-service name carried by the user operation request and the corresponding relation between the registered micro-service name and the micro-service address, and sends the user operation request to the business micro-service module on the micro-service address corresponding to the user operation request.
10. A blockchain as-a-service user operation control system, comprising: the system comprises a front-end module, a gateway module, a business micro-service module, a user micro-service module and an identity chain module;
the front-end module establishes data connection with the business micro-service module, and the business micro-service module establishes data connection with the user micro-service module;
the business micro-service module is used for responding to a user operation request, acquiring user identity information, and generating and sending a user operation authentication request to the user micro-service module according to the user identity information; the user operation request is sent by the front-end module through a gateway module;
The user micro-service module is used for responding to a user operation authentication request and acquiring the user identity information; obtaining a user operation request view, an organization identifier, a user role and a user identifier according to the user identity information; determining distributed user identity information of a user on an identity chain stored in an identity chain module according to the user identification; determining whether the user operation authority is successfully authenticated according to the user operation request view, the mechanism identification, the user role and the distributed user identity information, and sending a user operation authentication result to the business micro-service module;
the business micro-service module is also used for asynchronously waiting for the authentication result of the user operation and executing a business preparation process related to the user operation request;
the service micro-service module is further used for executing an on-chain operation process related to the user operation request until the user operation authentication is confirmed to be successful.
11. A computer-readable storage medium, characterized in that it stores a computer program which, when executed by a processor, implements the steps of the method according to any one of claims 1 to 3, or claims 4 to 7, or claims 8 to 9.
CN202211667428.2A 2022-12-23 2022-12-23 User operation control method and system in blockchain as a service Pending CN116232658A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211667428.2A CN116232658A (en) 2022-12-23 2022-12-23 User operation control method and system in blockchain as a service

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211667428.2A CN116232658A (en) 2022-12-23 2022-12-23 User operation control method and system in blockchain as a service

Publications (1)

Publication Number Publication Date
CN116232658A true CN116232658A (en) 2023-06-06

Family

ID=86590129

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211667428.2A Pending CN116232658A (en) 2022-12-23 2022-12-23 User operation control method and system in blockchain as a service

Country Status (1)

Country Link
CN (1) CN116232658A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109327477A (en) * 2018-12-06 2019-02-12 泰康保险集团股份有限公司 Authentication method, device and storage medium
CN111724169A (en) * 2020-03-05 2020-09-29 支付宝(杭州)信息技术有限公司 A business processing system, business processing method, device and equipment
CN112039909A (en) * 2020-09-03 2020-12-04 平安科技(深圳)有限公司 Authentication method, device, equipment and storage medium based on unified gateway
CN112053274A (en) * 2020-10-12 2020-12-08 腾讯科技(深圳)有限公司 Construction guide method and device for government affair block chain network
CN112580102A (en) * 2020-12-29 2021-03-30 郑州大学 Multi-dimensional digital identity authentication system based on block chain
CN113285954A (en) * 2021-06-02 2021-08-20 网易(杭州)网络有限公司 Verifiable statement verification method, system, electronic device and storage medium
CN115022306A (en) * 2022-06-24 2022-09-06 上海交通大学 Industrial micro-service system and method of end edge cloud
CN115277234A (en) * 2022-08-01 2022-11-01 重庆标能瑞源储能技术研究院有限公司 Security authentication method and system based on Internet of things platform micro-service

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109327477A (en) * 2018-12-06 2019-02-12 泰康保险集团股份有限公司 Authentication method, device and storage medium
CN111724169A (en) * 2020-03-05 2020-09-29 支付宝(杭州)信息技术有限公司 A business processing system, business processing method, device and equipment
CN112039909A (en) * 2020-09-03 2020-12-04 平安科技(深圳)有限公司 Authentication method, device, equipment and storage medium based on unified gateway
CN112053274A (en) * 2020-10-12 2020-12-08 腾讯科技(深圳)有限公司 Construction guide method and device for government affair block chain network
CN112580102A (en) * 2020-12-29 2021-03-30 郑州大学 Multi-dimensional digital identity authentication system based on block chain
CN113285954A (en) * 2021-06-02 2021-08-20 网易(杭州)网络有限公司 Verifiable statement verification method, system, electronic device and storage medium
CN115022306A (en) * 2022-06-24 2022-09-06 上海交通大学 Industrial micro-service system and method of end edge cloud
CN115277234A (en) * 2022-08-01 2022-11-01 重庆标能瑞源储能技术研究院有限公司 Security authentication method and system based on Internet of things platform micro-service

Similar Documents

Publication Publication Date Title
JP7551222B2 (en) Data processing method, device and computer device based on blockchain network
JP4685876B2 (en) System and method for providing multiple credential authentication protocols
CN108197913B (en) Payment method, system and computer readable storage medium based on block chain
EP4035327B1 (en) Template-based onboarding of internet-connectible devices
CN112714158A (en) Transaction processing method, relay network, cross-link gateway, system, medium, and device
WO2018000568A1 (en) Virtual sim card management method, management device, server and terminal
CN108073823A (en) Data processing method, apparatus and system
CN118523966A (en) Resource access method, computer device, and computer-readable storage medium
CN114675876A (en) A business processing method, device, electronic device and storage medium
JP2023533597A (en) How to identify charging stations for electric vehicles
WO2017217808A1 (en) Mobile authentication method and system therefor
KR101879843B1 (en) Authentication mehtod and system using ip address and short message service
TWI839875B (en) Payment method, user terminal, device, equipment, system and medium
CN114745185B (en) Cluster access method and device
TW503355B (en) System and method for communication with mobile data processing devices by way of ""mobile software agents""
CN111726328B (en) Method, system and related device for remotely accessing a first device
WO2023024538A1 (en) Method, apparatus and system for protecting application
CN102393887B (en) Application centralized management system and method based on Linux security module (LSM) mechanism
CN116232658A (en) User operation control method and system in blockchain as a service
CN110351130B (en) Device information management method, device and system
CN115208590A (en) Cross-domain communication system, method and storage medium
WO2025050947A1 (en) Method, apparatus and system for accessing identity data
CN113014565B (en) Zero-trust architecture for anti-port scanning and service port access method and device
CN115967623B (en) Device management method, device, electronic device, and storage medium
JP2025523565A (en) Cloud Technology Based Trusted Execution System and Method - Patent application

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Country or region after: China

Address after: 310051 Zhejiang Province, Hangzhou City, Binjiang District, Xixing Street, Yue Ming Road 199, Building 2, Room 1701

Applicant after: Hangzhou Qulian Technology Co., Ltd.

Address before: Room 2001, building a, building 2, 399 Danfeng Road, Binjiang District, Hangzhou, Zhejiang 310000

Applicant before: HANGZHOU HYPERCHAIN TECHNOLOGIES Co.,Ltd.

Country or region before: China

CB02 Change of applicant information