WO2022016434A1 - Device deregistration method, device registration method, communication device and cloud platform - Google Patents

Device deregistration method, device registration method, communication device and cloud platform Download PDF

Info

Publication number
WO2022016434A1
WO2022016434A1 PCT/CN2020/103630 CN2020103630W WO2022016434A1 WO 2022016434 A1 WO2022016434 A1 WO 2022016434A1 CN 2020103630 W CN2020103630 W CN 2020103630W WO 2022016434 A1 WO2022016434 A1 WO 2022016434A1
Authority
WO
WIPO (PCT)
Prior art keywords
cloud platform
credential
credential information
information
logout
Prior art date
Application number
PCT/CN2020/103630
Other languages
French (fr)
Chinese (zh)
Inventor
吕小强
Original Assignee
Oppo广东移动通信有限公司
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 Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Priority to PCT/CN2020/103630 priority Critical patent/WO2022016434A1/en
Priority to CN202080101725.3A priority patent/CN115699678A/en
Publication of WO2022016434A1 publication Critical patent/WO2022016434A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • 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/0815Network architectures or network communication protocols for network security for authentication of entities providing single-sign-on or federations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/1066Session management
    • H04L65/1073Registration or de-registration

Definitions

  • the present application relates to the field of communications, and more particularly, to a method for deregistering a device, a method for registering a device, a communication device, and a cloud platform.
  • the device Before the device can be controlled through the cloud platform, the device needs to be registered with the cloud platform.
  • the cloud platform assigns an access token to the device during the registration process.
  • the device may then publish its own resource information to the cloud platform so that other devices can discover and subscribe.
  • Corresponding to the cloud registration (registration) process is the cloud deregistration (deregistration) process.
  • the cloud deregistration (deregistration) process After a device is deregistered on the cloud platform, the device can no longer connect to the cloud platform.
  • the device initiates the logout process. Therefore, when the user's device is accidentally lost or maliciously stolen, the malicious user can use the device to control and access other devices registered on the cloud platform by the user who lost the device. loss to users.
  • the embodiments of the present application provide a method for deregistering a device, a method for registering a device, a communication device and a cloud platform, which can improve the security of devices accessing the cloud platform.
  • An embodiment of the present application provides a method for deregistering a device, including:
  • the first device sends a logout request to the cloud platform, where the logout request includes authentication information and credential information of the second device, so that the cloud platform logs out the second device.
  • An embodiment of the present application provides a method for deregistering a device, including:
  • the cloud platform receives a logout request from the first device, where the logout request includes verification information and credential information of the second device;
  • the cloud platform deregisters the second device according to the verification information and the credential information of the second device.
  • An embodiment of the present application provides a method for device registration, which further includes:
  • the first device sends credential information to the second device to configure the credential information in the CCC resource of the second device, and the CCC resource of the second device is used to complete the registration of the second device in the cloud platform.
  • An embodiment of the present application provides a method for device registration, which further includes:
  • the second device receives the credential information
  • the second device configures the credential information in the CCC resource of the second device
  • the second device registers with the cloud platform based on the CCC resource.
  • An embodiment of the present application provides a communication device, including:
  • the sending unit is configured to send a logout request to the cloud platform, where the logout request includes authentication information and credential information of the second device, so that the cloud platform can logout the second device.
  • the embodiments of the present application provide a cloud platform, including:
  • a receiving unit configured to receive a logout request from the first device, where the logout request includes authentication information and credential information of the second device;
  • a logout unit configured to logout the second device according to the verification information and the credential information of the second device.
  • An embodiment of the present application provides a communication device, including:
  • a sending unit configured to send credential information to the second device, so as to configure the credential information in the CCC resource of the second device, and the CCC resource of the second device is used to complete the registration of the second device in the cloud platform.
  • Embodiments of the present application provide a communication device, including:
  • a receiving unit for receiving credential information
  • a configuration unit configured to configure the credential information in the CCC resource of the communication device
  • the registration unit is used to register with the cloud platform based on the CCC resource.
  • Embodiments of the present application provide a communication device including a processor and a memory.
  • the memory is used for storing a computer program
  • the processor is used for calling and running the computer program stored in the memory, so that the communication device executes the above-mentioned method for device logout or device registration method.
  • Embodiments of the present application provide a cloud platform, including a processor and a memory.
  • the memory is used for storing a computer program
  • the processor is used for calling and running the computer program stored in the memory, so that the cloud platform executes the above-mentioned method for deregistering the device.
  • An embodiment of the present application provides a chip, which is used to implement the above-mentioned method for deregistering a device or a method for registering a device.
  • the chip includes: a processor for invoking and running a computer program from the memory, so that a device installed with the chip executes the above-mentioned method for deregistering a device or a method for registering a device.
  • Embodiments of the present application provide a computer-readable storage medium for storing a computer program, which, when the computer program is run by a device, causes the device to execute the above-mentioned method for deregistering a device or a method for registering a device.
  • An embodiment of the present application provides a computer program product, including computer program instructions, and the computer program instructions cause a computer to execute the above-mentioned method for deregistering a device or a method for registering a device.
  • An embodiment of the present application provides a computer program, which, when running on a computer, enables the computer to execute the above-mentioned method for deregistering a device or a method for registering a device.
  • the first device initiates a logout request including verification information and credential information of the second device to the cloud platform, and the second device can be logged out on the cloud platform without the device itself actively initiating logout, thereby improving access to the cloud.
  • Platform device security
  • FIG. 1 is a schematic diagram of an application scenario according to an embodiment of the present application.
  • FIG. 2 is a schematic flowchart of a method for deregistering a device according to an embodiment of the present application.
  • FIG. 3 is a schematic flowchart of a method for deregistering a device according to another embodiment of the present application.
  • FIG. 4 is a schematic flowchart of a method for device registration according to an embodiment of the present application.
  • FIG. 5 is a schematic flowchart of a method for device registration according to another embodiment of the present application.
  • FIG. 6 is a schematic flowchart according to a device registration process.
  • FIG. 7 is a schematic flowchart according to Example 1.
  • FIG. 8 is a schematic flowchart according to Example 2.
  • FIG. 9 is a schematic block diagram of a communication device according to an embodiment of the present application.
  • FIG. 10 is a schematic block diagram of a communication device according to another embodiment of the present application.
  • FIG. 11 is a schematic block diagram of a cloud platform according to an embodiment of the present application.
  • FIG. 12 is a schematic block diagram of a cloud platform according to another embodiment of the present application.
  • FIG. 13 is a schematic block diagram of a communication device according to another embodiment of the present application.
  • FIG. 14 is a schematic block diagram of a communication device according to another embodiment of the present application.
  • FIG. 15 is a schematic block diagram of a communication device according to another embodiment of the present application.
  • FIG. 16 is a schematic block diagram of a communication device according to an embodiment of the present application.
  • FIG. 17 is a schematic block diagram of a chip according to an embodiment of the present application.
  • FIG. 18 is a schematic block diagram of a communication system according to an embodiment of the present application.
  • GSM Global System of Mobile communication
  • CDMA Code Division Multiple Access
  • CDMA Wideband Code Division Multiple Access
  • WCDMA Wideband Code Division Multiple Access
  • GPRS General Packet Radio Service
  • LTE Long Term Evolution
  • LTE-A Advanced Long Term Evolution
  • NR New Radio
  • NTN Non-Terrestrial Networks
  • UMTS Universal Mobile Telecommunication System
  • WLAN Wireless Local Area Networks
  • Wireless Fidelity Wireless Fidelity
  • WiFi fifth-generation communication
  • D2D Device to Device
  • M2M Machine to Machine
  • MTC Machine Type Communication
  • V2V Vehicle to Vehicle
  • V2X Vehicle to everything
  • the communication system in this embodiment of the present application may be applied to a carrier aggregation (Carrier Aggregation, CA) scenario, a dual connectivity (Dual Connectivity, DC) scenario, or a standalone (Standalone, SA) distribution. web scene.
  • Carrier Aggregation, CA Carrier Aggregation, CA
  • DC Dual Connectivity
  • SA standalone
  • the communication system in the embodiment of the present application may be applied to an unlicensed spectrum, where the unlicensed spectrum may also be considered as a shared spectrum; or, the communication system in the embodiment of the present application may also be applied to a licensed spectrum, where, Licensed spectrum can also be considered unshared spectrum.
  • the embodiments of the present application describe various embodiments in conjunction with network equipment and terminal equipment, where the terminal equipment may also be referred to as user equipment (User Equipment, UE), access terminal, subscriber unit, subscriber station, mobile station, mobile station, remote station, remote terminal, mobile device, user terminal, terminal, wireless communication device, user agent or user device, etc.
  • user equipment User Equipment, UE
  • access terminal subscriber unit, subscriber station, mobile station, mobile station, remote station, remote terminal, mobile device, user terminal, terminal, wireless communication device, user agent or user device, etc.
  • the terminal device can be a station (STAION, ST) in the WLAN, can be a cellular phone, a cordless phone, a Session Initiation Protocol (SIP) phone, a Wireless Local Loop (WLL) station, a personal digital processing (Personal Digital Assistant, PDA) devices, handheld devices with wireless communication capabilities, computing devices or other processing devices connected to wireless modems, in-vehicle devices, wearable devices, next-generation communication systems such as end devices in NR networks, or future Terminal equipment in the evolved public land mobile network (Public Land Mobile Network, PLMN) network, etc.
  • STAION, ST in the WLAN
  • SIP Session Initiation Protocol
  • WLL Wireless Local Loop
  • PDA Personal Digital Assistant
  • the terminal device can be deployed on land, including indoor or outdoor, handheld, wearable, or vehicle-mounted; it can also be deployed on water (such as ships, etc.); it can also be deployed in the air (such as airplanes, balloons, and satellites) superior).
  • the terminal device may be a mobile phone (Mobile Phone), a tablet computer (Pad), a computer with a wireless transceiver function, a virtual reality (Virtual Reality, VR) terminal device, and an augmented reality (Augmented Reality, AR) terminal Equipment, wireless terminal equipment in industrial control, wireless terminal equipment in self driving, wireless terminal equipment in remote medical, wireless terminal equipment in smart grid , wireless terminal equipment in transportation safety, wireless terminal equipment in smart city or wireless terminal equipment in smart home, etc.
  • a mobile phone Mobile Phone
  • a tablet computer Pad
  • a computer with a wireless transceiver function a virtual reality (Virtual Reality, VR) terminal device
  • augmented reality (Augmented Reality, AR) terminal Equipment wireless terminal equipment in industrial control, wireless terminal equipment in self driving, wireless terminal equipment in remote medical, wireless terminal equipment in smart grid , wireless terminal equipment in transportation safety, wireless terminal equipment in smart city or wireless terminal equipment in smart home, etc.
  • the terminal device may also be a wearable device.
  • Wearable devices can also be called wearable smart devices, which are the general term for the intelligent design of daily wear and the development of wearable devices using wearable technology, such as glasses, gloves, watches, clothing and shoes.
  • a wearable device is a portable device that is worn directly on the body or integrated into the user's clothing or accessories. Wearable device is not only a hardware device, but also realizes powerful functions through software support, data interaction, and cloud interaction.
  • wearable smart devices include full-featured, large-scale, complete or partial functions without relying on smart phones, such as smart watches or smart glasses, and only focus on a certain type of application function, which needs to cooperate with other devices such as smart phones.
  • the network device may be a device for communicating with a mobile device, and the network device may be an access point (Access Point, AP) in WLAN, or a base station (Base Transceiver Station, BTS) in GSM or CDMA , it can also be a base station (NodeB, NB) in WCDMA, it can also be an evolved base station (Evolutional Node B, eNB or eNodeB) in LTE, or a relay station or access point, or in-vehicle equipment, wearable devices and NR networks
  • the network device may have a mobile feature, for example, the network device may be a mobile device.
  • the network device may be a satellite or a balloon station.
  • the satellite may be a low earth orbit (LEO) satellite, a medium earth orbit (MEO) satellite, a geostationary earth orbit (GEO) satellite, a High Elliptical Orbit (HEO) ) satellite etc.
  • the network device may also be a base station set in a location such as land or water.
  • a network device may provide services for a cell, and a terminal device communicates with the network device through transmission resources (for example, frequency domain resources, or spectrum resources) used by the cell, and the cell may be a network device (
  • the cell can belong to the macro base station, or it can belong to the base station corresponding to the small cell (Small cell).
  • Pico cell Femto cell (Femto cell), etc.
  • These small cells have the characteristics of small coverage and low transmission power, and are suitable for providing high-speed data transmission services.
  • FIG. 1 exemplarily shows a communication system 100 .
  • the communication system includes one network device 110 and two terminal devices 120 .
  • the communication system 100 may include multiple network devices 110, and the coverage of each network device 110 may include other numbers of terminal devices 120, which are not limited in this embodiment of the present application.
  • the communication system 100 may further include a mobility management entity (Mobility Management Entity, MME), an access and mobility management function (Access and Mobility Management Function, AMF) and other network entities, to which the embodiments of the present application Not limited.
  • MME Mobility Management Entity
  • AMF Access and Mobility Management Function
  • the network equipment may further include access network equipment and core network equipment. That is, the wireless communication system further includes a plurality of core networks for communicating with the access network equipment.
  • the access network equipment may be a long-term evolution (long-term evolution, LTE) system, a next-generation (mobile communication system) (next radio, NR) system, or an authorized auxiliary access long-term evolution (authorized auxiliary access long-term evolution, LAA-
  • the evolved base station (evolutional node B, may be referred to as eNB or e-NodeB for short) in the LTE) system is a macro base station, a micro base station (also called a "small base station"), a pico base station, an access point (AP), Transmission site (transmission point, TP) or new generation base station (new generation Node B, gNodeB), etc.
  • a device having a communication function in the network/system may be referred to as a communication device.
  • the communication device may include a network device and a terminal device with a communication function, and the network device and the terminal device may be specific devices described in the embodiments of the present invention, which will not be repeated here;
  • the device may also include other devices in the communication system, for example, other network entities such as a network controller and a mobility management entity, which are not limited in this embodiment of the present application.
  • the "instruction" mentioned in the embodiments of the present application may be a direct instruction, an indirect instruction, or an associated relationship.
  • a indicates B it can indicate that A directly indicates B, for example, B can be obtained through A; it can also indicate that A indicates B indirectly, such as A indicates C, and B can be obtained through C; it can also indicate that there is an association between A and B relation.
  • corresponding may indicate that there is a direct or indirect corresponding relationship between the two, or may indicate that there is an associated relationship between the two, or indicate and be instructed, configure and be instructed configuration, etc.
  • FIG. 2 is a schematic flowchart of a method 200 for deregistering a device according to an embodiment of the present application.
  • the method can optionally be applied to the system shown in Figure 1, but is not limited thereto.
  • the method includes at least some of the following.
  • S210 The first device sends a logout request to the cloud platform, where the logout request includes authentication information and credential information of the second device, so that the cloud platform logs out the second device.
  • the second device is a device that has completed registration on the cloud platform but needs to be deregistered.
  • Information such as account resources, session resources, and update resources of the second device may be saved on the cloud platform.
  • Credential information of the second device may be stored in the account resource of the second device.
  • the credential information may be used to log out the device on the cloud platform, and may also be referred to as logout credential information.
  • the first device is a device capable of initiating deregistration of other devices. By sending a logout request to the cloud platform by the first device, logout of the second device on the cloud platform can be implemented.
  • the verification information included in the logout request can be used to verify whether the first device that initiates the logout request is allowed to access the cloud platform.
  • the verification result is that the first device is allowed to access the cloud platform, the first device is a legitimate device. Then, the account resources, session resources, update resources and other information including the credential information of the second device in the logout request can be found on the cloud platform, and the information such as the account resources, session resources, and update resources of the second device can be deleted on the cloud platform, Thereby, the second device is deregistered. In addition, if the verification result is that the first device is not allowed to access the cloud platform, and the first device is an illegal device, the second device is not allowed to be deregistered on the cloud platform.
  • the verification information includes a user identification and/or a device identification.
  • the user identity and the device identity can be verified on the cloud platform. If multiple different devices of the same user have the same credential information, the cloud platform can only verify the user identity.
  • the user identification in the verification information may include identification information of the user registered in the cloud platform, such as user name, nickname, and the like.
  • the device identification in the verification information may include identification information of the device used by the user registered in the cloud platform, for example, the unique identification of the device represented by a character string, and the like. If the second device needs to be logged out, the verification information may include the user identification and/or the device identification of the second device.
  • the account resource corresponding to the user ID and/or device ID can be searched on the cloud platform, and the credential information in the account resource is compared with the credential information in the logout request. If they are the same, the second device is allowed to be logged out.
  • the verification information further includes an access token of the first device, where the access token is used to verify whether the first device is allowed to access the cloud platform.
  • the authentication information may include the access token of the device that initiated the logout request.
  • the access token of the device may be distributed by the cloud platform for the device during the process of registering the device with the cloud platform.
  • the cloud platform verifies the access token of the device to determine whether the device is allowed to access the cloud platform.
  • the credential information includes credential content and credential type.
  • the credential content may include information such as specific numbers or characters of the password set by the user, and the credential type may include the password type.
  • the credential type can also be other types, which can be set according to the needs of the actual application scenario.
  • the logout request further includes a logout type, and when the logout type is self-logout, the verification information includes the user ID, device ID, and access token of the first device. at least one of.
  • the logout request sent by the first device to the cloud platform includes that the logout type is self-logout, and also includes at least one of the user ID, device ID, and access token of the first device.
  • the cloud platform can delete information such as account resources, session resources, and update resources of the first device to logout the first device.
  • the verification information includes the user ID of the second device, the device ID of the second device, and the access token of the first device. at least one of the cards.
  • the logout request sent by the first device to the cloud platform includes the logout type as third-party logout, and also includes the user ID of the second device, the device ID of the second device, and the access of the first device. at least one of the tokens.
  • the cloud platform After the cloud platform receives the logout request, it can first verify the access token of the first device to confirm whether the device is allowed to access the cloud platform. If permitted, information such as account resources, session resources, and update resources of the second device may be searched according to the user identifier of the second device and/or the device identifier of the second device. If the credential content in the account resource of the second device is consistent with the credential content in the logout request, delete the account resource, session resource, update resource and other information of the second device on the cloud platform to logout the second device.
  • the credential information of the second device is generated by the first device.
  • the credential information of the second device is stored on the first device.
  • the first device may generate and save credential information of the second device, and in the case of needing to log out of the second device, obtain the credential information of the second device locally on the first device, and initiate a logout request.
  • the first device may not save the credential information of the second device, and obtain the credential information of the second device when a logout request needs to be initiated.
  • the first device first obtains credential information such as the logout password of the second device input by the user, and then initiates a logout request.
  • the first device obtains the credential information of the second device from other devices, and then initiates a logout request.
  • the method further includes:
  • the first device sends a credential creation request to the cloud platform, where the credential creation request includes credential information of the second device.
  • the first device may send a credential creation request to the cloud platform in the device registration stage, so as to save the credential information of the second device on the cloud platform.
  • the first device may or may not store the credential information of the second device.
  • An instance of a logout resource may be generated on the cloud platform, and the logout resource may include user identification, credential information, etc., and may also include a device identification.
  • the cloud platform After the cloud platform receives the credential creation request, it can directly add the credential information of the second device to the logout resource; it can also judge whether the credential information of the second device has been saved, and if so, it is not necessary to add it repeatedly.
  • the credential creation request may also include a user ID and/or a device ID, and it can be determined whether the user ID and/or device ID already have corresponding credential information. Credential information of the second device.
  • the method further includes:
  • the first device sends credential information to the second device to configure the credential information in the cloud platform registration configuration (Coap Cloud Configuration, CCC) resource of the second device, and the CCC resource of the second device is used to complete the The registration of the second device in the cloud platform.
  • CCC resource can be used to configure the information of the new device registration cloud platform, and can also be called a cloud platform configuration resource based on Coap (Constrained Application Protocol, Constrained Application Protocol).
  • the first device may configure the CCC resource of the second device, and configure the credential information of the second device into the CCC resource of the second device. Then, the second device may initiate registration with the cloud platform based on the CCC resource.
  • the method further includes:
  • the first device acquires the credential information of the second device from the third device, and the credential information of the second device is generated by the third device.
  • the third device may configure the CCC resource of the second device, and configure the credential information of the second device into the CCC resource of the second device. Then, the second device may initiate registration with the cloud platform based on the CCC resource. If the third device saves the credential information of the second device. The first device may acquire credential information of the second device from the third device, and initiates a logout request for logout of the second device.
  • OBT may be installed on a device capable of generating credential information of the second device, which may also be referred to as an OBT device.
  • the OBT device may guide the generation process of the credential information of the second device.
  • the method further includes:
  • the first device sends the credential information of the second device to the fourth device for storage.
  • the fourth device may not be an OBT device, but a device that has established a communication connection with the first device. If the first device sends the credential information of the second device to the fourth device for storage, and the fourth device is also a legal device registered on the cloud platform, the fourth device may also initiate a logout request for logout of the second device .
  • credential information of multiple second devices is the same.
  • credential information of multiple devices of a user may be the same.
  • the cloud platform may store the correspondence between the user ID and the credential information, and may also store the correspondence between the user ID, the device ID and the credential information.
  • the logout request may include user identification, device identification and credential information.
  • the credential information of each of the second devices is different.
  • the logout request may include user identification, device identification and credential information.
  • the first device initiates a logout request including verification information and credential information of the second device to the cloud platform, and the second device can be logged out on the cloud platform without the device itself actively initiating logout, thereby improving access to the cloud.
  • Platform device security For example, in the case that the target device is lost or occupied by others, the third-party device can be used to initiate the logout of the target device to ensure the data security of the target device on the cloud platform.
  • FIG. 3 is a schematic flowchart of a method 300 for deregistering a device according to an embodiment of the present application.
  • the method can optionally be applied to the system shown in Figure 1, but is not limited thereto.
  • the method includes at least some of the following.
  • S310 The cloud platform receives a logout request from the first device, where the logout request includes verification information and credential information of the second device;
  • S320 The cloud platform deregisters the second device according to the verification information and the credential information of the second device.
  • the verification information may be used to verify whether the first device that initiates the logout request is allowed to access the cloud platform. If the verification result is that the first device is allowed to access the cloud platform, the first device is a legitimate device. Then, the account resources, session resources, update resources and other information including the credential information of the second device in the logout request can be found on the cloud platform, and the information such as the account resources, session resources, and update resources of the second device can be deleted on the cloud platform, Thereby, the second device is deregistered. In addition, if the verification result is that the first device is not allowed to access the cloud platform, and the first device is an illegal device, the second device is not allowed to be deregistered on the cloud platform.
  • the verification information includes a user identification and/or a device identification.
  • the user identification in the verification information may include identification information of the user registered in the cloud platform.
  • the device identification in the verification information may include identification information of the device used by the user registered in the cloud platform. If the second device needs to be logged out, the verification information may include the user identification and/or the device identification of the second device.
  • the account resource corresponding to the user ID and/or device ID can be searched on the cloud platform, and the credential information in the account resource is compared with the credential information in the logout request. If they are the same, the second device is allowed to be logged out.
  • the verification information further includes an access token of the first device
  • the method further includes:
  • the cloud platform verifies the access token of the first device to determine whether the first device is allowed to access the cloud platform.
  • the credential information includes credential content and credential type.
  • the method further includes:
  • the cloud platform verifies whether the verification information includes at least one of the user identification, device identification and access token of the first device.
  • the method further includes:
  • the cloud platform verifies whether the verification information includes the user ID of the second device, the device ID of the second device, and the access token of the first device, and verifies the Verify whether the credential information in the request is consistent with the credential content corresponding to the user identifier and/or the device identifier of the second device in the account resource stored in the cloud platform.
  • the method further includes:
  • the cloud platform receives a credential creation request from the first device, where the credential creation request includes credential information of the second device, and the credential information of the second device is generated on the first device.
  • the method further includes:
  • the cloud platform receives a credential creation request from a third device, where the credential creation request includes credential information of the second device, and the credential information of the second device is generated on the third device.
  • the method further includes:
  • the cloud platform uses the CCC resource of the second device to complete the registration of the second device, and the CCC resource of the second device is configured with credential information of the second device.
  • credential information of multiple second devices is the same.
  • the credential information of each of the second devices is different.
  • the manner of deregistering the second device includes deleting at least one of the following resources of the second device:
  • Account resources of the second device where the account resources include credential information
  • FIG. 4 is a schematic flowchart of a method 400 for device registration according to an embodiment of the present application.
  • the method can optionally be applied to the system shown in Figure 1, but is not limited thereto.
  • the method includes at least some of the following.
  • the first device sends credential information to the second device to configure the credential information in the CCC resource of the second device, and the CCC resource of the second device is used to complete the registration of the second device in the cloud platform .
  • the method further includes:
  • the first device generates credential information for the second device.
  • the method further includes:
  • the first device sends a credential creation request to the cloud platform, where the credential creation request includes credential information of the second device.
  • the method further includes:
  • the first device stores credential information of the second device.
  • the method further includes:
  • the first device sends the credential information of the second device to the fourth device for storage.
  • credential information of multiple second devices is the same.
  • the credential information of each of the second devices is different.
  • the descriptions in the method 400 for executing the first device in this embodiment have the same meaning as those in the foregoing methods 200 and 300. For details, please refer to the relevant descriptions about the first device in the foregoing methods 200 and 300. Repeat.
  • the first device may save the credential information of the second device to the cloud platform or a peer device such as the above-mentioned fourth device.
  • the first device may initiate a logout process for the second device, see method 200 .
  • Other devices, such as the fourth device may also initiate a logout process for the second device, and the fourth device sends a logout request including credential information of the second device to the cloud platform to complete the logout of the second device.
  • FIG. 5 is a schematic flowchart of a method 500 for device registration according to an embodiment of the present application.
  • the method can optionally be applied to the system shown in Figure 1, but is not limited thereto.
  • the method includes at least some of the following.
  • S510 The second device receives the credential information
  • S520 the second device configures the credential information in the CCC resource of the second device
  • S530 The second device registers with the cloud platform based on the CCC resource.
  • the second device may receive the credential information from the device that generates the credential information of the second device in the above embodiment.
  • the second device receives credential information for the second device from the first device or the third device.
  • the second device configures the received credential information in its own CCC resource, and in the process of registering with the cloud platform, the second device may register with the cloud platform based on the CCC resource.
  • the descriptions in the second device execution method 500 in this embodiment have the same meaning as those in the foregoing methods 200 , 300 and 400 .
  • For the sake of brevity and will not be repeated here.
  • the device registration process may specifically include:
  • the configurator obtains the access token of the cloud platform (cloud) such as OCF (Open Cloud Fabric, Open Cloud Network Architecture) cloud platform user from the Authorisation Server (Authorisation Server) or the Authorisation Provider (Authorisation Provider) ). Create a user account for the OCF cloud platform (cloud).
  • cloud such as OCF (Open Cloud Fabric, Open Cloud Network Architecture) cloud platform user from the Authorisation Server (Authorisation Server) or the Authorisation Provider (Authorisation Provider) ).
  • OCF Open Cloud Fabric, Open Cloud Network Architecture
  • the configurator initiates the configurator registration (Mediator Registration) to the OCF cloud platform.
  • the configurator sends cloud configuration information (Cloud Configuration) to the OCF resource server (Resource Server), including cloud IP (Cloud IP), access token (Access token), etc.
  • the configurator provides the CCC resource "oic.r.coapcloudconf" on the device, which includes the access token, the URL of the OCF cloud platform, the identification (uuid) of the OCF cloud platform, and an optional authorization provider name, etc.
  • the OCF resource server establishes a TLS session (Session) to the OCF cloud platform.
  • the OCF resource server sends an access token and a device ID (Device ID) to the OCF cloud platform for device registration (Device Registration) and resource publishing (Resource Publish).
  • the cloud platform may include a correspondence table of tokens, device IDs, and user IDs (User ID), etc., and the registration request can be verified by OCF cloud by using this table, see Table 1.
  • the cloud platform shares the user's authentication information (Authentication) with the authorization server (Authorisation Server), including access tokens, user IDs, etc.
  • Authentication authentication information
  • authorization server Authorisation Server
  • the cloud logout process that is, after logging out a device on the cloud platform, the device can no longer connect to the cloud platform.
  • the device can send a deregistration request message to the cloud platform, and the message can carry an access token (AccessToken), UID (User ID, user ID) or DID (Device ID, device ID); or only carry access token.
  • accessToken AccessToken
  • UID User ID
  • DID Device ID, device ID
  • the cloud platform (Cloud) After the cloud platform (Cloud) receives the above information, it will delete the corresponding registration record and delete the corresponding content published by the device in the RD (Resource Directory) of the cloud platform (Cloud) (if it has been published) .
  • RD Resource Directory
  • Coapcloudconf resource (referred to as CCC resource or cloud platform registration configuration resource, which is the information for configuring new device registration cloud platform): This resource is used for OBT (Onboarding Tool) devices to configure this resource on new devices. Then the new device is registered with the cloud platform according to the configuration information of OBT.
  • the configuration information of OBT can include information such as access token, SID (Cloud ID, cloud platform identification such as cloud platform UUID), SURL (Cloud URL, cloud platform URL).
  • Account resource The resource of the device's registration information on the cloud platform, including one or more of UID, DID, and access token.
  • the OBT installed in the device can be used to implement device deregistration, which mainly includes the following methods:
  • the OBT generates a third-party deregistration credential, and may save the third-party credential in a cloud platform resource such as a deregister resource.
  • OBT configures the third-party logout credential to the account resource corresponding to the new device on the cloud platform; adds the credential attribute to the account resource. ;
  • OBT configures the third-party logout credential to the peer Device (or third-party device).
  • the peer device or third-party device initiates the third-party logout process.
  • the embodiment of the present application mainly uses a third-party device to complete the logout of the target device (Target Device).
  • Example 1 in the device registration and deregistration stage of the cloud platform (Cloud, also referred to as the cloud), it may specifically include:
  • a third-party deregistration credential request may be sent to the cloud platform, and a deregister resource instance, such as oic/sec/deregister resource, is generated on the cloud platform.
  • the logout resource may include the following attribute information: UID (User ID), logout credential information, and the like.
  • the logout credential information may include credential (credential content); and may also include credentialType (credential type). Wherein, the credential type may include password (password) or other methods.
  • OBT can customize the credential (credential content) and send it to the cloud platform through an Update (Update) message, instructing to update /oic/sec/deregister ⁇ UID,credentialType,credential ⁇ .
  • the update message may be a Post message in CoAP (Constrained Application Protocol, Constrained Application Protocol) or HTTP (HyperText Transfer Protocol, Hypertext Transfer Protocol).
  • CoAP Constrained Application Protocol
  • HTTP HyperText Transfer Protocol, Hypertext Transfer Protocol
  • the cloud platform performs authentication and saves the UID, the credential type, and the credential content into the logout resource and the account resource.
  • the cloud platform can first confirm whether the UID has registered the content of the certificate and/or the type of the certificate. Then add the above attribute information UID, credential content, etc. to the logout resource. If this process is completed during the registration of OBT to the cloud platform, you can add a credential parameter to the account resource corresponding to the OBT device, such as the /oic/sec/account resource. For example, add a parameter credential to the account resource, and save the credential information for third-party logout in the credential parameter. Then, the cloud platform can return a third-party logout credential creation response to the third-party device to notify the credential creation result.
  • a device identification DID parameter can be added to the deregister resource.
  • the third-party device (which may or may not have OBT) acquires the DID of the device to be deregistered (after the above-mentioned new device is successfully registered, it is called the device to be deregistered in the deregistration stage).
  • the third-party device can obtain the DID of the device to be deregistered, such as the lost device, in various ways. For example, the DID of the device to be deregistered has been saved locally in the third-party device. Another example is that the user reads it from other devices and inputs it on a third-party device.
  • the third-party device initiates a logout request.
  • the logout request carries UID and/or DID, access token (AccessToken), logout credential (credential) information, and the like.
  • the initiated third-party logout request is a delete (Delete) message, indicating deletion of /oic/sec/account ⁇ UserID, DeviceID, accessToken, Credential, DisregisterType ⁇ .
  • Delete delete
  • UserID is the user ID
  • DeviceID is the ID of the device to be deregistered
  • accessToken is the access token of the party initiating the deregistration
  • Credential is the content of the credential
  • DisregisterType is the deregistration type.
  • DeregisterType can be an enumeration type containing two values: self-dereg (self-deregistration, or self-deregistration) and 3rd-dereg (third-party deregistration, or his-deregistration).
  • a device that can obtain the content of the credential such as a client (client) can initiate a logout request; add the DisregisterType parameter to the request.
  • the device identification DID shall be the DID of the logout initiator, and the access token shall be the access token of the logout initiator. If the value of this parameter is "3rd-dereg", the DID is the DID of the device to be deregistered, and the access token is the access token of the party that initiated the deregistration.
  • the logout type is "3rd-dereg"
  • the DID of the request initiator can also be obtained here; the cloud platform can easily obtain the DID of the request initiator.
  • the cloud platform can determine whether the two match according to the content of the certificate corresponding to the DID of the device to be cancelled and the content of the certificate in the cancellation request.
  • DisregisterType may not be added, and it is mainly based on the content of the certificate to distinguish whether it is self-deregistration or he deregisters.
  • the cloud platform can return a third-party logout response to the third-party device to notify the logout success or failure.
  • Example 2 and Example 1 The main differences between Example 2 and Example 1 include: a deregister resource can not be generated separately on the cloud platform to store the deregistration credential information; in another device.
  • Example 2 in the device registration and deregistration stage of the cloud platform, the following steps may be specifically included:
  • the OBT locally generates a third-party cancellation credential (credential).
  • the OBT configures other devices, configure the above-mentioned third-party logout credential information to the CCC resources of the new device. For example, send an update message indicating that /oic/sec/ccc ⁇ at,credential ⁇ is updated.
  • the new device returns a reply configuring the CCC.
  • third-party logout credential information is added to the account resource; the third-party logout credential information may be for a single device, or for all devices under the same user ID. If all devices share the third-party logout credential information, you can register the information on the cloud platform when the OBT device is registered in the cloud, see Example 1.
  • the new device initiates a device registration process to the cloud platform according to the CCC resource; and adds the content of the certificate to the registration resource.
  • a configuration process of the peer device (peer Device) will be initiated.
  • the certificate information of the new device (New Device) can be registered.
  • provisioning add the credential type as 3rd-deregister and the credential content credential (optional) in the credential (cred) resource for the new device.
  • the third-party logout credential information for the new device needs to be saved to the peer device. Therefore, these peer devices configured with the third-party logout credential information of the new device can initiate a third-party logout process for the new device.
  • the third-party logout process is optional. If the third-party logout process is initiated, you can refer to Example 1.
  • the third-party device (which may or may not have OBT) obtains the DID of the device to be deregistered.
  • the third-party device can obtain the DID of the device to be deregistered in various ways. For example, the DID of the device to be deregistered has been saved locally in the third-party device. For another example, the user reads the DID of the device to be deregistered from other devices, and inputs it in the third-party device.
  • the third-party device initiates a logout request.
  • the logout request carries UID and/or DID, access token, third-party logout credential information, etc.
  • a delete message is sent to indicate the deletion of /oic/sec/account ⁇ UserID, DeviceID (logout device ID), credential ⁇ .
  • the DeviceID is the identification ID of the device to be deregistered.
  • the cancellation request carries the third-party cancellation credential information, it is determined that the process is a third-party cancellation request. If the request does not carry the third-party cancellation credential information, it is determined that the request is a cancellation request. That is to say, the third-party logout credential information is not carried in the self logout request.
  • the third-party logout process can be completed; especially when the device is lost, the cloud platform logout of the lost device can be completed through a third party.
  • FIG. 9 is a schematic block diagram of a communication device 20 according to an embodiment of the present application.
  • the communication device 20 may perform the function of the first device in the above-mentioned method embodiment for device logout, and the communication device may include:
  • the sending unit 21 is configured to send a logout request to the cloud platform, where the logout request includes authentication information and credential information of the second device, so that the cloud platform can logout the second device.
  • the verification information includes a user identification and/or a device identification.
  • the verification information further includes an access token of the communication device, where the access token is used to verify whether the communication device is allowed to access the cloud platform.
  • the credential information includes credential content and credential type.
  • the verification information includes at least one of a user ID, a device ID, and an access token of the communication device.
  • the verification information includes the user ID of the second device, the device ID of the second device, and the access token of the communication device. at least one of.
  • the credential information of the second device is generated by the communication device.
  • the sending unit 21 is further configured to:
  • a credential creation request is sent to the cloud platform, where the credential creation request includes credential information of the second device.
  • the sending unit 21 is further configured to:
  • the communication device 20 further includes:
  • the obtaining unit 22 is used for the communication device to obtain the credential information of the second device from the third device, where the credential information of the second device is generated by the third device.
  • the credential information of the second device is stored on the communication device.
  • the sending unit 21 is further configured to send the credential information of the second device to the fourth device for storage.
  • credential information of multiple second devices is the same.
  • the credential information of each of the second devices is different.
  • the communication device 20 in this embodiment of the present application can implement the corresponding function of the first device in the foregoing method 200 embodiment.
  • each module (submodule, unit or component, etc.) in the communication device 20 For the corresponding processes, functions, implementations and beneficial effects of each module (submodule, unit or component, etc.) in the communication device 20, reference may be made to the corresponding descriptions in the above method embodiments, which will not be repeated here.
  • the functions described by the various modules (submodules, units or components, etc.) in the communication device 20 of the application embodiments may be implemented by different modules (submodules, units or components, etc.), or may be implemented by the same module Module (submodule, unit or component, etc.) implementation.
  • FIG. 11 is a schematic block diagram of a cloud platform 30 according to an embodiment of the present application.
  • the cloud platform 30 may include:
  • a receiving unit 31 configured to receive a logout request from the first device, where the logout request includes authentication information and credential information of the second device;
  • the logout unit 32 is configured to logout the second device according to the verification information and the credential information of the second device.
  • the verification information includes a user identification and/or a device identification.
  • the verification information further includes an access token of the first device.
  • the cloud platform 30 further includes:
  • the first verification unit 33 is configured to verify the access token of the first device to determine whether the first device is allowed to access the cloud platform.
  • the credential information includes credential content and credential type.
  • the logout request further includes a logout type.
  • the cloud platform also includes:
  • the second verification unit 34 is configured to verify, by the cloud platform, whether the verification information includes at least one of the user identification, device identification and access token of the first device when the logout type is self logout.
  • the cloud platform further includes:
  • the third verification unit 35 is configured to verify, by the cloud platform, whether the verification information includes the user ID of the second device, the device ID of the second device and the first device when the log-out type is third-party log-out and verify whether the credential information in the verification request is consistent with the credential content corresponding to the user ID and/or device ID of the second device in the account resources saved by the cloud platform.
  • the receiving unit 31 is further configured to receive a credential creation request from the first device, where the credential creation request includes credential information of the second device, the credential information of the second device is generated at this first device.
  • the receiving unit 31 is further configured to receive a credential creation request from a third device, where the credential creation request includes credential information of the second device, and the credential information of the second device is generated in this third device.
  • the cloud platform further includes:
  • the registration unit 36 is configured to use the CCC resource of the second device to complete the registration of the second device, and the CCC resource of the second device is configured with credential information of the second device.
  • credential information of multiple second devices is the same.
  • the credential information of each of the second devices is different.
  • the manner of deregistering the second device includes deleting at least one of the following resources of the second device:
  • Account resources of the second device where the account resources include credential information
  • the cloud platform 30 in this embodiment of the present application can implement the corresponding functions of the cloud platform in the foregoing method 200 and 300 embodiments.
  • each module (sub-module, unit, or component, etc.) in the cloud platform 30 reference may be made to the corresponding descriptions in the above method embodiments, which will not be repeated here.
  • the functions described by each module (submodule, unit or component, etc.) in the cloud platform 30 of the application embodiment may be implemented by different modules (submodule, unit or component, etc.), or by the same Module (submodule, unit or component, etc.) implementation.
  • FIG. 13 is a schematic block diagram of a communication device 40 according to an embodiment of the present application.
  • the communication device 40 may perform the function of the first device in the above-mentioned embodiment of the method for device registration, and the communication device may include:
  • a sending unit 41 configured to send credential information to the second device, so as to configure the credential information in the CCC resource of the second device, and the CCC resource of the second device is used to complete the registration of the second device in the cloud platform .
  • the communication device 40 further includes:
  • the information generating unit 42 is configured to generate credential information of the second device.
  • the sending unit 41 is further configured to send a credential creation request to the cloud platform, where the credential creation request includes credential information of the second device.
  • the information saving unit 43 is configured to save the credential information of the second device.
  • the sending unit 41 is further configured to send the credential information of the second device to the fourth device for storage.
  • credential information of multiple second devices is the same.
  • the credential information of each of the second devices is different.
  • the communication device 40 in this embodiment of the present application can implement the corresponding function of the first device in the foregoing method 400 embodiment.
  • each module sub-module, unit or component, etc.
  • each module (sub-module, unit, or component, etc.) in the communication device 40 of the application embodiment may be implemented by different modules (sub-module, unit, or component, etc.), or by the same Module (submodule, unit or component, etc.) implementation.
  • FIG. 15 is a schematic block diagram of a communication device 50 according to an embodiment of the present application.
  • the communication device 50 may perform the function of the second device in the above-mentioned embodiment of the method for device registration, and the communication device may include:
  • a receiving unit 51 configured to receive credential information
  • a configuration unit 52 configured to configure the credential information in the CCC resource of the network device
  • the registration unit 53 is configured to register with the cloud platform based on the CCC resource.
  • the communication device 50 in this embodiment of the present application can implement the corresponding function of the second device in the foregoing method 500 embodiment.
  • each module (sub-module, unit or component, etc.) in the communication device 50 reference may be made to the corresponding descriptions in the above method embodiments, which will not be repeated here.
  • the functions described by each module (sub-module, unit or component, etc.) in the communication device 50 of the application embodiment may be implemented by different modules (sub-module, unit or component, etc.), or by the same Module (submodule, unit or component, etc.) implementation.
  • FIG. 16 is a schematic structural diagram of a communication device 600 according to an embodiment of the present application.
  • the communication device 600 includes a processor 610, and the processor 610 can call and run a computer program from a memory, so that the communication device 600 implements the methods in the embodiments of the present application.
  • the communication device 600 may further include a memory 620 .
  • the processor 610 may call and run a computer program from the memory 620, so that the communication device 600 implements the methods in the embodiments of the present application.
  • the memory 620 may be a separate device independent of the processor 610 , or may be integrated in the processor 610 .
  • the communication device 600 may further include a transceiver 630, and the processor 610 may control the transceiver 630 to communicate with other devices, specifically, may send information or data to other devices, or receive other devices Information or data sent by a device.
  • the transceiver 630 may include a transmitter and a receiver.
  • the transceiver 630 may further include antennas, and the number of the antennas may be one or more.
  • the communication device 600 may be the network device of this embodiment of the present application, and the communication device 600 may implement the corresponding processes implemented by the network device in each method of the embodiment of the present application, which is not repeated here for brevity.
  • the communication device 600 may be a terminal device in this embodiment of the present application, and the communication device 600 may implement corresponding processes implemented by the terminal device in each method in the embodiment of the present application, which is not repeated here for brevity.
  • FIG. 17 is a schematic structural diagram of a chip 700 according to an embodiment of the present application.
  • the chip 700 includes a processor 710, and the processor 710 can call and run a computer program from a memory, so as to implement the method in the embodiments of the present application.
  • the chip 700 may further include a memory 720 .
  • the processor 710 may call and run a computer program from the memory 720 to implement the method executed by the terminal device or the network device in the embodiment of the present application.
  • the memory 720 may be a separate device independent of the processor 710 , or may be integrated in the processor 710 .
  • the chip 700 may further include an input interface 730 .
  • the processor 710 may control the input interface 730 to communicate with other devices or chips, and specifically, may acquire information or data sent by other devices or chips.
  • the chip 700 may further include an output interface 740 .
  • the processor 710 can control the output interface 740 to communicate with other devices or chips, and specifically, can output information or data to other devices or chips.
  • the chip can be applied to the network device in the embodiment of the present application, and the chip can implement the corresponding processes implemented by the network device in each method of the embodiment of the present application, which is not repeated here for brevity.
  • the chip can be applied to the terminal device in the embodiment of the present application, and the chip can implement the corresponding processes implemented by the terminal device in each method of the embodiment of the present application, which is not repeated here for brevity.
  • Chips applied to network equipment and terminal equipment can be the same chip or different chips.
  • the chip mentioned in the embodiments of the present application may also be referred to as a system-on-chip, a system-on-chip, a system-on-chip, or a system-on-a-chip, or the like.
  • the above-mentioned processor may be a general-purpose processor, a digital signal processor (DSP), an off-the-shelf programmable gate array (field programmable gate array, FPGA), an application specific integrated circuit (ASIC) or Other programmable logic devices, transistor logic devices, discrete hardware components, etc.
  • DSP digital signal processor
  • FPGA field programmable gate array
  • ASIC application specific integrated circuit
  • the general-purpose processor mentioned above may be a microprocessor or any conventional processor or the like.
  • the memory mentioned above may be either volatile memory or non-volatile memory, or may include both volatile and non-volatile memory.
  • the non-volatile memory may be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically programmable Erase programmable read-only memory (electrically EPROM, EEPROM) or flash memory.
  • Volatile memory may be random access memory (RAM).
  • the memory in the embodiment of the present application may also be a static random access memory (static RAM, SRAM), a dynamic random access memory (dynamic RAM, DRAM), Synchronous dynamic random access memory (synchronous DRAM, SDRAM), double data rate synchronous dynamic random access memory (double data rate SDRAM, DDR SDRAM), enhanced synchronous dynamic random access memory (enhanced SDRAM, ESDRAM), synchronous connection Dynamic random access memory (synch link DRAM, SLDRAM) and direct memory bus random access memory (Direct Rambus RAM, DR RAM) and so on. That is, the memory in the embodiments of the present application is intended to include but not limited to these and any other suitable types of memory.
  • FIG. 18 is a schematic block diagram of a communication system 800 according to an embodiment of the present application.
  • the communication system 800 may include a first device 810 and a cloud platform 820 .
  • the first device 810 may be configured to send a logout request to the cloud platform 820, where the logout request includes authentication information and credential information of the second device, so that the cloud platform 820 logs out the second device.
  • the cloud platform 820 may be configured to receive the logout request from the first device 810; logout the second device according to the verification information in the logout request and the credential information of the second device.
  • the first device 810 may also be configured to send credential information to the second device, so as to configure the credential information in the CCC resource of the second device, and the CCC resource of the second device is used to complete the second device.
  • Device registration in the cloud platform may also be configured to send credential information to the second device, so as to configure the credential information in the CCC resource of the second device, and the CCC resource of the second device is used to complete the second device.
  • the first device 810 may be used to implement the corresponding functions implemented by the first device in the above method embodiments
  • the cloud platform 820 may be used to implement the corresponding functions implemented by the cloud platform in the above method embodiments. For brevity, details are not repeated here.
  • the communication system 800 may further include: a second device 830, configured to receive credential information; configure the credential information in the CCC resource of the second device; and register with the cloud platform based on the CCC resource.
  • a second device 830 configured to receive credential information; configure the credential information in the CCC resource of the second device; and register with the cloud platform based on the CCC resource.
  • the communication system 800 may further include: a third device 840, configured to send a credential creation request to the cloud platform, where the credential creation request includes credential information of the second device, and the credential information of the second device is in the generated by a third device.
  • a third device 840 configured to send a credential creation request to the cloud platform, where the credential creation request includes credential information of the second device, and the credential information of the second device is in the generated by a third device.
  • the communication system 800 may further include: a fourth device 850, configured to receive and save credential information of the second device.
  • the fourth device 850 may receive the credential information of the second device from the first device 810 or the third device 840 .
  • the above-mentioned embodiments it may be implemented in whole or in part by software, hardware, firmware or any combination thereof.
  • software it can be implemented in whole or in part in the form of a computer program product.
  • the computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of the present application are generated.
  • the computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable device.
  • the computer instructions may be stored on or transmitted from one computer readable storage medium to another computer readable storage medium, for example, the computer instructions may be transmitted over a wire from a website site, computer, server or data center (eg coaxial cable, optical fiber, Digital Subscriber Line (DSL)) or wireless (eg infrared, wireless, microwave, etc.) means to another website site, computer, server or data center.
  • the computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that includes one or more available media integrated.
  • the available medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a DVD), or a semiconductor medium (eg, a Solid State Disk (SSD)), and the like.
  • a magnetic medium eg, a floppy disk, a hard disk, a magnetic tape
  • an optical medium eg, a DVD
  • a semiconductor medium eg, a Solid State Disk (SSD)
  • the size of the sequence numbers of the above-mentioned processes does not mean the sequence of execution, and the execution sequence of each process should be determined by its functions and internal logic, and should not be dealt with in the embodiments of the present application. implementation constitutes any limitation.

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)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Multimedia (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The present application relates to a device deregistration method, a device registration method, a communication device and a cloud platform. The device deregistration method comprises: a first device sending a deregistration request to a cloud platform, wherein the deregistration request comprises verification information, and certificate information of a second device, so that the cloud platform deregisters the second device. By means of the embodiments of the present application, the first device initiates, to the cloud platform, the deregistration request that comprises the verification information, and the certificate information of the second device, so that the second device can be deregistered on the cloud platform without the need for the device to actively initiate deregistration, thereby improving the security of the device that accesses the cloud platform.

Description

设备注销的方法、设备注册的方法、通信设备和云平台Method for device deregistration, method for device registration, communication device and cloud platform 技术领域technical field
本申请涉及通信领域,更具体地,涉及一种设备注销的方法、设备注册的方法、通信设备和云平台。The present application relates to the field of communications, and more particularly, to a method for deregistering a device, a method for registering a device, a communication device, and a cloud platform.
背景技术Background technique
在可以通过云平台控制设备之前,该设备需要先注册到云平台上。在注册过程中云平台为设备分配访问令牌。然后设备可能会将自身的资源信息发布到云平台上以便其他设备可以发现和订阅。与云注册(registration)流程相对应的是云注销(deregistration)流程,在云平台上注销一个设备后,该设备不可以再连接云平台。通常是设备主动发起注销流程,因此,当用户的设备不小心丢失后或者被恶意偷盗后,恶意用户可以通过该设备来控制和访问丢失该设备的用户在云平台上注册的其他设备,从而给用户造成损失。Before the device can be controlled through the cloud platform, the device needs to be registered with the cloud platform. The cloud platform assigns an access token to the device during the registration process. The device may then publish its own resource information to the cloud platform so that other devices can discover and subscribe. Corresponding to the cloud registration (registration) process is the cloud deregistration (deregistration) process. After a device is deregistered on the cloud platform, the device can no longer connect to the cloud platform. Usually, the device initiates the logout process. Therefore, when the user's device is accidentally lost or maliciously stolen, the malicious user can use the device to control and access other devices registered on the cloud platform by the user who lost the device. loss to users.
发明内容SUMMARY OF THE INVENTION
本申请实施例提供一种设备注销的方法、设备注册的方法、通信设备和云平台,可以提高接入云平台的设备的安全。The embodiments of the present application provide a method for deregistering a device, a method for registering a device, a communication device and a cloud platform, which can improve the security of devices accessing the cloud platform.
本申请实施例提供一种注销设备的方法,包括:An embodiment of the present application provides a method for deregistering a device, including:
第一设备向云平台发送注销请求,该注销请求中包括验证信息和第二设备的凭证信息,以使得该云平台对该第二设备进行注销。The first device sends a logout request to the cloud platform, where the logout request includes authentication information and credential information of the second device, so that the cloud platform logs out the second device.
本申请实施例提供一种注销设备的方法,包括:An embodiment of the present application provides a method for deregistering a device, including:
云平台接收来自第一设备的注销请求,该注销请求中包括验证信息和第二设备的凭证信息;The cloud platform receives a logout request from the first device, where the logout request includes verification information and credential information of the second device;
该云平台根据该验证信息和该第二设备的凭证信息,对该第二设备进行注销。The cloud platform deregisters the second device according to the verification information and the credential information of the second device.
本申请实施例提供一种设备注册的方法,其中,还包括:An embodiment of the present application provides a method for device registration, which further includes:
该第一设备向该第二设备发送凭证信息,以将该凭证信息配置在该第二设备的CCC资源中,该第二设备的CCC资源用于完成该第二设备在云平台的注册。The first device sends credential information to the second device to configure the credential information in the CCC resource of the second device, and the CCC resource of the second device is used to complete the registration of the second device in the cloud platform.
本申请实施例提供一种设备注册的方法,其中,还包括:An embodiment of the present application provides a method for device registration, which further includes:
第二设备接收凭证信息;The second device receives the credential information;
该第二设备将该凭证信息配置在该第二设备的CCC资源中;The second device configures the credential information in the CCC resource of the second device;
该第二设备基于该CCC资源向云平台进行注册。The second device registers with the cloud platform based on the CCC resource.
本申请实施例提供一种通信设备,包括:An embodiment of the present application provides a communication device, including:
发送单元,用于向云平台发送注销请求,该注销请求中包括验证信息和第二设备的凭证信息,以使得该云平台对该第二设备进行注销。The sending unit is configured to send a logout request to the cloud platform, where the logout request includes authentication information and credential information of the second device, so that the cloud platform can logout the second device.
本申请实施例提供一种云平台,包括:The embodiments of the present application provide a cloud platform, including:
接收单元,用于接收来自第一设备的注销请求,该注销请求中包括验证信息和第二设备的凭证信息;a receiving unit, configured to receive a logout request from the first device, where the logout request includes authentication information and credential information of the second device;
注销单元,用于根据该验证信息和该第二设备的凭证信息,对该第二设备进行注销。A logout unit, configured to logout the second device according to the verification information and the credential information of the second device.
本申请实施例提供一种通信设备,包括:An embodiment of the present application provides a communication device, including:
发送单元,用于向该第二设备发送凭证信息,以将该凭证信息配置在该第二设备的CCC资源中,该第二设备的CCC资源用于完成该第二设备在云平台的注册。A sending unit, configured to send credential information to the second device, so as to configure the credential information in the CCC resource of the second device, and the CCC resource of the second device is used to complete the registration of the second device in the cloud platform.
本申请实施例提供一种通信设备,其中,包括:Embodiments of the present application provide a communication device, including:
接收单元,用于接收凭证信息;a receiving unit for receiving credential information;
配置单元,用于将该凭证信息配置在该通信设备的CCC资源中;a configuration unit, configured to configure the credential information in the CCC resource of the communication device;
注册单元,用于基于该CCC资源向云平台进行注册。The registration unit is used to register with the cloud platform based on the CCC resource.
本申请实施例提供一种通信设备,包括处理器和存储器。该存储器用于存储计算机程序,该处理器用于调用并运行该存储器中存储的计算机程序,以使该通信设备执行上述的设备注销的方法或设备注册的方法。Embodiments of the present application provide a communication device including a processor and a memory. The memory is used for storing a computer program, and the processor is used for calling and running the computer program stored in the memory, so that the communication device executes the above-mentioned method for device logout or device registration method.
本申请实施例提供一种云平台,包括处理器和存储器。该存储器用于存储计算机程序,该处理器用于调用并运行该存储器中存储的计算机程序,以使该云平台执行上述的设备注销的方法。Embodiments of the present application provide a cloud platform, including a processor and a memory. The memory is used for storing a computer program, and the processor is used for calling and running the computer program stored in the memory, so that the cloud platform executes the above-mentioned method for deregistering the device.
本申请实施例提供一种芯片,用于实现上述的设备注销的方法或设备注册的方法。An embodiment of the present application provides a chip, which is used to implement the above-mentioned method for deregistering a device or a method for registering a device.
具体地,该芯片包括:处理器,用于从存储器中调用并运行计算机程序,使得安装有该芯片的设备执行上述的设备注销的方法或设备注册的方法。Specifically, the chip includes: a processor for invoking and running a computer program from the memory, so that a device installed with the chip executes the above-mentioned method for deregistering a device or a method for registering a device.
本申请实施例提供一种计算机可读存储介质,用于存储计算机程序,当该计算机程序被设备运行时使得该设备执行上述的设备注销的方法或设备注册的方法。Embodiments of the present application provide a computer-readable storage medium for storing a computer program, which, when the computer program is run by a device, causes the device to execute the above-mentioned method for deregistering a device or a method for registering a device.
本申请实施例提供一种计算机程序产品,包括计算机程序指令,该计算机程序指令使得计算机执行上述的设备注销的方法或设备注册的方法。An embodiment of the present application provides a computer program product, including computer program instructions, and the computer program instructions cause a computer to execute the above-mentioned method for deregistering a device or a method for registering a device.
本申请实施例提供一种计算机程序,当其在计算机上运行时,使得计算机执行上述的设备注销的方法或设备注册的方法。An embodiment of the present application provides a computer program, which, when running on a computer, enables the computer to execute the above-mentioned method for deregistering a device or a method for registering a device.
本申请实施例,通过第一设备向云平台发起包括验证信息和第二设备的凭证信息的注销请求,可以在云平台对第二设备进行注销,无需设备自己主动发起注销,从而提高接入云平台的设备的安全。In this embodiment of the present application, the first device initiates a logout request including verification information and credential information of the second device to the cloud platform, and the second device can be logged out on the cloud platform without the device itself actively initiating logout, thereby improving access to the cloud. Platform device security.
附图说明Description of drawings
图1是根据本申请实施例的应用场景的示意图。FIG. 1 is a schematic diagram of an application scenario according to an embodiment of the present application.
图2是根据本申请一实施例设备注销的方法的示意性流程图。FIG. 2 is a schematic flowchart of a method for deregistering a device according to an embodiment of the present application.
图3是根据本申请另一实施例设备注销的方法的示意性流程图。FIG. 3 is a schematic flowchart of a method for deregistering a device according to another embodiment of the present application.
图4是根据本申请一实施例设备注册的方法的示意性流程图。FIG. 4 is a schematic flowchart of a method for device registration according to an embodiment of the present application.
图5是根据本申请另一实施例设备注册的方法的示意性流程图。FIG. 5 is a schematic flowchart of a method for device registration according to another embodiment of the present application.
图6是根据设备注册流程的示意性流程图。FIG. 6 is a schematic flowchart according to a device registration process.
图7是根据示例1的示意性流程图。FIG. 7 is a schematic flowchart according to Example 1. FIG.
图8是根据示例2的示意性流程图。FIG. 8 is a schematic flowchart according to Example 2. FIG.
图9是根据本申请一实施例的通信设备的示意性框图。FIG. 9 is a schematic block diagram of a communication device according to an embodiment of the present application.
图10是根据本申请另一实施例的通信设备的示意性框图。FIG. 10 is a schematic block diagram of a communication device according to another embodiment of the present application.
图11是根据本申请一实施例的云平台的示意性框图。FIG. 11 is a schematic block diagram of a cloud platform according to an embodiment of the present application.
图12是根据本申请另一实施例的云平台的示意性框图。FIG. 12 is a schematic block diagram of a cloud platform according to another embodiment of the present application.
图13是根据本申请另一实施例的通信设备的示意性框图。FIG. 13 is a schematic block diagram of a communication device according to another embodiment of the present application.
图14是根据本申请另一实施例的通信设备的示意性框图。FIG. 14 is a schematic block diagram of a communication device according to another embodiment of the present application.
图15是根据本申请另一实施例的通信设备的示意性框图。FIG. 15 is a schematic block diagram of a communication device according to another embodiment of the present application.
图16是根据本申请实施例的通信设备示意性框图。FIG. 16 is a schematic block diagram of a communication device according to an embodiment of the present application.
图17是根据本申请实施例的芯片的示意性框图。FIG. 17 is a schematic block diagram of a chip according to an embodiment of the present application.
图18是根据本申请实施例的通信系统的示意性框图。FIG. 18 is a schematic block diagram of a communication system according to an embodiment of the present application.
具体实施方式detailed description
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行描述。The technical solutions in the embodiments of the present application will be described below with reference to the accompanying drawings in the embodiments of the present application.
本申请实施例的技术方案可以应用于各种通信系统,例如:全球移动通讯(Global System of Mobile communication,GSM)系统、码分多址(Code Division Multiple Access,CDMA)系统、宽带码分多址 (Wideband Code Division Multiple Access,WCDMA)系统、通用分组无线业务(General Packet Radio Service,GPRS)、长期演进(Long Term Evolution,LTE)系统、先进的长期演进(Advanced long term evolution,LTE-A)系统、新无线(New Radio,NR)系统、NR系统的演进系统、非授权频谱上的LTE(LTE-based access to unlicensed spectrum,LTE-U)系统、非授权频谱上的NR(NR-based access to unlicensed spectrum,NR-U)系统、非地面通信网络(Non-Terrestrial Networks,NTN)系统、通用移动通信系统(Universal Mobile Telecommunication System,UMTS)、无线局域网(Wireless Local Area Networks,WLAN)、无线保真(Wireless Fidelity,WiFi)、第五代通信(5th-Generation,5G)系统或其他通信系统等。The technical solutions of the embodiments of the present application can be applied to various communication systems, for example: a Global System of Mobile communication (GSM) system, a Code Division Multiple Access (CDMA) system, a wideband Code Division Multiple Access (CDMA) system (Wideband Code Division Multiple Access, WCDMA) system, General Packet Radio Service (General Packet Radio Service, GPRS), Long Term Evolution (Long Term Evolution, LTE) system, Advanced Long Term Evolution (Advanced long term evolution, LTE-A) system , New Radio (NR) system, evolution system of NR system, LTE (LTE-based access to unlicensed spectrum, LTE-U) system on unlicensed spectrum, NR (NR-based access to unlicensed spectrum) unlicensed spectrum, NR-U) system, Non-Terrestrial Networks (NTN) system, Universal Mobile Telecommunication System (UMTS), Wireless Local Area Networks (WLAN), Wireless Fidelity (Wireless Fidelity, WiFi), fifth-generation communication (5th-Generation, 5G) system or other communication systems, etc.
通常来说,传统的通信系统支持的连接数有限,也易于实现,然而,随着通信技术的发展,移动通信系统将不仅支持传统的通信,还将支持例如,设备到设备(Device to Device,D2D)通信,机器到机器(Machine to Machine,M2M)通信,机器类型通信(Machine Type Communication,MTC),车辆间(Vehicle to Vehicle,V2V)通信,或车联网(Vehicle to everything,V2X)通信等,本申请实施例也可以应用于这些通信系统。Generally speaking, traditional communication systems support a limited number of connections and are easy to implement. However, with the development of communication technology, mobile communication systems will not only support traditional communication, but also support, for example, Device to Device (Device to Device, D2D) communication, Machine to Machine (M2M) communication, Machine Type Communication (MTC), Vehicle to Vehicle (V2V) communication, or Vehicle to everything (V2X) communication, etc. , the embodiments of the present application can also be applied to these communication systems.
可选地,本申请实施例中的通信系统可以应用于载波聚合(Carrier Aggregation,CA)场景,也可以应用于双连接(Dual Connectivity,DC)场景,还可以应用于独立(Standalone,SA)布网场景。Optionally, the communication system in this embodiment of the present application may be applied to a carrier aggregation (Carrier Aggregation, CA) scenario, a dual connectivity (Dual Connectivity, DC) scenario, or a standalone (Standalone, SA) distribution. web scene.
可选地,本申请实施例中的通信系统可以应用于非授权频谱,其中,非授权频谱也可以认为是共享频谱;或者,本申请实施例中的通信系统也可以应用于授权频谱,其中,授权频谱也可以认为是非共享频谱。Optionally, the communication system in the embodiment of the present application may be applied to an unlicensed spectrum, where the unlicensed spectrum may also be considered as a shared spectrum; or, the communication system in the embodiment of the present application may also be applied to a licensed spectrum, where, Licensed spectrum can also be considered unshared spectrum.
本申请实施例结合网络设备和终端设备描述了各个实施例,其中,终端设备也可以称为用户设备(User Equipment,UE)、接入终端、用户单元、用户站、移动站、移动台、远方站、远程终端、移动设备、用户终端、终端、无线通信设备、用户代理或用户装置等。The embodiments of the present application describe various embodiments in conjunction with network equipment and terminal equipment, where the terminal equipment may also be referred to as user equipment (User Equipment, UE), access terminal, subscriber unit, subscriber station, mobile station, mobile station, remote station, remote terminal, mobile device, user terminal, terminal, wireless communication device, user agent or user device, etc.
终端设备可以是WLAN中的站点(STAION,ST),可以是蜂窝电话、无绳电话、会话启动协议(Session Initiation Protocol,SIP)电话、无线本地环路(Wireless Local Loop,WLL)站、个人数字处理(Personal Digital Assistant,PDA)设备、具有无线通信功能的手持设备、计算设备或连接到无线调制解调器的其它处理设备、车载设备、可穿戴设备、下一代通信系统例如NR网络中的终端设备,或者未来演进的公共陆地移动网络(Public Land Mobile Network,PLMN)网络中的终端设备等。The terminal device can be a station (STAION, ST) in the WLAN, can be a cellular phone, a cordless phone, a Session Initiation Protocol (SIP) phone, a Wireless Local Loop (WLL) station, a personal digital processing (Personal Digital Assistant, PDA) devices, handheld devices with wireless communication capabilities, computing devices or other processing devices connected to wireless modems, in-vehicle devices, wearable devices, next-generation communication systems such as end devices in NR networks, or future Terminal equipment in the evolved public land mobile network (Public Land Mobile Network, PLMN) network, etc.
在本申请实施例中,终端设备可以部署在陆地上,包括室内或室外、手持、穿戴或车载;也可以部署在水面上(如轮船等);还可以部署在空中(例如飞机、气球和卫星上等)。In this embodiment of the present application, the terminal device can be deployed on land, including indoor or outdoor, handheld, wearable, or vehicle-mounted; it can also be deployed on water (such as ships, etc.); it can also be deployed in the air (such as airplanes, balloons, and satellites) superior).
在本申请实施例中,终端设备可以是手机(Mobile Phone)、平板电脑(Pad)、带无线收发功能的电脑、虚拟现实(Virtual Reality,VR)终端设备、增强现实(Augmented Reality,AR)终端设备、工业控制(industrial control)中的无线终端设备、无人驾驶(self driving)中的无线终端设备、远程医疗(remote medical)中的无线终端设备、智能电网(smart grid)中的无线终端设备、运输安全(transportation safety)中的无线终端设备、智慧城市(smart city)中的无线终端设备或智慧家庭(smart home)中的无线终端设备等。In this embodiment of the present application, the terminal device may be a mobile phone (Mobile Phone), a tablet computer (Pad), a computer with a wireless transceiver function, a virtual reality (Virtual Reality, VR) terminal device, and an augmented reality (Augmented Reality, AR) terminal Equipment, wireless terminal equipment in industrial control, wireless terminal equipment in self driving, wireless terminal equipment in remote medical, wireless terminal equipment in smart grid , wireless terminal equipment in transportation safety, wireless terminal equipment in smart city or wireless terminal equipment in smart home, etc.
作为示例而非限定,在本申请实施例中,该终端设备还可以是可穿戴设备。可穿戴设备也可以称为穿戴式智能设备,是应用穿戴式技术对日常穿戴进行智能化设计、开发出可以穿戴的设备的总称,如眼镜、手套、手表、服饰及鞋等。可穿戴设备即直接穿在身上,或是整合到用户的衣服或配件的一种便携式设备。可穿戴设备不仅仅是一种硬件设备,更是通过软件支持以及数据交互、云端交互来实现强大的功能。广义穿戴式智能设备包括功能全、尺寸大、可不依赖智能手机实现完整或者部分的功能,例如:智能手表或智能眼镜等,以及只专注于某一类应用功能,需要和其它设备如智能手机配合使用,如各类进行体征监测的智能手环、智能首饰等。As an example and not a limitation, in this embodiment of the present application, the terminal device may also be a wearable device. Wearable devices can also be called wearable smart devices, which are the general term for the intelligent design of daily wear and the development of wearable devices using wearable technology, such as glasses, gloves, watches, clothing and shoes. A wearable device is a portable device that is worn directly on the body or integrated into the user's clothing or accessories. Wearable device is not only a hardware device, but also realizes powerful functions through software support, data interaction, and cloud interaction. In a broad sense, wearable smart devices include full-featured, large-scale, complete or partial functions without relying on smart phones, such as smart watches or smart glasses, and only focus on a certain type of application function, which needs to cooperate with other devices such as smart phones. Use, such as all kinds of smart bracelets, smart jewelry, etc. for physical sign monitoring.
在本申请实施例中,网络设备可以是用于与移动设备通信的设备,网络设备可以是WLAN中的接 入点(Access Point,AP),GSM或CDMA中的基站(Base Transceiver Station,BTS),也可以是WCDMA中的基站(NodeB,NB),还可以是LTE中的演进型基站(Evolutional Node B,eNB或eNodeB),或者中继站或接入点,或者车载设备、可穿戴设备以及NR网络中的网络设备(gNB)或者未来演进的PLMN网络中的网络设备或者NTN网络中的网络设备等。In this embodiment of the present application, the network device may be a device for communicating with a mobile device, and the network device may be an access point (Access Point, AP) in WLAN, or a base station (Base Transceiver Station, BTS) in GSM or CDMA , it can also be a base station (NodeB, NB) in WCDMA, it can also be an evolved base station (Evolutional Node B, eNB or eNodeB) in LTE, or a relay station or access point, or in-vehicle equipment, wearable devices and NR networks The network equipment (gNB) in the PLMN network in the future evolution or the network equipment in the NTN network, etc.
作为示例而非限定,在本申请实施例中,网络设备可以具有移动特性,例如网络设备可以为移动的设备。可选地,网络设备可以为卫星、气球站。例如,卫星可以为低地球轨道(low earth orbit,LEO)卫星、中地球轨道(medium earth orbit,MEO)卫星、地球同步轨道(geostationary earth orbit,GEO)卫星、高椭圆轨道(High Elliptical Orbit,HEO)卫星等。可选地,网络设备还可以为设置在陆地、水域等位置的基站。As an example and not a limitation, in this embodiment of the present application, the network device may have a mobile feature, for example, the network device may be a mobile device. Optionally, the network device may be a satellite or a balloon station. For example, the satellite may be a low earth orbit (LEO) satellite, a medium earth orbit (MEO) satellite, a geostationary earth orbit (GEO) satellite, a High Elliptical Orbit (HEO) ) satellite etc. Optionally, the network device may also be a base station set in a location such as land or water.
在本申请实施例中,网络设备可以为小区提供服务,终端设备通过该小区使用的传输资源(例如,频域资源,或者说,频谱资源)与网络设备进行通信,该小区可以是网络设备(例如基站)对应的小区,小区可以属于宏基站,也可以属于小小区(Small cell)对应的基站,这里的小小区可以包括:城市小区(Metro cell)、微小区(Micro cell)、微微小区(Pico cell)、毫微微小区(Femto cell)等,这些小小区具有覆盖范围小、发射功率低的特点,适用于提供高速率的数据传输服务。In this embodiment of the present application, a network device may provide services for a cell, and a terminal device communicates with the network device through transmission resources (for example, frequency domain resources, or spectrum resources) used by the cell, and the cell may be a network device ( For example, the cell corresponding to the base station), the cell can belong to the macro base station, or it can belong to the base station corresponding to the small cell (Small cell). Pico cell), Femto cell (Femto cell), etc. These small cells have the characteristics of small coverage and low transmission power, and are suitable for providing high-speed data transmission services.
图1示例性地示出了一种通信系统100。该通信系统包括一个网络设备110和两个终端设备120。可选地,该通信系统100可以包括多个网络设备110,并且每个网络设备110的覆盖范围内可以包括其它数量的终端设备120,本申请实施例对此不做限定。FIG. 1 exemplarily shows a communication system 100 . The communication system includes one network device 110 and two terminal devices 120 . Optionally, the communication system 100 may include multiple network devices 110, and the coverage of each network device 110 may include other numbers of terminal devices 120, which are not limited in this embodiment of the present application.
可选地,该通信系统100还可以包括移动性管理实体(Mobility Management Entity,MME)、接入与移动性管理功能(Access and Mobility Management Function,AMF)等其他网络实体,本申请实施例对此不作限定。Optionally, the communication system 100 may further include a mobility management entity (Mobility Management Entity, MME), an access and mobility management function (Access and Mobility Management Function, AMF) and other network entities, to which the embodiments of the present application Not limited.
其中,网络设备又可以包括接入网设备和核心网设备。即无线通信系统还包括用于与接入网设备进行通信的多个核心网。接入网设备可以是长期演进(long-term evolution,LTE)系统、下一代(移动通信系统)(next radio,NR)系统或者授权辅助接入长期演进(authorized auxiliary access long-term evolution,LAA-LTE)系统中的演进型基站(evolutional node B,简称可以为eNB或e-NodeB)宏基站、微基站(也称为“小基站”)、微微基站、接入站点(access point,AP)、传输站点(transmission point,TP)或新一代基站(new generation Node B,gNodeB)等。Wherein, the network equipment may further include access network equipment and core network equipment. That is, the wireless communication system further includes a plurality of core networks for communicating with the access network equipment. The access network equipment may be a long-term evolution (long-term evolution, LTE) system, a next-generation (mobile communication system) (next radio, NR) system, or an authorized auxiliary access long-term evolution (authorized auxiliary access long-term evolution, LAA- The evolved base station (evolutional node B, may be referred to as eNB or e-NodeB for short) in the LTE) system is a macro base station, a micro base station (also called a "small base station"), a pico base station, an access point (AP), Transmission site (transmission point, TP) or new generation base station (new generation Node B, gNodeB), etc.
应理解,本申请实施例中网络/系统中具有通信功能的设备可称为通信设备。以图1示出的通信系统为例,通信设备可包括具有通信功能的网络设备和终端设备,网络设备和终端设备可以为本发明实施例中所述的具体设备,此处不再赘述;通信设备还可包括通信系统中的其他设备,例如网络控制器、移动管理实体等其他网络实体,本申请实施例中对此不做限定。It should be understood that, in the embodiments of the present application, a device having a communication function in the network/system may be referred to as a communication device. Taking the communication system shown in FIG. 1 as an example, the communication device may include a network device and a terminal device with a communication function, and the network device and the terminal device may be specific devices described in the embodiments of the present invention, which will not be repeated here; The device may also include other devices in the communication system, for example, other network entities such as a network controller and a mobility management entity, which are not limited in this embodiment of the present application.
应理解,本文中术语“系统”和“网络”在本文中常被可互换使用。本文中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中字符“/”,一般表示前后关联对象是一种“或”的关系。It should be understood that the terms "system" and "network" are often used interchangeably herein. The term "and/or" in this article is only an association relationship to describe the associated objects, indicating that there can be three kinds of relationships, for example, A and/or B, it can mean that A exists alone, A and B exist at the same time, and A and B exist independently B these three cases. In addition, the character "/" in this document generally indicates that the related objects are an "or" relationship.
应理解,在本申请的实施例中提到的“指示”可以是直接指示,也可以是间接指示,还可以是表示具有关联关系。举例说明,A指示B,可以表示A直接指示B,例如B可以通过A获取;也可以表示A间接指示B,例如A指示C,B可以通过C获取;还可以表示A和B之间具有关联关系。It should be understood that the "instruction" mentioned in the embodiments of the present application may be a direct instruction, an indirect instruction, or an associated relationship. For example, if A indicates B, it can indicate that A directly indicates B, for example, B can be obtained through A; it can also indicate that A indicates B indirectly, such as A indicates C, and B can be obtained through C; it can also indicate that there is an association between A and B relation.
在本申请实施例的描述中,术语“对应”可表示两者之间具有直接对应或间接对应的关系,也可以表示两者之间具有关联关系,也可以是指示与被指示、配置与被配置等关系。In the description of the embodiments of the present application, the term "corresponding" may indicate that there is a direct or indirect corresponding relationship between the two, or may indicate that there is an associated relationship between the two, or indicate and be instructed, configure and be instructed configuration, etc.
为便于理解本申请实施例的技术方案,以下对本申请实施例的相关技术进行说明,以下相关技术作为可选方案与本申请实施例的技术方案可以进行任意结合,其均属于本申请实施例的保护范围。In order to facilitate the understanding of the technical solutions of the embodiments of the present application, the related technologies of the embodiments of the present application are described below. The following related technologies can be arbitrarily combined with the technical solutions of the embodiments of the present application as optional solutions, which all belong to the embodiments of the present application. protected range.
图2是根据本申请一实施例设备注销的方法200的示意性流程图。该方法可选地可以应用于图1所示的系统,但并不仅限于此。该方法包括以下内容的至少部分内容。FIG. 2 is a schematic flowchart of a method 200 for deregistering a device according to an embodiment of the present application. The method can optionally be applied to the system shown in Figure 1, but is not limited thereto. The method includes at least some of the following.
S210:第一设备向云平台发送注销请求,该注销请求中包括验证信息和第二设备的凭证信息,以使得该云平台对该第二设备进行注销。S210: The first device sends a logout request to the cloud platform, where the logout request includes authentication information and credential information of the second device, so that the cloud platform logs out the second device.
示例性地,如果第二设备为在云平台完成注册但是需要注销的设备。云平台上可以保存第二设备的账户资源、会话资源和更新资源等信息。第二设备的账户资源中可以保存第二设备的凭证信息。该凭证信息可以用于在云平台注销设备,也可以称为注销凭证信息。第一设备为能够发起对其他设备注销的设备。通过第一设备向云平台发送注销请求,可以实现在云平台对第二设备进行注销。注销请求中包括的验证信息可以用于验证发起注销请求的第一设备是否被允许访问该云平台,如果验证结果是允许第一设备访问云平台,则该第一设备是合法设备。然后,在云平台可以找到包括注销请求中的第二设备的凭证信息的账户资源、会话资源和更新资源等信息,在云平台将第二设备的账户资源、会话资源和更新资源等信息删除,从而注销该第二设备。此外,如果验证结果是不允许第一设备访问该云平台,该第一设备是不合法设备,则在云平台不允许注销第二设备。Exemplarily, if the second device is a device that has completed registration on the cloud platform but needs to be deregistered. Information such as account resources, session resources, and update resources of the second device may be saved on the cloud platform. Credential information of the second device may be stored in the account resource of the second device. The credential information may be used to log out the device on the cloud platform, and may also be referred to as logout credential information. The first device is a device capable of initiating deregistration of other devices. By sending a logout request to the cloud platform by the first device, logout of the second device on the cloud platform can be implemented. The verification information included in the logout request can be used to verify whether the first device that initiates the logout request is allowed to access the cloud platform. If the verification result is that the first device is allowed to access the cloud platform, the first device is a legitimate device. Then, the account resources, session resources, update resources and other information including the credential information of the second device in the logout request can be found on the cloud platform, and the information such as the account resources, session resources, and update resources of the second device can be deleted on the cloud platform, Thereby, the second device is deregistered. In addition, if the verification result is that the first device is not allowed to access the cloud platform, and the first device is an illegal device, the second device is not allowed to be deregistered on the cloud platform.
可选地,在本申请实施例中,该验证信息包括用户标识和/或设备标识。Optionally, in this embodiment of the present application, the verification information includes a user identification and/or a device identification.
示例性地,如果同一用户的不同的设备具有各自唯一的凭证信息,在云平台可以对用户标识和设备标识进行验证。如果同一用户的多个不同的设备具有相同的凭证信息,在云平台可以只对用户标识进行验证。验证信息中的用户标识可以包括在云平台中注册的用户的标识信息例如,用户名、昵称等。验证信息中的设备标识可以包括在云平台中注册的用户所使用的设备的标识信息例如,用字符串表示的设备唯一标识等。如果需要注销第二设备,验证信息中可以包括第二设备的用户标识和/或设备标识。在云平台可以查找用户标识和/或设备标识对应的账户资源,比较该账户资源中的凭证信息和注销请求中的凭证信息是否相同,如果相同,则允许注销第二设备。Exemplarily, if different devices of the same user have their own unique credential information, the user identity and the device identity can be verified on the cloud platform. If multiple different devices of the same user have the same credential information, the cloud platform can only verify the user identity. The user identification in the verification information may include identification information of the user registered in the cloud platform, such as user name, nickname, and the like. The device identification in the verification information may include identification information of the device used by the user registered in the cloud platform, for example, the unique identification of the device represented by a character string, and the like. If the second device needs to be logged out, the verification information may include the user identification and/or the device identification of the second device. The account resource corresponding to the user ID and/or device ID can be searched on the cloud platform, and the credential information in the account resource is compared with the credential information in the logout request. If they are the same, the second device is allowed to be logged out.
可选地,在本申请实施例中,该验证信息还包括该第一设备的访问令牌,该访问令牌用于验证该第一设备是否被允许访问该云平台。Optionally, in this embodiment of the present application, the verification information further includes an access token of the first device, where the access token is used to verify whether the first device is allowed to access the cloud platform.
验证信息中可以包括发起注销请求的设备的访问令牌。示例性地,设备的访问令牌可以是在设备向云平台注册过程中,云平台为设备分发的。云平台对设备的访问令牌进行验证,可以判定该设备是否被允许访问云平台。The authentication information may include the access token of the device that initiated the logout request. Exemplarily, the access token of the device may be distributed by the cloud platform for the device during the process of registering the device with the cloud platform. The cloud platform verifies the access token of the device to determine whether the device is allowed to access the cloud platform.
可选地,在本申请实施例中,该凭证信息中包括凭证内容和凭证类型。例如,凭证内容可以包括用户自己设置的密码的具体数字或字符等信息,凭证类型可以包括密码类型。凭证类型也可以为其他类型,具体可以根据实际应用场景的需要进行设置。Optionally, in this embodiment of the present application, the credential information includes credential content and credential type. For example, the credential content may include information such as specific numbers or characters of the password set by the user, and the credential type may include the password type. The credential type can also be other types, which can be set according to the needs of the actual application scenario.
可选地,在本申请实施例中,所述注销请求中还包括注销类型,在该注销类型为自己注销的情况下,该验证信息包括该第一设备的用户标识、设备标识和访问令牌的至少之一。Optionally, in this embodiment of the present application, the logout request further includes a logout type, and when the logout type is self-logout, the verification information includes the user ID, device ID, and access token of the first device. at least one of.
例如,在自己注销的情况下,第一设备向云平台发送的注销请求中包括注销类型为自己注销,还包括第一设备的用户标识、设备标识和访问令牌的至少之一。云平台收到该注销请求后,可以删除第一设备的账户资源、会话资源和更新资源等信息,以注销该第一设备。For example, in the case of self-logout, the logout request sent by the first device to the cloud platform includes that the logout type is self-logout, and also includes at least one of the user ID, device ID, and access token of the first device. After receiving the logout request, the cloud platform can delete information such as account resources, session resources, and update resources of the first device to logout the first device.
可选地,在本申请实施例中,在该注销类型为第三方注销的情况下,该验证信息包括该第二设备的用户标识、该第二设备的设备标识和该第一设备的访问令牌的至少之一。Optionally, in this embodiment of the present application, when the logout type is a third-party logout, the verification information includes the user ID of the second device, the device ID of the second device, and the access token of the first device. at least one of the cards.
例如,在第三方注销的情况下,第一设备向云平台发送的注销请求中包括注销类型为第三方注销,还包括第二设备的用户标识、第二设备的设备标识和第一设备的访问令牌的至少之一。云平台收到该注销请求后,可以先验证第一设备的访问令牌确认该设备是否被允许访问云平台。如果允许,可以根据第二设备的用户标识和/或第二设备的设备标识查找第二设备的账户资源、会话资源和更新资源等信息。如果第二设备的账户资源中的凭证内容与注销请求中的凭证内容一致,则在云平台删除第二设备的账户资源、会话资源和更新资源等信息,以注销该第二设备。For example, in the case of a third-party logout, the logout request sent by the first device to the cloud platform includes the logout type as third-party logout, and also includes the user ID of the second device, the device ID of the second device, and the access of the first device. at least one of the tokens. After the cloud platform receives the logout request, it can first verify the access token of the first device to confirm whether the device is allowed to access the cloud platform. If permitted, information such as account resources, session resources, and update resources of the second device may be searched according to the user identifier of the second device and/or the device identifier of the second device. If the credential content in the account resource of the second device is consistent with the credential content in the logout request, delete the account resource, session resource, update resource and other information of the second device on the cloud platform to logout the second device.
可选地,在本申请实施例中,该第二设备的凭证信息是该第一设备生成的。Optionally, in this embodiment of the present application, the credential information of the second device is generated by the first device.
可选地,在本申请实施例中,该第二设备的凭证信息保存在该第一设备上。Optionally, in this embodiment of the present application, the credential information of the second device is stored on the first device.
示例性地,第一设备可以生成并保存第二设备的凭证信息,在需要注销第二设备的情况下,在第一设备的本地获取第二设备的凭证信息,发起注销请求。当然,第一设备也可以不保存第二设备的凭证信息,在需要发起注销请求时,再获取第二设备的凭证信息。例如,第一设备先获取用户输入的第二设备的注销密码等凭证信息,再发起注销请求。再如,第一设备从其他设备获取第二设备的凭证信息,再发起注销请求。Exemplarily, the first device may generate and save credential information of the second device, and in the case of needing to log out of the second device, obtain the credential information of the second device locally on the first device, and initiate a logout request. Of course, the first device may not save the credential information of the second device, and obtain the credential information of the second device when a logout request needs to be initiated. For example, the first device first obtains credential information such as the logout password of the second device input by the user, and then initiates a logout request. For another example, the first device obtains the credential information of the second device from other devices, and then initiates a logout request.
可选地,在本申请实施例中,该方法还包括:Optionally, in this embodiment of the present application, the method further includes:
该第一设备向该云平台发送凭证创建请求,该凭证创建请求中包括该第二设备的凭证信息。The first device sends a credential creation request to the cloud platform, where the credential creation request includes credential information of the second device.
示例性地,第一设备生成第二设备的凭证信息后,在设备注册阶段可以向云平台发送凭证创建请求,以将第二设备的凭证信息保存到云平台上。这种情况下,第一设备可以保存第二设备的凭证信息,也可以不保存第二设备的凭证信息。Exemplarily, after generating the credential information of the second device, the first device may send a credential creation request to the cloud platform in the device registration stage, so as to save the credential information of the second device on the cloud platform. In this case, the first device may or may not store the credential information of the second device.
在云平台可以生成注销资源的实例,该注销资源可以包括用户标识、凭证信息等内容,还可以包括设备标识。云平台收到凭证创建请求后,可以先直接将第二设备的凭证信息添加到注销资源中;也可以先判断是否已经保存了该第二设备的凭证信息,如果有,则可以不用重复添加。具体地,该凭证创建请求中也可以包括用户标识和/或设备标识,可以判断用户标识和/或设备标识是否已经有对应的凭证信息,如果有,则可以不用在该注销资源中重复添加第二设备的凭证信息。An instance of a logout resource may be generated on the cloud platform, and the logout resource may include user identification, credential information, etc., and may also include a device identification. After the cloud platform receives the credential creation request, it can directly add the credential information of the second device to the logout resource; it can also judge whether the credential information of the second device has been saved, and if so, it is not necessary to add it repeatedly. Specifically, the credential creation request may also include a user ID and/or a device ID, and it can be determined whether the user ID and/or device ID already have corresponding credential information. Credential information of the second device.
可选地,在本申请实施例中,该方法还包括:Optionally, in this embodiment of the present application, the method further includes:
该第一设备向该第二设备发送凭证信息,以将该凭证信息配置在该第二设备的云平台注册配置(Coap Cloud Configuration,CCC)资源中,该第二设备的CCC资源用于完成该第二设备在该云平台的注册。其中,CCC资源可以用于配置新设备注册云平台的信息,也可以称为基于Coap(Constrained Application Protocol,受限应用协议)的云平台配置资源。The first device sends credential information to the second device to configure the credential information in the cloud platform registration configuration (Coap Cloud Configuration, CCC) resource of the second device, and the CCC resource of the second device is used to complete the The registration of the second device in the cloud platform. Among them, the CCC resource can be used to configure the information of the new device registration cloud platform, and can also be called a cloud platform configuration resource based on Coap (Constrained Application Protocol, Constrained Application Protocol).
示例性地,如果第一设备生成第二设备的凭证信息,第一设备可以配置第二设备的CCC资源,将第二设备的凭证信息配置到该第二设备的CCC资源中。然后,第二设备可以基于该CCC资源向云平台发起注册。Exemplarily, if the first device generates credential information of the second device, the first device may configure the CCC resource of the second device, and configure the credential information of the second device into the CCC resource of the second device. Then, the second device may initiate registration with the cloud platform based on the CCC resource.
可选地,在本申请实施例中,该方法还包括:Optionally, in this embodiment of the present application, the method further includes:
该第一设备从第三设备获取该第二设备的凭证信息,该第二设备的凭证信息是该第三设备生成的。The first device acquires the credential information of the second device from the third device, and the credential information of the second device is generated by the third device.
示例性地,如果第三设备生成第二设备的凭证信息,第三设备可以配置第二设备的CCC资源,将第二设备的凭证信息配置到该第二设备的CCC资源中。然后,第二设备可以基于该CCC资源向云平台发起注册。如果第三设备保存有第二设备的凭证信息。第一设备可以从第三设备获取第二设备的凭证信息,在发起用于对第二设备进行注销的注销请求。Exemplarily, if the third device generates credential information of the second device, the third device may configure the CCC resource of the second device, and configure the credential information of the second device into the CCC resource of the second device. Then, the second device may initiate registration with the cloud platform based on the CCC resource. If the third device saves the credential information of the second device. The first device may acquire credential information of the second device from the third device, and initiates a logout request for logout of the second device.
可选地,能够生成第二设备的凭证信息的设备上可以安装OBT,也可以称为OBT设备。OBT设备可以引导第二设备的凭证信息的生成过程。Optionally, OBT may be installed on a device capable of generating credential information of the second device, which may also be referred to as an OBT device. The OBT device may guide the generation process of the credential information of the second device.
可选地,在本申请实施例中,该方法还包括:Optionally, in this embodiment of the present application, the method further includes:
该第一设备将该第二设备的凭证信息发送至第四设备保存。The first device sends the credential information of the second device to the fourth device for storage.
示例性地,第四设备可以不是OBT设备,而是与第一设备建立过通信连接的设备。如果第一设备将该第二设备的凭证信息发送至第四设备保存,并且第四设备也是在该云平台注册的合法设备,第四设备也可以发起用于对第二设备进行注销的注销请求。Exemplarily, the fourth device may not be an OBT device, but a device that has established a communication connection with the first device. If the first device sends the credential information of the second device to the fourth device for storage, and the fourth device is also a legal device registered on the cloud platform, the fourth device may also initiate a logout request for logout of the second device .
可选地,在本申请实施例中,多个该第二设备的凭证信息相同。Optionally, in this embodiment of the present application, credential information of multiple second devices is the same.
示例性地,一个用户的多个设备的凭证信息可以相同。这种情况下,在云平台可以保存用户标识与凭证信息的对应关系,也可以保存用户标识、设备标识与凭证信息的对应关系。注销请求中可以包括用户标识、设备标识和凭证信息。Exemplarily, credential information of multiple devices of a user may be the same. In this case, the cloud platform may store the correspondence between the user ID and the credential information, and may also store the correspondence between the user ID, the device ID and the credential information. The logout request may include user identification, device identification and credential information.
可选地,在本申请实施例中,每个该第二设备的凭证信息不同。Optionally, in this embodiment of the present application, the credential information of each of the second devices is different.
示例性地,一个用户的多个设备分别具有各自的凭证信息。这种情况下,在云平台可以保存用户标 识、设备标识与凭证信息的对应关系。注销请求中可以包括用户标识、设备标识和凭证信息。Exemplarily, multiple devices of a user respectively have their own credential information. In this case, the corresponding relationship between user ID, device ID and credential information can be saved on the cloud platform. The logout request may include user identification, device identification and credential information.
本申请实施例,通过第一设备向云平台发起包括验证信息和第二设备的凭证信息的注销请求,可以在云平台对第二设备进行注销,无需设备自己主动发起注销,从而提高接入云平台的设备的安全。例如,在目标设备丢失或被其他人占有的情况下,可以用第三发设备发起对目标设备的注销,保证目标设备在云平台上的数据安全。In this embodiment of the present application, the first device initiates a logout request including verification information and credential information of the second device to the cloud platform, and the second device can be logged out on the cloud platform without the device itself actively initiating logout, thereby improving access to the cloud. Platform device security. For example, in the case that the target device is lost or occupied by others, the third-party device can be used to initiate the logout of the target device to ensure the data security of the target device on the cloud platform.
图3是根据本申请一实施例设备注销的方法300的示意性流程图。该方法可选地可以应用于图1所示的系统,但并不仅限于此。该方法包括以下内容的至少部分内容。FIG. 3 is a schematic flowchart of a method 300 for deregistering a device according to an embodiment of the present application. The method can optionally be applied to the system shown in Figure 1, but is not limited thereto. The method includes at least some of the following.
S310:云平台接收来自第一设备的注销请求,该注销请求中包括验证信息和第二设备的凭证信息;S310: The cloud platform receives a logout request from the first device, where the logout request includes verification information and credential information of the second device;
S320:该云平台根据该验证信息和该第二设备的凭证信息,对该第二设备进行注销。S320: The cloud platform deregisters the second device according to the verification information and the credential information of the second device.
示例性地,验证信息可以用于验证发起注销请求的第一设备是否被允许访问该云平台,如果验证结果是允许第一设备访问云平台,则该第一设备是合法设备。然后,在云平台可以找到包括注销请求中的第二设备的凭证信息的账户资源、会话资源和更新资源等信息,在云平台将第二设备的账户资源、会话资源和更新资源等信息删除,从而注销该第二设备。此外,如果验证结果是不允许第一设备访问该云平台,该第一设备是不合法设备,则在云平台不允许注销第二设备。Exemplarily, the verification information may be used to verify whether the first device that initiates the logout request is allowed to access the cloud platform. If the verification result is that the first device is allowed to access the cloud platform, the first device is a legitimate device. Then, the account resources, session resources, update resources and other information including the credential information of the second device in the logout request can be found on the cloud platform, and the information such as the account resources, session resources, and update resources of the second device can be deleted on the cloud platform, Thereby, the second device is deregistered. In addition, if the verification result is that the first device is not allowed to access the cloud platform, and the first device is an illegal device, the second device is not allowed to be deregistered on the cloud platform.
可选地,在本申请实施例中,该验证信息包括用户标识和/或设备标识。Optionally, in this embodiment of the present application, the verification information includes a user identification and/or a device identification.
验证信息中的用户标识可以包括在云平台中注册的用户的标识信息。验证信息中的设备标识可以包括在云平台中注册的用户所使用的设备的标识信息。如果需要注销第二设备,验证信息中可以包括第二设备的用户标识和/或设备标识。在云平台可以查找用户标识和/或设备标识对应的账户资源,比较该账户资源中的凭证信息和注销请求中的凭证信息是否相同,如果相同,则允许注销第二设备。The user identification in the verification information may include identification information of the user registered in the cloud platform. The device identification in the verification information may include identification information of the device used by the user registered in the cloud platform. If the second device needs to be logged out, the verification information may include the user identification and/or the device identification of the second device. The account resource corresponding to the user ID and/or device ID can be searched on the cloud platform, and the credential information in the account resource is compared with the credential information in the logout request. If they are the same, the second device is allowed to be logged out.
可选地,在本申请实施例中,该验证信息还包括该第一设备的访问令牌,该方法还包括:Optionally, in this embodiment of the present application, the verification information further includes an access token of the first device, and the method further includes:
该云平台对该第一设备的访问令牌进行验证,以确定该第一设备是否被允许访问该云平台。The cloud platform verifies the access token of the first device to determine whether the first device is allowed to access the cloud platform.
可选地,在本申请实施例中,该凭证信息中包括凭证内容和凭证类型。Optionally, in this embodiment of the present application, the credential information includes credential content and credential type.
可选地,在本申请实施例中,该方法还包括:Optionally, in this embodiment of the present application, the method further includes:
在该注销类型为自己注销的情况下,该云平台验证该验证信息中是否包括该第一设备的用户标识、设备标识和访问令牌的至少之一。In the case that the logout type is self logout, the cloud platform verifies whether the verification information includes at least one of the user identification, device identification and access token of the first device.
可选地,在本申请实施例中,该方法还包括:Optionally, in this embodiment of the present application, the method further includes:
在该注销类型为第三方注销的情况下,该云平台验证该验证信息中是否包括该第二设备的用户标识、该第二设备的设备标识和该第一设备的访问令牌,并验证该验证请求中的凭证信息与该云平台保存的账户资源中该第二设备的用户标识和/或设备标识对应的凭证内容是否一致。In the case that the logout type is third-party logout, the cloud platform verifies whether the verification information includes the user ID of the second device, the device ID of the second device, and the access token of the first device, and verifies the Verify whether the credential information in the request is consistent with the credential content corresponding to the user identifier and/or the device identifier of the second device in the account resource stored in the cloud platform.
可选地,在本申请实施例中,该方法还包括:Optionally, in this embodiment of the present application, the method further includes:
该云平台接收来自该第一设备的凭证创建请求,该凭证创建请求中包括该第二设备的凭证信息,该第二设备的凭证信息是在该第一设备生成的。The cloud platform receives a credential creation request from the first device, where the credential creation request includes credential information of the second device, and the credential information of the second device is generated on the first device.
可选地,在本申请实施例中,该方法还包括:Optionally, in this embodiment of the present application, the method further includes:
该云平台接收来自第三设备的凭证创建请求,该凭证创建请求中包括该第二设备的凭证信息,该第二设备的凭证信息是在该第三设备生成的。The cloud platform receives a credential creation request from a third device, where the credential creation request includes credential information of the second device, and the credential information of the second device is generated on the third device.
可选地,在本申请实施例中,该方法还包括:Optionally, in this embodiment of the present application, the method further includes:
该云平台利用该第二设备的CCC资源完成该第二设备的注册,该第二设备的CCC资源中配置有该第二设备的凭证信息。The cloud platform uses the CCC resource of the second device to complete the registration of the second device, and the CCC resource of the second device is configured with credential information of the second device.
可选地,在本申请实施例中,多个该第二设备的凭证信息相同。Optionally, in this embodiment of the present application, credential information of multiple second devices is the same.
可选地,在本申请实施例中,每个该第二设备的凭证信息不同。Optionally, in this embodiment of the present application, the credential information of each of the second devices is different.
可选地,在本申请实施例中,对该第二设备进行注销的方式包括删除该第二设备的以下资源的至少之一:Optionally, in this embodiment of the present application, the manner of deregistering the second device includes deleting at least one of the following resources of the second device:
该第二设备的账户资源,该账户资源中包括凭证信息;Account resources of the second device, where the account resources include credential information;
该第二设备的会话资源;session resources of the second device;
该第二设备的刷新资源。refresh resources of the second device.
本实施例的云平台执行方法300中与上述方法200中相同的描述具有相同的含义,具体可以参见上述方法200的中关于云平台的相关描述,为了简洁,在此不再赘述。The same descriptions in the cloud platform execution method 300 in this embodiment have the same meanings as those in the foregoing method 200 . For details, please refer to the relevant description about the cloud platform in the foregoing method 200 , which will not be repeated here for brevity.
图4是根据本申请一实施例设备注册的方法400的示意性流程图。该方法可选地可以应用于图1所示的系统,但并不仅限于此。该方法包括以下内容的至少部分内容。FIG. 4 is a schematic flowchart of a method 400 for device registration according to an embodiment of the present application. The method can optionally be applied to the system shown in Figure 1, but is not limited thereto. The method includes at least some of the following.
S410:该第一设备向该第二设备发送凭证信息,以将该凭证信息配置在该第二设备的CCC资源中,该第二设备的CCC资源用于完成该第二设备在云平台的注册。S410: The first device sends credential information to the second device to configure the credential information in the CCC resource of the second device, and the CCC resource of the second device is used to complete the registration of the second device in the cloud platform .
可选地,在本申请实施例中,该方法还包括:Optionally, in this embodiment of the present application, the method further includes:
该第一设备生成第二设备的凭证信息。The first device generates credential information for the second device.
可选地,在本申请实施例中,该方法还包括:Optionally, in this embodiment of the present application, the method further includes:
该第一设备向该云平台发送凭证创建请求,该凭证创建请求中包括该第二设备的凭证信息。The first device sends a credential creation request to the cloud platform, where the credential creation request includes credential information of the second device.
可选地,在本申请实施例中,该方法还包括:Optionally, in this embodiment of the present application, the method further includes:
该第一设备保存该第二设备的凭证信息。The first device stores credential information of the second device.
可选地,在本申请实施例中,该方法还包括:Optionally, in this embodiment of the present application, the method further includes:
该第一设备将该第二设备的凭证信息发送至第四设备保存。The first device sends the credential information of the second device to the fourth device for storage.
可选地,在本申请实施例中,多个该第二设备的凭证信息相同。Optionally, in this embodiment of the present application, credential information of multiple second devices is the same.
可选地,在本申请实施例中,每个该第二设备的凭证信息不同。Optionally, in this embodiment of the present application, the credential information of each of the second devices is different.
本实施例的第一设备执行方法400中与上述方法200、300中相同的描述具有相同的含义,具体可以参见上述方法200、300的中关于第一设备的相关描述,为了简洁,在此不再赘述。The descriptions in the method 400 for executing the first device in this embodiment have the same meaning as those in the foregoing methods 200 and 300. For details, please refer to the relevant descriptions about the first device in the foregoing methods 200 and 300. Repeat.
在本实施例中,第一设备在设备注册的过程中,可以将第二设备的凭证信息保存到云平台或者对等设备例如上述的第四设备。这样,在后续设备注销的过程中,第一设备可以发起对第二设备的注销流程,参见方法200。其他设备,例如第四设备也可以发起对第二设备的注销流程,第四设备向云平台发送包括第二设备的凭证信息的注销请求,完成对第二设备的注销。In this embodiment, in the process of device registration, the first device may save the credential information of the second device to the cloud platform or a peer device such as the above-mentioned fourth device. In this way, in the subsequent process of device logout, the first device may initiate a logout process for the second device, see method 200 . Other devices, such as the fourth device, may also initiate a logout process for the second device, and the fourth device sends a logout request including credential information of the second device to the cloud platform to complete the logout of the second device.
图5是根据本申请一实施例设备注册的方法500的示意性流程图。该方法可选地可以应用于图1所示的系统,但并不仅限于此。该方法包括以下内容的至少部分内容。FIG. 5 is a schematic flowchart of a method 500 for device registration according to an embodiment of the present application. The method can optionally be applied to the system shown in Figure 1, but is not limited thereto. The method includes at least some of the following.
S510:第二设备接收凭证信息;S510: The second device receives the credential information;
S520:该第二设备将该凭证信息配置在该第二设备的CCC资源中;S520: the second device configures the credential information in the CCC resource of the second device;
S530:该第二设备基于该CCC资源向云平台进行注册。S530: The second device registers with the cloud platform based on the CCC resource.
示例性地,第二设备可以从上述实施例中的生成该第二设备的凭证信息的设备接收该凭证信息。例如,第二设备从第一设备或第三设备接收第二设备的凭证信息。然后,第二设备将收到的凭证信息配置自己的CCC资源中,在第二设备向云平台注册的过程中,可以基于该CCC资源向云平台进行注册。Exemplarily, the second device may receive the credential information from the device that generates the credential information of the second device in the above embodiment. For example, the second device receives credential information for the second device from the first device or the third device. Then, the second device configures the received credential information in its own CCC resource, and in the process of registering with the cloud platform, the second device may register with the cloud platform based on the CCC resource.
本实施例的第二设备执行方法500中与上述方法200、300、400中相同的描述具有相同的含义,具体可以参见上述方法200、300、400的中关于第二设备的相关描述,为了简洁,在此不再赘述。The descriptions in the second device execution method 500 in this embodiment have the same meaning as those in the foregoing methods 200 , 300 and 400 . For details, please refer to the relevant descriptions about the second device in the foregoing methods 200 , 300 and 400 . For the sake of brevity , and will not be repeated here.
以下为具体应用场景的示例:The following are examples of specific application scenarios:
如图6所示,为设备注册流程,具体可以包括:As shown in Figure 6, the device registration process may specifically include:
1、配置器(Mediator)从授权服务器(Authorisation Server)或授权提供者(Authorisation Provider)获取云平台(cloud)例如OCF(Open Cloud Fabric,开放云网络架构)云平台用户的访问令牌(Access token)。创建OCF云平台(cloud)的用户账户。1. The configurator (Mediator) obtains the access token of the cloud platform (cloud) such as OCF (Open Cloud Fabric, Open Cloud Network Architecture) cloud platform user from the Authorisation Server (Authorisation Server) or the Authorisation Provider (Authorisation Provider) ). Create a user account for the OCF cloud platform (cloud).
2、配置器(Mediator)向OCF云平台发起配置器注册(Mediator Registration)。2. The configurator (Mediator) initiates the configurator registration (Mediator Registration) to the OCF cloud platform.
3、配置器(Mediator)向OCF资源服务器(Resource Server)发送云配置信息(Cloud Configuration), 包括云IP(Cloud IP)、访问令牌(Access token)等。配置器(Mediator)在设备上提供CCC资源“oic.r.coapcloudconf”,其中包括访问令牌、OCF云平台的URL、OCF云平台的标识(uuid)和可选的授权提供者名称等。3. The configurator (Mediator) sends cloud configuration information (Cloud Configuration) to the OCF resource server (Resource Server), including cloud IP (Cloud IP), access token (Access token), etc. The configurator (Mediator) provides the CCC resource "oic.r.coapcloudconf" on the device, which includes the access token, the URL of the OCF cloud platform, the identification (uuid) of the OCF cloud platform, and an optional authorization provider name, etc.
4、OCF资源服务器建立到OCF云平台的TLS会话(Session)。4. The OCF resource server establishes a TLS session (Session) to the OCF cloud platform.
5、OCF资源服务器向OCF云平台发送访问令牌和设备标识(Device ID),以进行设备注册(Device Registration)和资源发布(Resource Publish)。5. The OCF resource server sends an access token and a device ID (Device ID) to the OCF cloud platform for device registration (Device Registration) and resource publishing (Resource Publish).
6、在OCF云平台中验证令牌(Validate token)。例如,云平台中可以包括令牌、设备标识、用户标识(User ID)等的对应关系表,利用该表可以OCF云验证注册请求,参见表1。6. Validate the token in the OCF cloud platform. For example, the cloud platform may include a correspondence table of tokens, device IDs, and user IDs (User ID), etc., and the registration request can be verified by OCF cloud by using this table, see Table 1.
表1Table 1
Token(令牌)Token DIDDID UIDUID
A0001A0001 0xA71CE0xA71CE U0001U0001
……... ……... ……...
7、云平台向授权服务器(Authorisation Server)分享用户的认证信息(Authentication),包括访问令牌、用户标识等。7. The cloud platform shares the user's authentication information (Authentication) with the authorization server (Authorisation Server), including access tokens, user IDs, etc.
与云注册流程相对应的是云注销流程,即在云平台上注销一个设备后,该设备不可以再连接云平台。具体地,设备可以向云平台发送一个注销(deregistration)请求消息,在该消息中携带访问令牌(AccessToken)、UID(User ID,用户标识)或DID(Device ID,设备标识);或者仅携带访问令牌。云平台(Cloud)收到上述信息之后,会删除对应的注册记录,以及会删除云平台(Cloud)的RD(Resource Directory,可发现资源目录)中对应的该设备发布的内容(如果发布过)。Corresponding to the cloud registration process is the cloud logout process, that is, after logging out a device on the cloud platform, the device can no longer connect to the cloud platform. Specifically, the device can send a deregistration request message to the cloud platform, and the message can carry an access token (AccessToken), UID (User ID, user ID) or DID (Device ID, device ID); or only carry access token. After the cloud platform (Cloud) receives the above information, it will delete the corresponding registration record and delete the corresponding content published by the device in the RD (Resource Directory) of the cloud platform (Cloud) (if it has been published) .
下面介绍云平台相关的资源信息:The following describes the resource information related to the cloud platform:
Coapcloudconf资源(简称CCC资源或云平台注册配置资源,是配置新设备注册云平台的信息):该资源用于OBT(Onboarding Tool,引导工具)设备在新设备上配置该资源。然后新设备根据OBT的配置信息到云平台注册,OBT的配置信息可以包括访问令牌、SID(Cloud ID,云平台标识例如,云平台UUID)、SURL(Cloud URL,云平台URL)等信息。Coapcloudconf resource (referred to as CCC resource or cloud platform registration configuration resource, which is the information for configuring new device registration cloud platform): This resource is used for OBT (Onboarding Tool) devices to configure this resource on new devices. Then the new device is registered with the cloud platform according to the configuration information of OBT. The configuration information of OBT can include information such as access token, SID (Cloud ID, cloud platform identification such as cloud platform UUID), SURL (Cloud URL, cloud platform URL).
账户(Account)资源:设备在云平台注册信息的资源,其中包括UID、DID和访问令牌等信息的一个或多个。Account resource: The resource of the device's registration information on the cloud platform, including one or more of UID, DID, and access token.
在本申请实施例中,可以利用设备中安装的OBT来实现设备注销,主要包括以下方式:In this embodiment of the present application, the OBT installed in the device can be used to implement device deregistration, which mainly includes the following methods:
1.OBT生成第三方注销凭证,并且可能将该第三方凭证保存在云平台的资源例如注销(deregister)资源中。1. The OBT generates a third-party deregistration credential, and may save the third-party credential in a cloud platform resource such as a deregister resource.
2.OBT将第三方注销凭证配置到云平台上新设备对应的账户(account)资源;在账户资源中增加凭证(credential)属性。;2. OBT configures the third-party logout credential to the account resource corresponding to the new device on the cloud platform; adds the credential attribute to the account resource. ;
3.OBT将第三方注销凭证配置到对等设备(peer Device)(或第三方设备)上。3. OBT configures the third-party logout credential to the peer Device (or third-party device).
4.对等设备或第三方设备发起第三方注销流程。4. The peer device or third-party device initiates the third-party logout process.
因此,本申请实施例主要是借助第三方设备来完成目标设备(Target Device)的注销。Therefore, the embodiment of the present application mainly uses a third-party device to complete the logout of the target device (Target Device).
方案示例1:Scenario Example 1:
如图7所示,在示例1中,在云平台(Cloud,也可以简称云)的设备注册和注销阶段,具体可以包括:As shown in FIG. 7 , in Example 1, in the device registration and deregistration stage of the cloud platform (Cloud, also referred to as the cloud), it may specifically include:
OBT云注册阶段:OBT cloud registration stage:
S11、在OBT注册到云平台的过程中,可以向云平台发送第三方注销凭证请求,在云平台上生成注销(deregister)资源实例,例如oic/sec/deregister资源。该注销资源可以包括下列属性信息:UID(用 户ID)、注销凭证信息等。注销凭证信息可以包括credential(凭证内容);还可以包含credentialType(凭证类型)。其中,凭证类型可以包含密码(password)或者其他的方式。OBT可以自制定credential(凭证内容),并通过更新(Update)消息发送到云平台,指示更新/oic/sec/deregister{UID,credentialType,credential}。例如,更新消息可以为CoAP(Constrained Application Protocol,受限应用协议)或HTTP(HyperText Transfer Protocol,超文本传输协议)中的Post消息。该阶段完成OBT设备在云上的注册,并在注册过程中生成可以发起第三方注销流程的凭证信息,包括凭证内容和凭证类型(密码)等,在此过程中,凭证内容和/或凭证类型可以不在OBT设备上保存。S11. During the process of registering the OBT to the cloud platform, a third-party deregistration credential request may be sent to the cloud platform, and a deregister resource instance, such as oic/sec/deregister resource, is generated on the cloud platform. The logout resource may include the following attribute information: UID (User ID), logout credential information, and the like. The logout credential information may include credential (credential content); and may also include credentialType (credential type). Wherein, the credential type may include password (password) or other methods. OBT can customize the credential (credential content) and send it to the cloud platform through an Update (Update) message, instructing to update /oic/sec/deregister{UID,credentialType,credential}. For example, the update message may be a Post message in CoAP (Constrained Application Protocol, Constrained Application Protocol) or HTTP (HyperText Transfer Protocol, Hypertext Transfer Protocol). This stage completes the registration of the OBT device on the cloud, and generates credential information that can initiate a third-party logout process during the registration process, including credential content and credential type (password), etc. During this process, the credential content and/or credential type Can not save on OBT device.
S12、云平台进行鉴权并将UID和凭证类型、凭证内容保存到注销资源和账户资源中。在云平台收到上述属性信息之后,可以先确认该UID是否已经登记了凭证内容和/或凭证类型。然后将上述属性信息UID、凭证内容等添加到注销资源中。如果此过程在OBT注册到云平台过程中完成,可以在OBT设备对应的账户(account)资源,例如/oic/sec/account资源中,添加凭证(credential)参数。例如,在account资源中增加一个参数credential,在该credential参数中保存用于第三方注销的凭证信息。然后,云平台可以向第三方设备返回第三方注销凭证创建应答,以通知凭证创建结果。S12, the cloud platform performs authentication and saves the UID, the credential type, and the credential content into the logout resource and the account resource. After the cloud platform receives the above attribute information, it can first confirm whether the UID has registered the content of the certificate and/or the type of the certificate. Then add the above attribute information UID, credential content, etc. to the logout resource. If this process is completed during the registration of OBT to the cloud platform, you can add a credential parameter to the account resource corresponding to the OBT device, such as the /oic/sec/account resource. For example, add a parameter credential to the account resource, and save the credential information for third-party logout in the credential parameter. Then, the cloud platform can return a third-party logout credential creation response to the third-party device to notify the credential creation result.
如果为同一用户的所有设备生成相同的凭证内容(credential),则按照上述流程处理。如果为每个设备生成不同的凭证内容(credential)(例如随机生成不同的密码),则可以在注销(deregister)资源中增加一个设备标识DID的参数。If the same credential is generated for all devices of the same user, the above process is followed. If a different credential is generated for each device (for example, a different password is randomly generated), a device identification DID parameter can be added to the deregister resource.
S13、生成凭证之后,OBT配置新设备时,会在该设备的CCC资源中配置凭证内容,然后新设备将该凭证内容登记到注销资源中;新设备使用CCC资源配置到该新设备在云平台上的账户资源中。S13. After the certificate is generated, when OBT configures a new device, it will configure the content of the certificate in the CCC resource of the device, and then the new device registers the content of the certificate into the logout resource; the new device uses the CCC resource to configure the new device on the cloud platform in the account resources on .
第三方注销阶段:Third-party cancellation stage:
S14、当第三方设备(可能具有OBT,也可能没有OBT)获取待注销设备(上述的新设备注册成功后,在注销阶段称为待注销设备)的DID。第三方设备可以采用多种方式获取待注销设备例如已丢失设备的DID。例如待注销设备的DID已经保存在第三方设备本地。再如,通过用户从其他设备读取,并在第三方设备输入。S14. When the third-party device (which may or may not have OBT) acquires the DID of the device to be deregistered (after the above-mentioned new device is successfully registered, it is called the device to be deregistered in the deregistration stage). The third-party device can obtain the DID of the device to be deregistered, such as the lost device, in various ways. For example, the DID of the device to be deregistered has been saved locally in the third-party device. Another example is that the user reads it from other devices and inputs it on a third-party device.
S15、第三方设备发起注销请求。注销请求中携带UID和/或DID,访问令牌(AccessToken)、注销凭证(credential)信息等。S15. The third-party device initiates a logout request. The logout request carries UID and/or DID, access token (AccessToken), logout credential (credential) information, and the like.
例如,发起的第三方注销请求为删除(Delete)消息,指示删除/oic/sec/account{UserID,DeviceID,accessToken,Credential,DisregisterType}。其中,UserID为用户标识,DeviceID为待注销设备的标识,accessToken为发起注销方的访问令牌,Credential为凭证内容,DisregisterType为注销类型。For example, the initiated third-party logout request is a delete (Delete) message, indicating deletion of /oic/sec/account{UserID, DeviceID, accessToken, Credential, DisregisterType}. Among them, UserID is the user ID, DeviceID is the ID of the device to be deregistered, accessToken is the access token of the party initiating the deregistration, Credential is the content of the credential, and DisregisterType is the deregistration type.
在本示例中,还可以增加注销类型(DeregisterType)参数。例如,在第三方Device注销请求中携带DeregisterType参数,该参数可以放置在请求的query部分。DeregisterType可以是包含两个值的枚举类型:self-dereg(自己注销,或称为自注销)和3rd-dereg(第三方注销,或称为他注销)。理论上,可以获取凭证内容的设备例如客户端(client)都可以发起注销请求;在请求中增加DisregisterType参数。如果该参数的值是“self-dereg”,则设备标识DID应该是注销发起方的DID,访问令牌应该是发起注销方的访问令牌。如果该参数的值是“3rd-dereg”,则DID是待注销设备的DID,访问令牌是发起注销方的访问令牌。In this example, you can also increase the deregistration type (DeregisterType) parameter. For example, the DeregisterType parameter is carried in the third-party Device logout request, and this parameter can be placed in the query part of the request. DeregisterType can be an enumeration type containing two values: self-dereg (self-deregistration, or self-deregistration) and 3rd-dereg (third-party deregistration, or his-deregistration). In theory, a device that can obtain the content of the credential, such as a client (client), can initiate a logout request; add the DisregisterType parameter to the request. If the value of this parameter is "self-dereg", the device identification DID shall be the DID of the logout initiator, and the access token shall be the access token of the logout initiator. If the value of this parameter is "3rd-dereg", the DID is the DID of the device to be deregistered, and the access token is the access token of the party that initiated the deregistration.
S16、如果注销类型是“self-dereg”则按照一般的注销流程处理,完成设备自己的注销。S16. If the logout type is "self-dereg", follow the general logout process to complete the logout of the device itself.
S17、如果注销类型是“3rd-dereg”则需要鉴权访问令牌是否是发起注销方的访问令牌,以及凭证内容是否正确等。这里也可以获取请求发起方的DID;云平台可以很方便获取请求发起方的DID。此外,云平台可以根据待注销设备DID对应的凭证内容与注销请求中的凭证内容,判断二者是否匹配。S17. If the logout type is "3rd-dereg", it is necessary to authenticate whether the access token is the access token of the party initiating the logout, and whether the content of the certificate is correct. The DID of the request initiator can also be obtained here; the cloud platform can easily obtain the DID of the request initiator. In addition, the cloud platform can determine whether the two match according to the content of the certificate corresponding to the DID of the device to be cancelled and the content of the certificate in the cancellation request.
此外,也可以不增加DisregisterType,主要根据凭证内容来区分是自注销还是他注销。In addition, DisregisterType may not be added, and it is mainly based on the content of the certificate to distinguish whether it is self-deregistration or he deregisters.
S18、如果匹配,删除待注销设备对应的账户资源、会话(Session)资源和更新(refresh)资源等, 完成对该设备的注销。然后,云平台可以向第三方设备返回第三方注销应答,通知注销成功或者失败。S18. If there is a match, delete the account resource, session (Session) resource, refresh (refresh) resource, etc. corresponding to the device to be deregistered, and complete the deregistration of the device. Then, the cloud platform can return a third-party logout response to the third-party device to notify the logout success or failure.
方案示例2:Scenario Example 2:
示例2与示例1的最主要的区别包括:可以不在云平台上单独生成一个注销(deregister)资源,来存放注销凭证信息;以及可以将一个设备的注销凭证信息存放在对该设备发起第三方注销的另一个设备中。The main differences between Example 2 and Example 1 include: a deregister resource can not be generated separately on the cloud platform to store the deregistration credential information; in another device.
如图8所示,在示例2中,在云平台的设备注册和注销阶段,具体可以包括以下步骤:As shown in Figure 8, in Example 2, in the device registration and deregistration stage of the cloud platform, the following steps may be specifically included:
OBT云注册阶段:OBT cloud registration stage:
S21、OBT在本地生成一个第三方注销凭证信息(credential)。S21. The OBT locally generates a third-party cancellation credential (credential).
S22、当OBT配置其他设备时,将上述第三方注销凭证信息配置到新设备的CCC资源。例如,发送更新消息,指示更新/oic/sec/ccc{at,credential}。新设备返回配置CCC的应答。注册流程中,在账户资源中增加第三方注销凭证信息;该第三方注销凭证信息可以是单独设备的,也可以是同一用户标识下的所有设备的。如果是所有设备共享第三方注销凭证信息,可以在OBT设备云注册的时候,将该信息注册到云平台上,参见示例1。S22. When the OBT configures other devices, configure the above-mentioned third-party logout credential information to the CCC resources of the new device. For example, send an update message indicating that /oic/sec/ccc{at,credential} is updated. The new device returns a reply configuring the CCC. During the registration process, third-party logout credential information is added to the account resource; the third-party logout credential information may be for a single device, or for all devices under the same user ID. If all devices share the third-party logout credential information, you can register the information on the cloud platform when the OBT device is registered in the cloud, see Example 1.
S23、新设备根据CCC资源,向云平台发起设备注册流程;在注册资源中增加凭证内容。S23, the new device initiates a device registration process to the cloud platform according to the CCC resource; and adds the content of the certificate to the registration resource.
S24、在对新设备注册过程中,会发起对对等设备(peer Device)的配置流程。在配置流程中可以对新设备(New Device)的证书信息进行登记。例如,在进行对等设备配置(Provisioning),针对该新设备在凭证(cred)资源中增加凭证类型为3rd-deregister以及凭证内容credential(可选项)。S24. During the process of registering the new device, a configuration process of the peer device (peer Device) will be initiated. During the configuration process, the certificate information of the new device (New Device) can be registered. For example, when performing peer-to-peer device provisioning (Provisioning), add the credential type as 3rd-deregister and the credential content credential (optional) in the credential (cred) resource for the new device.
在此过程中,需要将新设备的第三方注销凭证信息保存到对等设备中。由此这些配置了新设备的第三方注销凭证信息的对等设备,可以发起针对新设备发起第三方注销流程。该第三方注销流程是可选,如果发起该第三方注销流程,可以参考示例1。During this process, the third-party logout credential information for the new device needs to be saved to the peer device. Therefore, these peer devices configured with the third-party logout credential information of the new device can initiate a third-party logout process for the new device. The third-party logout process is optional. If the third-party logout process is initiated, you can refer to Example 1.
第三方注销阶段:Third-party cancellation stage:
S25、当第三方设备(可能具有OBT,也可能没有OBT)获取待注销设备的DID。第三方设备可以采用多种方式获取待注销设备的DID。例如,待注销设备的DID已经保存在第三方设备的本地。再如,通过用户从其他设备读取待注销设备的DID,并在第三方设备输入等。S25. When the third-party device (which may or may not have OBT) obtains the DID of the device to be deregistered. The third-party device can obtain the DID of the device to be deregistered in various ways. For example, the DID of the device to be deregistered has been saved locally in the third-party device. For another example, the user reads the DID of the device to be deregistered from other devices, and inputs it in the third-party device.
S26、第三方设备发起注销请求。注销请求中携带UID和/或DID,访问令牌,第三方注销凭证信息等。例如发送删除消息,指示删除/oic/sec/account{UserID,DeviceID(注销设备ID),credential}。其中,DeviceID为待注销设备的标识ID。S26, the third-party device initiates a logout request. The logout request carries UID and/or DID, access token, third-party logout credential information, etc. For example, a delete message is sent to indicate the deletion of /oic/sec/account{UserID, DeviceID (logout device ID), credential}. The DeviceID is the identification ID of the device to be deregistered.
S26、如果该注销请求中携带了第三方注销凭证信息,则判定该流程为第三方注销请求。如果请求中没有携带第三方注销凭证信息,则判定为该请求为注销请求。也即是说,在自注销请求中不携带第三方注销凭证信息。S26. If the cancellation request carries the third-party cancellation credential information, it is determined that the process is a third-party cancellation request. If the request does not carry the third-party cancellation credential information, it is determined that the request is a cancellation request. That is to say, the third-party logout credential information is not carried in the self logout request.
S27、删除待注销设备在云平台对应的账户资源、会话资源、更新资源等条目(account资源item\session资源item\refresh资源item),完成对该设备的注销。S27 , delete entries such as account resources, session resources, and update resources (account resource item\session resource item\refresh resource item) corresponding to the device to be deregistered in the cloud platform, and complete the deregistration of the device.
在本示例中,可以完成第三方注销流程;特别是当设备丢失时,可以通过第三方完成丢失设备的云平台注销。In this example, the third-party logout process can be completed; especially when the device is lost, the cloud platform logout of the lost device can be completed through a third party.
图9是根据本申请一实施例的通信设备20的示意性框图。该通信设备20可以执行上述设备注销的方法实施例中第一设备的功能,该通信设备可以包括:FIG. 9 is a schematic block diagram of a communication device 20 according to an embodiment of the present application. The communication device 20 may perform the function of the first device in the above-mentioned method embodiment for device logout, and the communication device may include:
发送单元21,用于向云平台发送注销请求,该注销请求中包括验证信息和第二设备的凭证信息,以使得该云平台对该第二设备进行注销。The sending unit 21 is configured to send a logout request to the cloud platform, where the logout request includes authentication information and credential information of the second device, so that the cloud platform can logout the second device.
可选地,在本申请实施例中,该验证信息包括用户标识和/或设备标识。Optionally, in this embodiment of the present application, the verification information includes a user identification and/or a device identification.
可选地,在本申请实施例中,该验证信息还包括该通信设备的访问令牌,该访问令牌用于验证该通信设备是否被允许访问该云平台。Optionally, in this embodiment of the present application, the verification information further includes an access token of the communication device, where the access token is used to verify whether the communication device is allowed to access the cloud platform.
可选地,在本申请实施例中,该凭证信息中包括凭证内容和凭证类型。Optionally, in this embodiment of the present application, the credential information includes credential content and credential type.
可选地,在本申请实施例中,在该注销类型为自己注销的情况下,该验证信息包括该通信设备的用户标识、设备标识和访问令牌的至少之一。Optionally, in this embodiment of the present application, in the case that the logout type is self-logout, the verification information includes at least one of a user ID, a device ID, and an access token of the communication device.
可选地,在本申请实施例中,在该注销类型为第三方注销的情况下,该验证信息包括该第二设备的用户标识、该第二设备的设备标识和该通信设备的访问令牌的至少之一。Optionally, in this embodiment of the present application, in the case that the logout type is a third-party logout, the verification information includes the user ID of the second device, the device ID of the second device, and the access token of the communication device. at least one of.
可选地,在本申请实施例中,该第二设备的凭证信息是该通信设备生成的。Optionally, in this embodiment of the present application, the credential information of the second device is generated by the communication device.
可选地,在本申请实施例中,该发送单元21还用于:Optionally, in this embodiment of the present application, the sending unit 21 is further configured to:
向该云平台发送凭证创建请求,该凭证创建请求中包括该第二设备的凭证信息。A credential creation request is sent to the cloud platform, where the credential creation request includes credential information of the second device.
可选地,在本申请实施例中,该发送单元21还用于:Optionally, in this embodiment of the present application, the sending unit 21 is further configured to:
向该第二设备发送凭证信息,以将该凭证信息配置在该第二设备的云平台注册配置CCC资源中,该第二设备的CCC资源用于完成该第二设备在该云平台的注册。Sending credential information to the second device to configure the credential information in the cloud platform registration configuration CCC resource of the second device, where the CCC resource of the second device is used to complete the registration of the second device in the cloud platform.
可选地,在本申请实施例中,如图10所述,该通信设备20还包括:Optionally, in this embodiment of the present application, as shown in FIG. 10 , the communication device 20 further includes:
获取单元22,用于通信设备从第三设备获取该第二设备的凭证信息,该第二设备的凭证信息是该第三设备生成的。The obtaining unit 22 is used for the communication device to obtain the credential information of the second device from the third device, where the credential information of the second device is generated by the third device.
可选地,在本申请实施例中,该第二设备的凭证信息保存在该通信设备上。Optionally, in this embodiment of the present application, the credential information of the second device is stored on the communication device.
可选地,在本申请实施例中,该发送单元21还用于将该第二设备的凭证信息发送至第四设备保存。Optionally, in this embodiment of the present application, the sending unit 21 is further configured to send the credential information of the second device to the fourth device for storage.
可选地,在本申请实施例中,多个该第二设备的凭证信息相同。Optionally, in this embodiment of the present application, credential information of multiple second devices is the same.
可选地,在本申请实施例中,每个该第二设备的凭证信息不同。Optionally, in this embodiment of the present application, the credential information of each of the second devices is different.
本申请实施例的通信设备20能够实现前述的方法200实施例中的第一设备的对应功能。该通信设备20中的各个模块(子模块、单元或组件等)对应的流程、功能、实现方式以及有益效果,可参见上述方法实施例中的对应描述,在此不再赘述。需要说明,关于申请实施例的通信设备20中的各个模块(子模块、单元或组件等)所描述的功能,可以由不同的模块(子模块、单元或组件等)实现,也可以由同一个模块(子模块、单元或组件等)实现。The communication device 20 in this embodiment of the present application can implement the corresponding function of the first device in the foregoing method 200 embodiment. For the corresponding processes, functions, implementations and beneficial effects of each module (submodule, unit or component, etc.) in the communication device 20, reference may be made to the corresponding descriptions in the above method embodiments, which will not be repeated here. It should be noted that the functions described by the various modules (submodules, units or components, etc.) in the communication device 20 of the application embodiments may be implemented by different modules (submodules, units or components, etc.), or may be implemented by the same module Module (submodule, unit or component, etc.) implementation.
图11是根据本申请一实施例的云平台30的示意性框图。该云平台30可以包括:FIG. 11 is a schematic block diagram of a cloud platform 30 according to an embodiment of the present application. The cloud platform 30 may include:
接收单元31,用于接收来自第一设备的注销请求,该注销请求中包括验证信息和第二设备的凭证信息;a receiving unit 31, configured to receive a logout request from the first device, where the logout request includes authentication information and credential information of the second device;
注销单元32,用于根据该验证信息和该第二设备的凭证信息,对该第二设备进行注销。The logout unit 32 is configured to logout the second device according to the verification information and the credential information of the second device.
可选地,在本申请实施例中,该验证信息包括用户标识和/或设备标识。Optionally, in this embodiment of the present application, the verification information includes a user identification and/or a device identification.
可选地,在本申请实施例中,该验证信息还包括该第一设备的访问令牌,如图12所示,该云平台30还包括:Optionally, in this embodiment of the present application, the verification information further includes an access token of the first device. As shown in FIG. 12 , the cloud platform 30 further includes:
第一验证单元33,用于对该第一设备的访问令牌进行验证,以确定该第一设备是否被允许访问该云平台。The first verification unit 33 is configured to verify the access token of the first device to determine whether the first device is allowed to access the cloud platform.
可选地,在本申请实施例中,该凭证信息中包括凭证内容和凭证类型。Optionally, in this embodiment of the present application, the credential information includes credential content and credential type.
可选地,在本申请实施例中,注销请求中还包括注销类型。该云平台还包括:Optionally, in this embodiment of the present application, the logout request further includes a logout type. The cloud platform also includes:
第二验证单元34,用于在该注销类型为自己注销的情况下,该云平台验证该验证信息中是否包括该第一设备的用户标识、设备标识和访问令牌的至少之一。The second verification unit 34 is configured to verify, by the cloud platform, whether the verification information includes at least one of the user identification, device identification and access token of the first device when the logout type is self logout.
可选地,在本申请实施例中,该云平台还包括:Optionally, in this embodiment of the present application, the cloud platform further includes:
第三验证单元35,用于在该注销类型为第三方注销的情况下,该云平台验证该验证信息中是否包括该第二设备的用户标识、该第二设备的设备标识和该第一设备的访问令牌,并验证该验证请求中的凭证信息与该云平台保存的账户资源中该第二设备的用户标识和/或设备标识对应的凭证内容是否一致。The third verification unit 35 is configured to verify, by the cloud platform, whether the verification information includes the user ID of the second device, the device ID of the second device and the first device when the log-out type is third-party log-out and verify whether the credential information in the verification request is consistent with the credential content corresponding to the user ID and/or device ID of the second device in the account resources saved by the cloud platform.
可选地,在本申请实施例中,该接收单元31还用于接收来自该第一设备的凭证创建请求,该凭证创建请求中包括该第二设备的凭证信息,该第二设备的凭证信息是在该第一设备生成的。Optionally, in this embodiment of the present application, the receiving unit 31 is further configured to receive a credential creation request from the first device, where the credential creation request includes credential information of the second device, the credential information of the second device is generated at this first device.
可选地,在本申请实施例中,该接收单元31还用于接收来自第三设备的凭证创建请求,该凭证创建请求中包括该第二设备的凭证信息,该第二设备的凭证信息是在该第三设备生成的。Optionally, in this embodiment of the present application, the receiving unit 31 is further configured to receive a credential creation request from a third device, where the credential creation request includes credential information of the second device, and the credential information of the second device is generated in this third device.
可选地,在本申请实施例中,该云平台还包括:Optionally, in this embodiment of the present application, the cloud platform further includes:
注册单元36,用于利用该第二设备的CCC资源完成该第二设备的注册,该第二设备的CCC资源中配置有该第二设备的凭证信息。The registration unit 36 is configured to use the CCC resource of the second device to complete the registration of the second device, and the CCC resource of the second device is configured with credential information of the second device.
可选地,在本申请实施例中,多个该第二设备的凭证信息相同。Optionally, in this embodiment of the present application, credential information of multiple second devices is the same.
可选地,在本申请实施例中,每个该第二设备的凭证信息不同。Optionally, in this embodiment of the present application, the credential information of each of the second devices is different.
可选地,在本申请实施例中,对该第二设备进行注销的方式包括删除该第二设备的以下资源的至少之一:Optionally, in this embodiment of the present application, the manner of deregistering the second device includes deleting at least one of the following resources of the second device:
该第二设备的账户资源,该账户资源中包括凭证信息;Account resources of the second device, where the account resources include credential information;
该第二设备的会话资源;session resources of the second device;
该第二设备的刷新资源。refresh resources of the second device.
本申请实施例的云平台30能够实现前述的方法200、300实施例中的云平台的对应功能。该云平台30中的各个模块(子模块、单元或组件等)对应的流程、功能、实现方式以及有益效果,可参见上述方法实施例中的对应描述,在此不再赘述。需要说明,关于申请实施例的云平台30中的各个模块(子模块、单元或组件等)所描述的功能,可以由不同的模块(子模块、单元或组件等)实现,也可以由同一个模块(子模块、单元或组件等)实现。The cloud platform 30 in this embodiment of the present application can implement the corresponding functions of the cloud platform in the foregoing method 200 and 300 embodiments. For the corresponding processes, functions, implementations, and beneficial effects of each module (sub-module, unit, or component, etc.) in the cloud platform 30, reference may be made to the corresponding descriptions in the above method embodiments, which will not be repeated here. It should be noted that the functions described by each module (submodule, unit or component, etc.) in the cloud platform 30 of the application embodiment may be implemented by different modules (submodule, unit or component, etc.), or by the same Module (submodule, unit or component, etc.) implementation.
图13是根据本申请一实施例的通信设备40的示意性框图。该通信设备40可以执行上述设备注册的方法实施例中第一设备的功能,该通信设备可以包括:FIG. 13 is a schematic block diagram of a communication device 40 according to an embodiment of the present application. The communication device 40 may perform the function of the first device in the above-mentioned embodiment of the method for device registration, and the communication device may include:
发送单元41,用于向该第二设备发送凭证信息,以将该凭证信息配置在该第二设备的CCC资源中,该第二设备的CCC资源用于完成该第二设备在云平台的注册。A sending unit 41, configured to send credential information to the second device, so as to configure the credential information in the CCC resource of the second device, and the CCC resource of the second device is used to complete the registration of the second device in the cloud platform .
可选地,在本申请实施例中,如图14所示,该通信设备40还包括:Optionally, in this embodiment of the present application, as shown in FIG. 14 , the communication device 40 further includes:
信息生成单元42,用于生成第二设备的凭证信息。The information generating unit 42 is configured to generate credential information of the second device.
可选地,在本申请实施例中,该发送单元41还用于向该云平台发送凭证创建请求,该凭证创建请求中包括该第二设备的凭证信息。Optionally, in this embodiment of the present application, the sending unit 41 is further configured to send a credential creation request to the cloud platform, where the credential creation request includes credential information of the second device.
可选地,在本申请实施例中,还包括:Optionally, in this embodiment of the present application, it also includes:
信息保存单元43,用于保存该第二设备的凭证信息。The information saving unit 43 is configured to save the credential information of the second device.
可选地,在本申请实施例中,该发送单元41还用于将该第二设备的凭证信息发送至第四设备保存。Optionally, in this embodiment of the present application, the sending unit 41 is further configured to send the credential information of the second device to the fourth device for storage.
可选地,在本申请实施例中,多个该第二设备的凭证信息相同。Optionally, in this embodiment of the present application, credential information of multiple second devices is the same.
可选地,在本申请实施例中,每个该第二设备的凭证信息不同。Optionally, in this embodiment of the present application, the credential information of each of the second devices is different.
本申请实施例的通信设备40能够实现前述的方法400实施例中的第一设备的对应功能。该通信设备40中的各个模块(子模块、单元或组件等)对应的流程、功能、实现方式以及有益效果,可参见上述方法实施例中的对应描述,在此不再赘述。The communication device 40 in this embodiment of the present application can implement the corresponding function of the first device in the foregoing method 400 embodiment. For the corresponding processes, functions, implementations and beneficial effects of each module (sub-module, unit or component, etc.) in the communication device 40, reference may be made to the corresponding descriptions in the above method embodiments, which will not be repeated here.
需要说明,关于申请实施例的通信设备40中的各个模块(子模块、单元或组件等)所描述的功能,可以由不同的模块(子模块、单元或组件等)实现,也可以由同一个模块(子模块、单元或组件等)实现。It should be noted that the functions described by each module (sub-module, unit, or component, etc.) in the communication device 40 of the application embodiment may be implemented by different modules (sub-module, unit, or component, etc.), or by the same Module (submodule, unit or component, etc.) implementation.
图15是根据本申请一实施例的通信设备50的示意性框图。该通信设备50可以执行上述设备注册的方法实施例中第二设备的功能,该通信设备可以包括:FIG. 15 is a schematic block diagram of a communication device 50 according to an embodiment of the present application. The communication device 50 may perform the function of the second device in the above-mentioned embodiment of the method for device registration, and the communication device may include:
接收单元51,用于接收凭证信息;a receiving unit 51, configured to receive credential information;
配置单元52,用于将该凭证信息配置在该网络设备的CCC资源中;a configuration unit 52, configured to configure the credential information in the CCC resource of the network device;
注册单元53,用于基于该CCC资源向云平台进行注册。The registration unit 53 is configured to register with the cloud platform based on the CCC resource.
本申请实施例的通信设备50能够实现前述的方法500实施例中的第二设备的对应功能。该通信设 备50中的各个模块(子模块、单元或组件等)对应的流程、功能、实现方式以及有益效果,可参见上述方法实施例中的对应描述,在此不再赘述。需要说明,关于申请实施例的通信设备50中的各个模块(子模块、单元或组件等)所描述的功能,可以由不同的模块(子模块、单元或组件等)实现,也可以由同一个模块(子模块、单元或组件等)实现。The communication device 50 in this embodiment of the present application can implement the corresponding function of the second device in the foregoing method 500 embodiment. For the corresponding processes, functions, implementations and beneficial effects of each module (sub-module, unit or component, etc.) in the communication device 50, reference may be made to the corresponding descriptions in the above method embodiments, which will not be repeated here. It should be noted that the functions described by each module (sub-module, unit or component, etc.) in the communication device 50 of the application embodiment may be implemented by different modules (sub-module, unit or component, etc.), or by the same Module (submodule, unit or component, etc.) implementation.
图16是根据本申请实施例的通信设备600示意性结构图。该通信设备600包括处理器610,处理器610可以从存储器中调用并运行计算机程序,以使通信设备600实现本申请实施例中的方法。FIG. 16 is a schematic structural diagram of a communication device 600 according to an embodiment of the present application. The communication device 600 includes a processor 610, and the processor 610 can call and run a computer program from a memory, so that the communication device 600 implements the methods in the embodiments of the present application.
可选地,如图16所示,通信设备600还可以包括存储器620。其中,处理器610可以从存储器620中调用并运行计算机程序,以使通信设备600实现本申请实施例中的方法。Optionally, as shown in FIG. 16 , the communication device 600 may further include a memory 620 . The processor 610 may call and run a computer program from the memory 620, so that the communication device 600 implements the methods in the embodiments of the present application.
其中,存储器620可以是独立于处理器610的一个单独的器件,也可以集成在处理器610中。The memory 620 may be a separate device independent of the processor 610 , or may be integrated in the processor 610 .
可选地,如图16所示,通信设备600还可以包括收发器630,处理器610可以控制该收发器630与其他设备进行通信,具体地,可以向其他设备发送信息或数据,或接收其他设备发送的信息或数据。Optionally, as shown in FIG. 16 , the communication device 600 may further include a transceiver 630, and the processor 610 may control the transceiver 630 to communicate with other devices, specifically, may send information or data to other devices, or receive other devices Information or data sent by a device.
其中,收发器630可以包括发射机和接收机。收发器630还可以进一步包括天线,天线的数量可以为一个或多个。Among them, the transceiver 630 may include a transmitter and a receiver. The transceiver 630 may further include antennas, and the number of the antennas may be one or more.
可选地,该通信设备600可为本申请实施例的网络设备,并且该通信设备600可以实现本申请实施例的各个方法中由网络设备实现的相应流程,为了简洁,在此不再赘述。Optionally, the communication device 600 may be the network device of this embodiment of the present application, and the communication device 600 may implement the corresponding processes implemented by the network device in each method of the embodiment of the present application, which is not repeated here for brevity.
可选地,该通信设备600可为本申请实施例的终端设备,并且该通信设备600可以实现本申请实施例的各个方法中由终端设备实现的相应流程,为了简洁,在此不再赘述。Optionally, the communication device 600 may be a terminal device in this embodiment of the present application, and the communication device 600 may implement corresponding processes implemented by the terminal device in each method in the embodiment of the present application, which is not repeated here for brevity.
图17是根据本申请实施例的芯片700的示意性结构图。该芯片700包括处理器710,处理器710可以从存储器中调用并运行计算机程序,以实现本申请实施例中的方法。FIG. 17 is a schematic structural diagram of a chip 700 according to an embodiment of the present application. The chip 700 includes a processor 710, and the processor 710 can call and run a computer program from a memory, so as to implement the method in the embodiments of the present application.
可选地,如图17所示,芯片700还可以包括存储器720。其中,处理器710可以从存储器720中调用并运行计算机程序,以实现本申请实施例中由终端设备或者网络设备执行的方法。Optionally, as shown in FIG. 17 , the chip 700 may further include a memory 720 . The processor 710 may call and run a computer program from the memory 720 to implement the method executed by the terminal device or the network device in the embodiment of the present application.
其中,存储器720可以是独立于处理器710的一个单独的器件,也可以集成在处理器710中。The memory 720 may be a separate device independent of the processor 710 , or may be integrated in the processor 710 .
可选地,该芯片700还可以包括输入接口730。其中,处理器710可以控制该输入接口730与其他设备或芯片进行通信,具体地,可以获取其他设备或芯片发送的信息或数据。Optionally, the chip 700 may further include an input interface 730 . The processor 710 may control the input interface 730 to communicate with other devices or chips, and specifically, may acquire information or data sent by other devices or chips.
可选地,该芯片700还可以包括输出接口740。其中,处理器710可以控制该输出接口740与其他设备或芯片进行通信,具体地,可以向其他设备或芯片输出信息或数据。Optionally, the chip 700 may further include an output interface 740 . The processor 710 can control the output interface 740 to communicate with other devices or chips, and specifically, can output information or data to other devices or chips.
可选地,该芯片可应用于本申请实施例中的网络设备,并且该芯片可以实现本申请实施例的各个方法中由网络设备实现的相应流程,为了简洁,在此不再赘述。Optionally, the chip can be applied to the network device in the embodiment of the present application, and the chip can implement the corresponding processes implemented by the network device in each method of the embodiment of the present application, which is not repeated here for brevity.
可选地,该芯片可应用于本申请实施例中的终端设备,并且该芯片可以实现本申请实施例的各个方法中由终端设备实现的相应流程,为了简洁,在此不再赘述。Optionally, the chip can be applied to the terminal device in the embodiment of the present application, and the chip can implement the corresponding processes implemented by the terminal device in each method of the embodiment of the present application, which is not repeated here for brevity.
应用于网络设备和终端设备的芯片可以是相同的芯片或不同的芯片。Chips applied to network equipment and terminal equipment can be the same chip or different chips.
应理解,本申请实施例提到的芯片还可以称为系统级芯片,系统芯片,芯片系统或片上系统芯片等。It should be understood that the chip mentioned in the embodiments of the present application may also be referred to as a system-on-chip, a system-on-chip, a system-on-chip, or a system-on-a-chip, or the like.
上述提及的处理器可以是通用处理器、数字信号处理器(digital signal processor,DSP)、现成可编程门阵列(field programmable gate array,FPGA)、专用集成电路(application specific integrated circuit,ASIC)或者其他可编程逻辑器件、晶体管逻辑器件、分立硬件组件等。其中,上述提到的通用处理器可以是微处理器或者也可以是任何常规的处理器等。The above-mentioned processor may be a general-purpose processor, a digital signal processor (DSP), an off-the-shelf programmable gate array (field programmable gate array, FPGA), an application specific integrated circuit (ASIC) or Other programmable logic devices, transistor logic devices, discrete hardware components, etc. The general-purpose processor mentioned above may be a microprocessor or any conventional processor or the like.
上述提及的存储器可以是易失性存储器或非易失性存储器,或可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(read-only memory,ROM)、可编程只读存储器(programmable ROM,PROM)、可擦除可编程只读存储器(erasable PROM,EPROM)、电可擦除可编程只读存储器(electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(random access memory,RAM)。The memory mentioned above may be either volatile memory or non-volatile memory, or may include both volatile and non-volatile memory. The non-volatile memory may be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically programmable Erase programmable read-only memory (electrically EPROM, EEPROM) or flash memory. Volatile memory may be random access memory (RAM).
应理解,上述存储器为示例性但不是限制性说明,例如,本申请实施例中的存储器还可以是静态随 机存取存储器(static RAM,SRAM)、动态随机存取存储器(dynamic RAM,DRAM)、同步动态随机存取存储器(synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(double data rate SDRAM,DDR SDRAM)、增强型同步动态随机存取存储器(enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(synch link DRAM,SLDRAM)以及直接内存总线随机存取存储器(Direct Rambus RAM,DR RAM)等等。也就是说,本申请实施例中的存储器旨在包括但不限于这些和任意其它适合类型的存储器。It should be understood that the above memory is an example but not a limitative description, for example, the memory in the embodiment of the present application may also be a static random access memory (static RAM, SRAM), a dynamic random access memory (dynamic RAM, DRAM), Synchronous dynamic random access memory (synchronous DRAM, SDRAM), double data rate synchronous dynamic random access memory (double data rate SDRAM, DDR SDRAM), enhanced synchronous dynamic random access memory (enhanced SDRAM, ESDRAM), synchronous connection Dynamic random access memory (synch link DRAM, SLDRAM) and direct memory bus random access memory (Direct Rambus RAM, DR RAM) and so on. That is, the memory in the embodiments of the present application is intended to include but not limited to these and any other suitable types of memory.
图18是根据本申请实施例的通信系统800的示意性框图。该通信系统800可以包括第一设备810和云平台820。FIG. 18 is a schematic block diagram of a communication system 800 according to an embodiment of the present application. The communication system 800 may include a first device 810 and a cloud platform 820 .
其中,第一设备810,可以用于向云平台820发送注销请求,该注销请求中包括验证信息和第二设备的凭证信息,以使得该云平台820对第二设备进行注销。The first device 810 may be configured to send a logout request to the cloud platform 820, where the logout request includes authentication information and credential information of the second device, so that the cloud platform 820 logs out the second device.
云平台820,可以用于接收来自第一设备810的该注销请求;根据该注销请求中验证信息和第二设备的凭证信息,对第二设备进行注销。The cloud platform 820 may be configured to receive the logout request from the first device 810; logout the second device according to the verification information in the logout request and the credential information of the second device.
可选地,第一设备810也可以用于向所述第二设备发送凭证信息,以将该凭证信息配置在第二设备的CCC资源中,该第二设备的CCC资源用于完成该第二设备在云平台的注册。Optionally, the first device 810 may also be configured to send credential information to the second device, so as to configure the credential information in the CCC resource of the second device, and the CCC resource of the second device is used to complete the second device. Device registration in the cloud platform.
其中,该第一设备810可以用于实现上述方法实施例中由第一设备实现的相应的功能,以及该云平台820可以用于实现上述方法实施例中由云平台实现的相应的功能。为了简洁,在此不再赘述。The first device 810 may be used to implement the corresponding functions implemented by the first device in the above method embodiments, and the cloud platform 820 may be used to implement the corresponding functions implemented by the cloud platform in the above method embodiments. For brevity, details are not repeated here.
可选地,该通信系统800还可以包括:第二设备830,用于接收凭证信息;将该凭证信息配置在该第二设备的CCC资源中;基于该CCC资源向云平台进行注册。Optionally, the communication system 800 may further include: a second device 830, configured to receive credential information; configure the credential information in the CCC resource of the second device; and register with the cloud platform based on the CCC resource.
可选地,该通信系统800还可以包括:第三设备840,用于向云平台发送凭证创建请求,该凭证创建请求中包括第二设备的凭证信息,该第二设备的凭证信息是在该第三设备生成的。Optionally, the communication system 800 may further include: a third device 840, configured to send a credential creation request to the cloud platform, where the credential creation request includes credential information of the second device, and the credential information of the second device is in the generated by a third device.
可选地,该通信系统800还可以包括:第四设备850,用于接收并保存第二设备的凭证信息。例如,第四设备850可以从第一设备810或第三设备840接收第二设备的凭证信息。Optionally, the communication system 800 may further include: a fourth device 850, configured to receive and save credential information of the second device. For example, the fourth device 850 may receive the credential information of the second device from the first device 810 or the third device 840 .
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。该计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行该计算机程序指令时,全部或部分地产生按照本申请实施例所述的流程或功能。该计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。该计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,该计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(Digital Subscriber Line,DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。该计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。该可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘(Solid State Disk,SSD))等。In the above-mentioned embodiments, it may be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented in software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of the present application are generated. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable device. The computer instructions may be stored on or transmitted from one computer readable storage medium to another computer readable storage medium, for example, the computer instructions may be transmitted over a wire from a website site, computer, server or data center (eg coaxial cable, optical fiber, Digital Subscriber Line (DSL)) or wireless (eg infrared, wireless, microwave, etc.) means to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that includes one or more available media integrated. The available medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a DVD), or a semiconductor medium (eg, a Solid State Disk (SSD)), and the like.
应理解,在本申请的各种实施例中,上述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。It should be understood that, in various embodiments of the present application, the size of the sequence numbers of the above-mentioned processes does not mean the sequence of execution, and the execution sequence of each process should be determined by its functions and internal logic, and should not be dealt with in the embodiments of the present application. implementation constitutes any limitation.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the above-described systems, devices and units may refer to the corresponding processes in the foregoing method embodiments, which will not be repeated here.
以上所述仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以该权利要求的保护范围为准。The above are only specific embodiments of the present application, but the protection scope of the present application is not limited to this. Any person skilled in the art who is familiar with the technical scope disclosed in the present application can easily think of changes or substitutions. Covered within the scope of protection of this application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (83)

  1. 一种注销设备的方法,包括:A method of unregistering a device, comprising:
    第一设备向云平台发送注销请求,所述注销请求中包括验证信息和第二设备的凭证信息,以使得所述云平台对所述第二设备进行注销。The first device sends a logout request to the cloud platform, where the logout request includes authentication information and credential information of the second device, so that the cloud platform logs out the second device.
  2. 根据权利要求1所述的方法,其中,所述验证信息包括用户标识和/或设备标识。The method of claim 1, wherein the authentication information includes a user identification and/or a device identification.
  3. 根据权利要求1所述的方法,其中,所述验证信息还包括所述第一设备的访问令牌,所述访问令牌用于验证所述第一设备是否被允许访问所述云平台。The method of claim 1, wherein the verification information further comprises an access token of the first device, the access token being used to verify whether the first device is allowed to access the cloud platform.
  4. 根据权利要求1至3中任一项所述的方法,其中,所述凭证信息中包括凭证内容和凭证类型。The method according to any one of claims 1 to 3, wherein the credential information includes credential content and credential type.
  5. 根据权利要求1至4中任一项所述的方法,其中,所述注销请求中还包括注销类型,在所述注销类型为自己注销的情况下,所述验证信息包括所述第一设备的用户标识、设备标识和访问令牌的至少之一。The method according to any one of claims 1 to 4, wherein the logout request further includes a logout type, and when the logout type is self-logout, the verification information includes the first device's At least one of a user ID, a device ID, and an access token.
  6. 根据权利要求1至4中任一项所述的方法,其中,所述注销请求中还包括注销类型,在所述注销类型为第三方注销的情况下,所述验证信息包括所述第二设备的用户标识、所述第二设备的设备标识和所述第一设备的访问令牌的至少之一。The method according to any one of claims 1 to 4, wherein the logout request further includes a logout type, and when the logout type is a third-party logout, the verification information includes the second device at least one of the user identification of the second device, the device identification of the second device, and the access token of the first device.
  7. 根据权利要求1至6中任一项所述的方法,其中,所述第二设备的凭证信息是所述第一设备生成的。6. The method of any one of claims 1 to 6, wherein the credential information for the second device is generated by the first device.
  8. 根据权利要求7所述的方法,其中,还包括:The method of claim 7, further comprising:
    所述第一设备向所述云平台发送凭证创建请求,所述凭证创建请求中包括所述第二设备的凭证信息。The first device sends a credential creation request to the cloud platform, where the credential creation request includes credential information of the second device.
  9. 根据权利要求7或8所述的方法,其中,还包括:The method of claim 7 or 8, further comprising:
    所述第一设备向所述第二设备发送凭证信息,以将所述凭证信息配置在所述第二设备的云平台注册配置CCC资源中,所述第二设备的CCC资源用于完成所述第二设备在所述云平台的注册。The first device sends credential information to the second device to configure the credential information in the cloud platform registration configuration CCC resource of the second device, and the CCC resource of the second device is used to complete the The registration of the second device in the cloud platform.
  10. 根据权利要求1至6中任一项所述的方法,其中,还包括:The method of any one of claims 1 to 6, further comprising:
    所述第一设备从第三设备获取所述第二设备的凭证信息,所述第二设备的凭证信息是所述第三设备生成的。The first device acquires credential information of the second device from a third device, where the credential information of the second device is generated by the third device.
  11. 根据权利要求1至10中任一项所述的方法,其中,所述第二设备的凭证信息保存在所述第一设备上。10. The method of any one of claims 1 to 10, wherein credential information for the second device is stored on the first device.
  12. 根据权利要求1至11中任一项所述的方法,其中,还包括:The method according to any one of claims 1 to 11, wherein, further comprising:
    所述第一设备将所述第二设备的凭证信息发送至第四设备保存。The first device sends the credential information of the second device to the fourth device for storage.
  13. 根据权利要求1至12中任一项所述的方法,其中,多个所述第二设备的凭证信息相同。The method according to any one of claims 1 to 12, wherein credential information of a plurality of the second devices is the same.
  14. 根据权利要求1至12中任一项所述的方法,其中,每个所述第二设备的凭证信息不同。12. The method of any one of claims 1 to 12, wherein credential information is different for each of the second devices.
  15. 一种注销设备的方法,包括:A method of unregistering a device, comprising:
    云平台接收来自第一设备的注销请求,所述注销请求中包括验证信息和第二设备的凭证信息;The cloud platform receives a logout request from the first device, where the logout request includes authentication information and credential information of the second device;
    所述云平台根据所述验证信息和所述第二设备的凭证信息,对所述第二设备进行注销。The cloud platform deregisters the second device according to the verification information and the credential information of the second device.
  16. 根据权利要求15所述的方法,其中,所述验证信息包括用户标识和/或设备标识。The method of claim 15, wherein the authentication information includes a user identification and/or a device identification.
  17. 根据权利要求16所述的方法,其中,所述验证信息还包括所述第一设备的访问令牌,所述方法还包括:The method of claim 16, wherein the verification information further comprises an access token of the first device, the method further comprising:
    所述云平台对所述第一设备的访问令牌进行验证,以确定所述第一设备是否被允许访问所述云平台。The cloud platform verifies the access token of the first device to determine whether the first device is allowed to access the cloud platform.
  18. 根据权利要求15至17中任一项所述的方法,其中,所述凭证信息中包括凭证内容和凭证类型。The method according to any one of claims 15 to 17, wherein the voucher information includes voucher content and voucher type.
  19. 根据权利要求15至18中任一项所述的方法,其中,所述注销请求中还包括注销类型,所述方 法还包括:The method according to any one of claims 15 to 18, wherein the logout request further includes a logout type, and the method further includes:
    在所述注销类型为自己注销的情况下,所述云平台验证所述验证信息中是否包括所述第一设备的用户标识、设备标识和访问令牌的至少之一。In the case that the logout type is self-logout, the cloud platform verifies whether the verification information includes at least one of a user ID, a device ID, and an access token of the first device.
  20. 根据权利要求15至18中任一项所述的方法,其中,所述注销请求中还包括注销类型,所述方法还包括:The method according to any one of claims 15 to 18, wherein the logout request further includes a logout type, and the method further comprises:
    在所述注销类型为第三方注销的情况下,所述云平台验证所述验证信息中是否包括所述第二设备的用户标识、所述第二设备的设备标识和所述第一设备的访问令牌,并验证所述验证请求中的凭证信息与所述云平台保存的账户资源中所述第二设备的用户标识和/或设备标识对应的凭证内容是否一致。In the case that the logout type is third-party logout, the cloud platform verifies whether the verification information includes the user ID of the second device, the device ID of the second device, and the access of the first device token, and verify whether the credential information in the verification request is consistent with the credential content corresponding to the user ID and/or device ID of the second device in the account resource saved by the cloud platform.
  21. 根据权利要求15至20中任一项所述的方法,其中,还包括:The method of any one of claims 15 to 20, further comprising:
    所述云平台接收来自所述第一设备的凭证创建请求,所述凭证创建请求中包括所述第二设备的凭证信息,所述第二设备的凭证信息是在所述第一设备生成的。The cloud platform receives a credential creation request from the first device, where the credential creation request includes credential information of the second device, and the credential information of the second device is generated on the first device.
  22. 根据权利要求15至20中任一项所述的方法,其中,还包括:The method of any one of claims 15 to 20, further comprising:
    所述云平台接收来自第三设备的凭证创建请求,所述凭证创建请求中包括所述第二设备的凭证信息,所述第二设备的凭证信息是在所述第三设备生成的。The cloud platform receives a credential creation request from a third device, where the credential creation request includes credential information of the second device, and the credential information of the second device is generated on the third device.
  23. 根据权利要求15至22中任一项所述的方法,其中,还包括:The method of any one of claims 15 to 22, further comprising:
    所述云平台利用所述第二设备的CCC资源完成所述第二设备的注册,所述第二设备的CCC资源中配置有所述第二设备的凭证信息。The cloud platform uses the CCC resource of the second device to complete the registration of the second device, and the CCC resource of the second device is configured with credential information of the second device.
  24. 根据权利要求15至23中任一项所述的方法,其中,多个所述第二设备的凭证信息相同。The method according to any one of claims 15 to 23, wherein credential information of a plurality of the second devices is the same.
  25. 根据权利要求15至23中任一项所述的方法,其中,每个所述第二设备的凭证信息不同。23. The method of any one of claims 15 to 23, wherein credential information is different for each of the second devices.
  26. 根据权利要求15至25中任一项所述的方法,其中,对所述第二设备进行注销的方式包括删除所述第二设备的以下资源的至少之一:The method according to any one of claims 15 to 25, wherein the manner of deregistering the second device comprises deleting at least one of the following resources of the second device:
    所述第二设备的账户资源,所述账户资源中包括凭证信息;Account resources of the second device, where the account resources include credential information;
    所述第二设备的会话资源;session resources of the second device;
    所述第二设备的刷新资源。refresh resources of the second device.
  27. 一种设备注册的方法,其中,还包括:A method for device registration, further comprising:
    第一设备向第二设备发送凭证信息,以将所述凭证信息配置在所述第二设备的CCC资源中,所述第二设备的CCC资源用于完成所述第二设备在云平台的注册。The first device sends credential information to the second device to configure the credential information in the CCC resource of the second device, and the CCC resource of the second device is used to complete the registration of the second device in the cloud platform .
  28. 根据权利要求27所述的方法,其中,还包括:The method of claim 27, further comprising:
    所述第一设备生成第二设备的凭证信息。The first device generates credential information for the second device.
  29. 根据权利要求27或28所述的方法,其中,还包括:The method of claim 27 or 28, further comprising:
    所述第一设备向所述云平台发送凭证创建请求,所述凭证创建请求中包括所述第二设备的凭证信息。The first device sends a credential creation request to the cloud platform, where the credential creation request includes credential information of the second device.
  30. 根据权利要求27至29中任一项所述的方法,其中,还包括:The method of any one of claims 27 to 29, further comprising:
    所述第一设备保存所述第二设备的凭证信息。The first device stores credential information of the second device.
  31. 根据权利要求27至30中任一项所述的方法,其中,还包括:The method of any one of claims 27 to 30, further comprising:
    所述第一设备将所述第二设备的凭证信息发送至第四设备保存。The first device sends the credential information of the second device to the fourth device for storage.
  32. 根据权利要求27至31中任一项所述的方法,其中,多个所述第二设备的凭证信息相同。The method according to any one of claims 27 to 31, wherein the credential information of a plurality of the second devices is the same.
  33. 根据权利要求27至31中任一项所述的方法,其中,每个所述第二设备的凭证信息不同。31. The method of any one of claims 27 to 31, wherein credential information is different for each of the second devices.
  34. 一种设备注册的方法,其中,还包括:A method for device registration, further comprising:
    第二设备接收凭证信息;The second device receives the credential information;
    所述第二设备将所述凭证信息配置在所述第二设备的CCC资源中;The second device configures the credential information in the CCC resource of the second device;
    所述第二设备基于所述CCC资源向云平台进行注册。The second device registers with the cloud platform based on the CCC resource.
  35. 一种通信设备,包括:A communication device comprising:
    发送单元,用于向云平台发送注销请求,所述注销请求中包括验证信息和第二设备的凭证信息,以使得所述云平台对所述第二设备进行注销。A sending unit, configured to send a logout request to the cloud platform, where the logout request includes authentication information and credential information of the second device, so that the cloud platform logs out the second device.
  36. 根据权利要求35所述的通信设备,其中,所述验证信息包括用户标识和/或设备标识。The communication device of claim 35, wherein the authentication information includes a user identification and/or a device identification.
  37. 根据权利要求35所述的通信设备,其中,所述验证信息还包括所述通信设备的访问令牌,所述访问令牌用于验证所述通信设备是否被允许访问所述云平台。The communication device of claim 35, wherein the verification information further comprises an access token of the communication device, the access token being used to verify whether the communication device is allowed to access the cloud platform.
  38. 根据权利要求35至37中任一项所述的通信设备,其中,所述凭证信息中包括凭证内容和凭证类型。The communication device according to any one of claims 35 to 37, wherein the credential information includes credential content and credential type.
  39. 根据权利要求35至38所述的通信设备,其中,所述注销请求中还包括注销类型,在所述注销类型为自己注销的情况下,所述验证信息包括所述通信设备的用户标识、设备标识和访问令牌的至少之一。The communication device according to claims 35 to 38, wherein the logout request further includes a logout type, and in the case that the logout type is self-logout, the verification information includes a user identifier of the communication device, a device At least one of an ID and an access token.
  40. 根据权利要求35至38所述的通信设备,其中,所述注销请求中还包括注销类型,在所述注销类型为第三方注销的情况下,所述验证信息包括所述第二设备的用户标识、所述第二设备的设备标识和所述通信设备的访问令牌的至少之一。The communication device according to claims 35 to 38, wherein the logout request further includes a logout type, and when the logout type is a third-party logout, the verification information includes a user identity of the second device , at least one of a device identification of the second device and an access token of the communication device.
  41. 根据权利要求35至40中任一项所述的通信设备,其中,所述第二设备的凭证信息是所述通信设备生成的。A communication device according to any one of claims 35 to 40, wherein the credential information of the second device is generated by the communication device.
  42. 根据权利要求41所述的通信设备,其中,所述发送单元还用于:The communication device of claim 41, wherein the sending unit is further configured to:
    向所述云平台发送凭证创建请求,所述凭证创建请求中包括所述第二设备的凭证信息。A credential creation request is sent to the cloud platform, where the credential creation request includes credential information of the second device.
  43. 根据权利要求41或42所述的通信设备,其中,所述发送单元还用于:The communication device according to claim 41 or 42, wherein the sending unit is further configured to:
    向所述第二设备发送凭证信息,以将所述凭证信息配置在所述第二设备的云平台注册配置CCC资源中,所述第二设备的CCC资源用于完成所述第二设备在所述云平台的注册。Send the credential information to the second device to configure the credential information in the cloud platform registration and configuration CCC resource of the second device, and the CCC resource of the second device is used to complete the registration of the second device in the the registration of the cloud platform.
  44. 根据权利要求35至40中任一项所述的通信设备,其中,还包括:The communication device of any one of claims 35 to 40, further comprising:
    获取单元,用于通信设备从第三设备获取所述第二设备的凭证信息,所述第二设备的凭证信息是所述第三设备生成的。an acquiring unit, configured for the communication device to acquire credential information of the second device from a third device, where the credential information of the second device is generated by the third device.
  45. 根据权利要求35至44中任一项所述的通信设备,其中,所述第二设备的凭证信息保存在所述通信设备上。A communication device as claimed in any one of claims 35 to 44, wherein credential information for the second device is stored on the communication device.
  46. 根据权利要求35至45中任一项所述的通信设备,其中,所述发送单元还用于将所述第二设备的凭证信息发送至第四设备保存。The communication device according to any one of claims 35 to 45, wherein the sending unit is further configured to send the credential information of the second device to the fourth device for storage.
  47. 根据权利要求35至46中任一项所述的通信设备,其中,多个所述第二设备的凭证信息相同。The communication device according to any one of claims 35 to 46, wherein the credential information of a plurality of the second devices is the same.
  48. 根据权利要求35至46中任一项所述的通信设备,其中,每个所述第二设备的凭证信息不同。A communication device as claimed in any one of claims 35 to 46, wherein the credential information is different for each of the second devices.
  49. 一种云平台,包括:A cloud platform that includes:
    接收单元,用于接收来自第一设备的注销请求,所述注销请求中包括验证信息和第二设备的凭证信息;a receiving unit, configured to receive a logout request from the first device, where the logout request includes authentication information and credential information of the second device;
    注销单元,用于根据所述验证信息和所述第二设备的凭证信息,对所述第二设备进行注销。A logout unit, configured to logout the second device according to the verification information and the credential information of the second device.
  50. 根据权利要求49所述的云平台,其中,所述验证信息包括用户标识和/或设备标识。The cloud platform according to claim 49, wherein the verification information includes a user identification and/or a device identification.
  51. 根据权利要求50所述的云平台,其中,所述验证信息还包括所述第一设备的访问令牌,所述云平台还包括:The cloud platform of claim 50, wherein the verification information further comprises an access token of the first device, the cloud platform further comprising:
    第一验证单元,用于对所述第一设备的访问令牌进行验证,以确定所述第一设备是否被允许访问所述云平台。A first verification unit, configured to verify the access token of the first device to determine whether the first device is allowed to access the cloud platform.
  52. 根据权利要求49至51中任一项所述的云平台,其中,所述凭证信息中包括凭证内容和凭证类型。The cloud platform according to any one of claims 49 to 51, wherein the credential information includes credential content and credential type.
  53. 根据权利要求49至52所述的云平台,其中,所述注销请求中还包括注销类型,所述云平台还 包括:The cloud platform according to claims 49 to 52, wherein the logout request also includes a logout type, and the cloud platform further includes:
    第二验证单元,用于在所述注销类型为自己注销的情况下,所述云平台验证所述验证信息中是否包括所述第一设备的用户标识、设备标识和访问令牌的至少之一。a second verification unit, configured to verify, by the cloud platform, whether the verification information includes at least one of a user ID, a device ID and an access token of the first device when the logout type is self logout .
  54. 根据权利要求49至52所述的云平台,其中,所述注销请求中还包括注销类型,所述云平台还包括:The cloud platform according to claims 49 to 52, wherein the logout request further includes a logout type, and the cloud platform further includes:
    第三验证单元,用于在所述注销类型为第三方注销的情况下,所述云平台验证所述验证信息中是否包括所述第二设备的用户标识、所述第二设备的设备标识和所述第一设备的访问令牌,并验证所述验证请求中的凭证信息与所述云平台保存的账户资源中所述第二设备的用户标识和/或设备标识对应的凭证内容是否一致。a third verification unit, configured to verify, by the cloud platform, whether the verification information includes the user identifier of the second device, the device identifier of the second device and the the access token of the first device, and verify whether the credential information in the verification request is consistent with the credential content corresponding to the user ID and/or device ID of the second device in the account resources saved by the cloud platform.
  55. 根据权利要求49至54中任一项所述的云平台,其中,所述接收单元还用于接收来自所述第一设备的凭证创建请求,所述凭证创建请求中包括所述第二设备的凭证信息,所述第二设备的凭证信息是在所述第一设备生成的。The cloud platform according to any one of claims 49 to 54, wherein the receiving unit is further configured to receive a credential creation request from the first device, wherein the credential creation request includes a credential creation request of the second device. Credential information, the credential information of the second device is generated at the first device.
  56. 根据权利要求49至54中任一项所述的云平台,其中,所述接收单元还用于接收来自第三设备的凭证创建请求,所述凭证创建请求中包括所述第二设备的凭证信息,所述第二设备的凭证信息是在所述第三设备生成的。The cloud platform according to any one of claims 49 to 54, wherein the receiving unit is further configured to receive a credential creation request from a third device, wherein the credential creation request includes credential information of the second device , the credential information of the second device is generated at the third device.
  57. 根据权利要求49至56中任一项所述的云平台,其中,还包括:The cloud platform according to any one of claims 49 to 56, further comprising:
    注册单元,用于利用所述第二设备的CCC资源完成所述第二设备的注册,所述第二设备的CCC资源中配置有所述第二设备的凭证信息。A registration unit, configured to use the CCC resource of the second device to complete the registration of the second device, where the CCC resource of the second device is configured with credential information of the second device.
  58. 根据权利要求49至57中任一项所述的云平台,其中,多个所述第二设备的凭证信息相同。The cloud platform according to any one of claims 49 to 57, wherein the credential information of the plurality of second devices is the same.
  59. 根据权利要求49至57中任一项所述的云平台,其中,每个所述第二设备的凭证信息不同。The cloud platform according to any one of claims 49 to 57, wherein the credential information of each of the second devices is different.
  60. 根据权利要求49至59中任一项所述的云平台,其中,对所述第二设备进行注销的方式包括删除所述第二设备的以下资源的至少之一:The cloud platform according to any one of claims 49 to 59, wherein the manner of deregistering the second device comprises deleting at least one of the following resources of the second device:
    所述第二设备的账户资源,所述账户资源中包括凭证信息;Account resources of the second device, where the account resources include credential information;
    所述第二设备的会话资源;session resources of the second device;
    所述第二设备的刷新资源。refresh resources of the second device.
  61. 一种通信设备,包括:A communication device comprising:
    发送单元,用于向第二设备发送凭证信息,以将所述凭证信息配置在所述第二设备的CCC资源中,所述第二设备的CCC资源用于完成所述第二设备在云平台的注册。A sending unit, configured to send credential information to the second device, so as to configure the credential information in the CCC resource of the second device, and the CCC resource of the second device is used to complete the cloud platform for the second device registration.
  62. 根据权利要求61所述的通信设备,其中,还包括:The communication device of claim 61, further comprising:
    信息生成单元,用于生成第二设备的凭证信息。an information generating unit, configured to generate credential information of the second device.
  63. 根据权利要求61或62所述的通信设备,其中,所述发送单元还用于向所述云平台发送凭证创建请求,所述凭证创建请求中包括所述第二设备的凭证信息。The communication device according to claim 61 or 62, wherein the sending unit is further configured to send a credential creation request to the cloud platform, wherein the credential creation request includes credential information of the second device.
  64. 根据权利要求61至63中任一项所述的通信设备,其中,还包括:The communication device of any one of claims 61 to 63, further comprising:
    信息保存单元,用于保存所述第二设备的凭证信息。An information saving unit, configured to save the credential information of the second device.
  65. 根据权利要求61至64中任一项所述的通信设备,其中,所述发送单元还用于将所述第二设备的凭证信息发送至第四设备保存。The communication device according to any one of claims 61 to 64, wherein the sending unit is further configured to send the credential information of the second device to the fourth device for storage.
  66. 根据权利要求61至65中任一项所述的通信设备,其中,多个所述第二设备的凭证信息相同。The communication device according to any one of claims 61 to 65, wherein the credential information of a plurality of the second devices is the same.
  67. 根据权利要求61至65中任一项所述的通信设备,其中,每个所述第二设备的凭证信息不同。A communication device as claimed in any one of claims 61 to 65, wherein the credential information is different for each of the second devices.
  68. 一种通信设备,其中,包括:A communication device, comprising:
    接收单元,用于接收凭证信息;a receiving unit for receiving credential information;
    配置单元,用于将所述凭证信息配置在所述通信设备的CCC资源中;a configuration unit, configured to configure the credential information in the CCC resource of the communication device;
    注册单元,用于基于所述CCC资源向云平台进行注册。A registration unit, configured to register with the cloud platform based on the CCC resource.
  69. 一种通信设备,包括:处理器和存储器,该存储器用于存储计算机程序,所述处理器用于调用并运行所述存储器中存储的计算机程序,以使所述通信设备执行如权利要求1至14中任一项所述的方法。A communication device, comprising: a processor and a memory, the memory is used to store a computer program, the processor is used to call and run the computer program stored in the memory, so that the communication device executes as claimed in claims 1 to 14 The method of any of the above.
  70. 一种云平台,包括:处理器和存储器,该存储器用于存储计算机程序,所述处理器用于调用并运行所述存储器中存储的计算机程序,以使所述云平台执行如权利要求15至26中任一项所述的方法。A cloud platform, comprising: a processor and a memory, the memory is used for storing a computer program, the processor is used for calling and running the computer program stored in the memory, so as to make the cloud platform execute as claimed in claims 15 to 26 The method of any of the above.
  71. 一种通信设备,包括:处理器和存储器,该存储器用于存储计算机程序,所述处理器用于调用并运行所述存储器中存储的计算机程序,以使所述通信设备执行如权利要求27至34中任一项所述的方法。A communication device, comprising: a processor and a memory for storing a computer program, the processor for invoking and running the computer program stored in the memory, so that the communication device performs as claimed in claims 27 to 34 The method of any of the above.
  72. 一种芯片,包括:处理器,用于从存储器中调用并运行计算机程序,使得安装有所述芯片的设备执行如权利要求1至14中任一项所述的方法。A chip, comprising: a processor for invoking and running a computer program from a memory, so that a device on which the chip is installed executes the method according to any one of claims 1 to 14.
  73. 一种芯片,包括:处理器,用于从存储器中调用并运行计算机程序,使得安装有所述芯片的设备执行如权利要求15至26中任一项所述的方法。A chip, comprising: a processor for invoking and running a computer program from a memory, so that a device on which the chip is installed executes the method as claimed in any one of claims 15 to 26.
  74. 一种芯片,包括:处理器,用于从存储器中调用并运行计算机程序,使得安装有所述芯片的设备执行如权利要求27至34中任一项所述的方法。A chip, comprising: a processor for invoking and running a computer program from a memory, so that a device on which the chip is installed performs the method as claimed in any one of claims 27 to 34.
  75. 一种计算机可读存储介质,用于存储计算机程序,当所述计算机程序被设备运行时使得所述设备执行如权利要求1至14中任一项所述的方法。A computer-readable storage medium for storing a computer program which, when executed by a device, causes the device to perform the method of any one of claims 1 to 14.
  76. 一种计算机可读存储介质,用于存储计算机程序,当所述计算机程序被设备运行时使得所述设备执行如权利要求15至26中任一项所述的方法。A computer-readable storage medium for storing a computer program which, when executed by a device, causes the device to perform the method as claimed in any one of claims 15 to 26.
  77. 一种计算机可读存储介质,用于存储计算机程序,当所述计算机程序被设备运行时使得所述设备执行如权利要求27至34中任一项所述的方法。A computer-readable storage medium for storing a computer program which, when executed by a device, causes the device to perform the method of any one of claims 27 to 34.
  78. 一种计算机程序产品,包括计算机程序指令,该计算机程序指令使得计算机执行如权利要求1至14中任一项所述的方法。A computer program product comprising computer program instructions that cause a computer to perform the method of any one of claims 1 to 14.
  79. 一种计算机程序产品,包括计算机程序指令,该计算机程序指令使得计算机执行如权利要求15至26中任一项所述的方法。A computer program product comprising computer program instructions that cause a computer to perform the method of any of claims 15 to 26.
  80. 一种计算机程序产品,包括计算机程序指令,该计算机程序指令使得计算机执行如权利要求27至34中任一项所述的方法。A computer program product comprising computer program instructions that cause a computer to perform the method of any of claims 27 to 34.
  81. 一种计算机程序,所述计算机程序使得计算机执行如权利要求1至14中任一项所述的方法。A computer program that causes a computer to perform the method of any one of claims 1 to 14.
  82. 一种计算机程序,所述计算机程序使得计算机执行如权利要求15至26中任一项所述的方法。A computer program that causes a computer to perform the method of any one of claims 15 to 26.
  83. 一种计算机程序,所述计算机程序使得计算机执行如权利要求27至34中任一项所述的方法。A computer program that causes a computer to perform the method of any one of claims 27 to 34.
PCT/CN2020/103630 2020-07-22 2020-07-22 Device deregistration method, device registration method, communication device and cloud platform WO2022016434A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2020/103630 WO2022016434A1 (en) 2020-07-22 2020-07-22 Device deregistration method, device registration method, communication device and cloud platform
CN202080101725.3A CN115699678A (en) 2020-07-22 2020-07-22 Device logout method, device registration method, communication device and cloud platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2020/103630 WO2022016434A1 (en) 2020-07-22 2020-07-22 Device deregistration method, device registration method, communication device and cloud platform

Publications (1)

Publication Number Publication Date
WO2022016434A1 true WO2022016434A1 (en) 2022-01-27

Family

ID=79728462

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/103630 WO2022016434A1 (en) 2020-07-22 2020-07-22 Device deregistration method, device registration method, communication device and cloud platform

Country Status (2)

Country Link
CN (1) CN115699678A (en)
WO (1) WO2022016434A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115460279A (en) * 2022-08-09 2022-12-09 青岛海尔科技有限公司 Account information processing method and device, storage medium and electronic device
WO2024040390A1 (en) * 2022-08-22 2024-02-29 Oppo广东移动通信有限公司 Method and apparatus for device logout
WO2024050754A1 (en) * 2022-09-08 2024-03-14 Oppo广东移动通信有限公司 Method for starting client, first device, configuration device, and cloud platform

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102025786A (en) * 2010-12-28 2011-04-20 乐视网信息技术(北京)股份有限公司 Operation method and system for interactive control of three-network terminals
CN105391591A (en) * 2015-12-24 2016-03-09 北京奇虎科技有限公司 Security setting and management method and apparatus for terminal
CN105550597A (en) * 2015-12-24 2016-05-04 北京奇虎科技有限公司 Information scanning based terminal management method and apparatus
CN108965469A (en) * 2018-08-16 2018-12-07 北京京东尚科信息技术有限公司 Block chain network member dynamic management approach, device, equipment and storage medium
CN109299333A (en) * 2018-08-16 2019-02-01 北京京东尚科信息技术有限公司 Block chain network account book member management method, device, equipment and storage medium
US20190357129A1 (en) * 2016-11-18 2019-11-21 Lg Electronics Inc. Method for selecting network node in wireless communication system and device therefor

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102025786A (en) * 2010-12-28 2011-04-20 乐视网信息技术(北京)股份有限公司 Operation method and system for interactive control of three-network terminals
CN105391591A (en) * 2015-12-24 2016-03-09 北京奇虎科技有限公司 Security setting and management method and apparatus for terminal
CN105550597A (en) * 2015-12-24 2016-05-04 北京奇虎科技有限公司 Information scanning based terminal management method and apparatus
US20190357129A1 (en) * 2016-11-18 2019-11-21 Lg Electronics Inc. Method for selecting network node in wireless communication system and device therefor
CN108965469A (en) * 2018-08-16 2018-12-07 北京京东尚科信息技术有限公司 Block chain network member dynamic management approach, device, equipment and storage medium
CN109299333A (en) * 2018-08-16 2019-02-01 北京京东尚科信息技术有限公司 Block chain network account book member management method, device, equipment and storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115460279A (en) * 2022-08-09 2022-12-09 青岛海尔科技有限公司 Account information processing method and device, storage medium and electronic device
WO2024040390A1 (en) * 2022-08-22 2024-02-29 Oppo广东移动通信有限公司 Method and apparatus for device logout
WO2024050754A1 (en) * 2022-09-08 2024-03-14 Oppo广东移动通信有限公司 Method for starting client, first device, configuration device, and cloud platform

Also Published As

Publication number Publication date
CN115699678A (en) 2023-02-03

Similar Documents

Publication Publication Date Title
US11829774B2 (en) Machine-to-machine bootstrapping
US9980213B2 (en) Methods, apparatus and systems for wireless network selection
WO2022016434A1 (en) Device deregistration method, device registration method, communication device and cloud platform
KR102398221B1 (en) Method and apparatus to identity verification using asymmetric keys in wireless direct communication network
JP6962432B2 (en) Communication method, control plane device, method for control plane device or communication terminal, and communication terminal
WO2020029730A1 (en) Identity information processing method, device and system
CN108012264A (en) The scheme based on encrypted IMSI for 802.1x carriers hot spot and Wi-Fi call authorizations
WO2021136211A1 (en) Method and device for determining authorization result
US20230262459A1 (en) Service authorization method, communication apparatus, and system
JP2022517202A (en) Methods and equipment for security
WO2021227866A1 (en) Network authentication method and apparatus, and system
CN114071452B (en) Method and device for acquiring user subscription data
US10904763B2 (en) Network access method and device
CN116723507B (en) Terminal security method and device for edge network
WO2022095047A1 (en) Wireless communication method, terminal device, and network device
WO2016090927A1 (en) Management method and system for sharing wlan and wlan sharing registration server
KR102054280B1 (en) Method for operating emergency mobile communication system and apparatus for the same
KR20240060670A (en) Communication methods and devices
WO2021184219A1 (en) Method for connecting to cloud end, and terminal device
CN115226103A (en) Communication method and device
CN116528234B (en) Virtual machine security and credibility verification method and device
WO2024103356A1 (en) Authorization method and device
CN115004633B (en) Cloud connection method and terminal equipment
WO2022183317A1 (en) Method for obtaining slice information and terminal device
WO2022021433A1 (en) Method for device access authentication, terminal device, and cloud platform

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20946023

Country of ref document: EP

Kind code of ref document: A1