Resource Access Method and Apparatus
AssigneeHuawei Technologies Co., Ltd.
InventorKepeng Li
Life of this patent
Estimating the term…
Abstract
The present invention relates to the field of communication technologies, and particularly, to a resource access method and apparatus. In the solution, even if a client cannot directly communicate with an authorization server, the client can still initiate authorization verification to the authorization server by using a resource server. Then, the resource server returns a resource access response to the client when receiving an authorization response returned by the authorization server.
Claims6
A resource access method, applied to an Internet of Things scenario, comprising:
- sending, by a client device, a request for an unauthorized resource to a resource server;
- receiving, by the client device from the resource server, receiving address information of an authorization server;
- sending, by the client device to the authorization server according to the received address information of the authorization server, an authorization request carrying instruction information for obtaining a resource authorization;
- receiving, by the client device, an authorization information identifier of authorization information issued by the authorization server;
- sending, by the client device to a resource server, a resource access request carrying the authorization information identifier;
- and
- receiving, by the client device, a resource access response returned by the resource server, wherein the resource access response is sent after the resource server receives an authorization response sent by the authorization server.
A client device, applied to an Internet of Things scenario, comprising:
- a memory storing executable instructions;
- a processor configured to execute the executable instructions to perform operations of:
- sending a request for an unauthorized resource to a resource server;
- receiving, from the resource server, receiving address information of an authorization server;
- sending an authorization request to the authorization server according to the received address information of the authorization server, wherein the authorization request carries instruction information for obtaining a resource authorization;
- receiving an authorization information identifier of authorization information issued by the authorization server;
- sending, to a resource server, a resource access request carrying the authorization information identifier;
- and
- receiving a resource access response sent by the resource server, wherein the resource access response is sent after the resource server receives an authorization response sent by the authorization server.
A resource server, applied to an Internet of Things scenario, comprising:
- a memory storing executable instructions;
- a processor configured to execute the executable instructions to perform operations of:
- receiving a request for an unauthorized resource from a client device;
- sending receiving address information of an authorization server to the client device;
- receiving a resource access request that carries an authorization information identifier from the client device, wherein the authorization information identifier is issued by the authorization server;
- sending an authorization request to the authorization server, wherein the authorization request comprises the authorization information identifier;
- receiving an authorization response from the authorization server;
- and
- sending a resource access response to the client device according to the authorization response.
A authorization system, applied to an Internet of Things scenario, comprising:
- a resource server comprising:
- a first memory storing first executable instructions;
- and
- a first processor configured to execute the first executable instructions to perform operations of:
- receiving a request for an unauthorized resource from a client device;
- sending receiving address information of an authorization server to the client device;
- receiving a resource access request that carries an authorization information identifier from the client device, wherein the authorization information identifier is issued by the authorization server;
- sending an authorization request to the authorization server, wherein the authorization request comprises the authorization information identifier;
- receiving an authorization response from the authorization server;
- and
- sending a resource access response to the client device according to the authorization response;
- and
- an authorization server comprising:
- a second memory storing second executable instructions;
- and
- a second processor configured to execute the second executable instructions to perform operations of:
- receiving the authorization request from the resource server, wherein the authorization request carries the authorization information identifier;
- and
- sending an authorization response to the resource server according to the authorization information identifier.
Dependencies are inferred from the claim text.