CN111182030A - Network service execution method and device - Google Patents

Network service execution method and device Download PDF

Info

Publication number
CN111182030A
CN111182030A CN201911228617.8A CN201911228617A CN111182030A CN 111182030 A CN111182030 A CN 111182030A CN 201911228617 A CN201911228617 A CN 201911228617A CN 111182030 A CN111182030 A CN 111182030A
Authority
CN
China
Prior art keywords
service providing
providing platform
service
login
target network
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201911228617.8A
Other languages
Chinese (zh)
Other versions
CN111182030B (en
Inventor
王有闻
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Shuidi Technology Group Co ltd
Original Assignee
Beijing Absolute Health Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Absolute Health Ltd filed Critical Beijing Absolute Health Ltd
Priority to CN201911228617.8A priority Critical patent/CN111182030B/en
Publication of CN111182030A publication Critical patent/CN111182030A/en
Application granted granted Critical
Publication of CN111182030B publication Critical patent/CN111182030B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/50Network services
    • H04L67/51Discovery or management thereof, e.g. service location protocol [SLP] or web services
    • 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
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/083Network architectures or network communication protocols for network security for authentication of entities using passwords
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/10Network architectures or network communication protocols for network security for controlling access to devices or network resources
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 

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)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a method and a device for executing network service, wherein the method comprises the following steps: identifying a service providing platform of a target network service to be issued; searching a login authorization code matched with the service providing platform; and executing the target network service in the service providing platform according to the login authorization code. The invention solves the technical problem that one network service can only be executed on one service providing platform in the related technology, reduces the development cost and the development difficulty of the network service and improves the adaptation success rate of the network service.

Description

Network service execution method and device
Technical Field
The invention relates to the field of computers, in particular to a method and a device for executing network services.
Background
In the related technology, oauth2.0 is mostly adopted for webpage authorization on the network at present, but the authorization is slightly different under different platforms, and developers need to write corresponding authorization login codes respectively aiming at different platforms (such as authorization login of a wechat public number and authorization login of a Xinlang microblog) so as to release projects on different platforms.
If the project is to be published to a plurality of platforms, login authorization codes of the platforms need to be written out respectively, project contents and codes of the platforms are developed, and workload of developers is increased.
In view of the above problems in the related art, no effective solution has been found at present.
Disclosure of Invention
The embodiment of the invention provides a method and a device for executing a network service, and aims to solve the technical problem that one network service can only be executed on one service providing platform in the related art.
According to an embodiment of the present invention, there is provided a method for executing a network service, including: identifying a service providing platform of a target network service to be issued; searching a login authorization code matched with the service providing platform; and executing the target network service in the service providing platform according to the login authorization code.
Optionally, the searching for the login authorization code matching with the service providing platform includes one of: searching a login authorization code matched with the service providing platform in a preset script library; and searching a login authorization code matched with the service providing platform in a script file of the target network service, wherein the script file comprises login authorization codes of a plurality of platforms.
Optionally, searching for a login authorization code matched with the service providing platform in a preset script library includes: and searching a login authorization code matched with the service providing platform in a JavaScript tool library.
Optionally, executing the target network service in the service providing platform according to the login authorization code includes: triggering the target network service to initiate login authorization operation to the service providing platform according to the login authorization code; executing the login authorization operation to log the target network service into the service providing platform; executing the target web service in the service providing platform after the target web service logs in to the service providing platform.
Optionally, the executing the login authorization operation includes: sending a login authorization request to a server of the service providing platform; receiving a temporary token fed back by the server based on the login authorization request; logging the target network service into the service providing platform through the temporary token.
Optionally, the logging the target network service to the service providing platform through the temporary token includes: injecting a login password into a browser component of the service providing platform, wherein the temporary token carries the login password; and after the login password passes the verification, loading the target network service through the browser component.
Optionally, after the target web service is loaded by the browser component, the method further includes: and displaying user information in a user interface of the target network service, wherein the user information corresponds to a user account in the login password.
Optionally, the executing the login authorization operation includes: acquiring an authentication credential of a login account of the service providing platform; initiating an authorization request for logging the login account into a target network service to an authentication server by using the authentication credential, wherein the service providing platform and the target network service share the authentication server; after the authentication credential passes the verification, the target network service is logged in the service providing platform through the authentication credential.
Optionally, the service providing platform for identifying the target network service to be published includes at least one of: identifying a service providing platform to be issued of a target webpage link; and identifying a service providing platform to be issued by the target application program.
Optionally, identifying a service providing platform to be published for the target network service includes: reading a platform identification in a front-end code of an embedded platform of a target network service; and identifying the service providing platform according to the platform identification.
According to another embodiment of the present invention, there is provided an apparatus for executing a web service, including: the identification module is used for identifying a service providing platform of the target network service to be issued; the searching module is used for searching the login authorization code matched with the service providing platform; and the execution module is used for executing the target network service in the service providing platform according to the login authorization code.
Optionally, the search module includes one of: the first searching unit is used for searching a login authorization code matched with the service providing platform in a preset script library; and the second searching unit is used for searching the login authorization codes matched with the service providing platforms in the script file of the target network service, wherein the script file comprises the login authorization codes of a plurality of platforms.
Optionally, the first searching unit includes: and the searching subunit is used for searching the login authorization code matched with the service providing platform in the JavaScript tool library.
Optionally, the executing module includes: the triggering unit is used for triggering the target network service to initiate login authorization operation to the service providing platform according to the login authorization code; a first execution unit, configured to execute the login authorization operation to log the target network service into the service providing platform; a second execution unit, configured to execute the target network service in the service providing platform after the target network service logs in to the service providing platform.
Optionally, the first execution unit includes: a sending subunit, configured to send a login authorization request to a server of the service providing platform; a receiving subunit, configured to receive a temporary token fed back by the server based on the login authorization request; a first login subunit, configured to log in the target network service to the service providing platform through the temporary token.
Optionally, the first login subunit is further configured to: injecting a login password into a browser component of the service providing platform, wherein the temporary token carries the login password; and after the login password passes the verification, loading the target network service through the browser component.
Optionally, the first login subunit is further configured to: after the target network service is loaded through the browser component, displaying user information in a user interface of the target network service, wherein the user information corresponds to a user account in the login password.
Optionally, the first execution unit includes: the acquisition subunit is used for acquiring the authentication credential of the login account of the service providing platform; an initiating subunit, configured to initiate an authorization request for logging in the login account to a target network service to an authentication server using the authentication credential, where the service providing platform and the target network service share the authentication server; and the second login subunit is used for logging the target network service to the service providing platform through the authentication credential after the authentication credential passes the verification.
Optionally, the identification module includes at least one of: the first identification unit is used for identifying a service providing platform to be issued by a target webpage link; and the second identification unit is used for identifying the service providing platform to be issued by the target application program.
Optionally, the identification module includes: the reading unit is used for reading the platform identification in the front-end code of the embedded platform of the target network service; and the third identification unit is used for identifying the service providing platform according to the platform identification.
According to a further embodiment of the present invention, there is also provided a storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the above method embodiments when executed.
According to yet another embodiment of the present invention, there is also provided an electronic device, including a memory in which a computer program is stored and a processor configured to execute the computer program to perform the steps in any of the above method embodiments.
According to the scheme of the embodiment, the service providing platform of the target network service to be released is identified, the login authorization code matched with the service providing platform is searched, the target network service is executed in the service providing platform according to the login authorization code, the target network service can perform corresponding authorization login processing according to different platforms, the same network service can be released to a plurality of service providing platforms, the technical problem that one network service can only be executed on one service providing platform in the related technology is solved, the development cost and the development difficulty of the network service are reduced, and the adaptation success rate of the network service is improved.
The technical solution of the present invention is further described in detail by the accompanying drawings and embodiments.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description, serve to explain the principles of the invention.
The invention will be more clearly understood from the following detailed description, taken with reference to the accompanying drawings, in which:
fig. 1 is a block diagram of a hardware configuration of a mobile terminal for executing a network service according to an embodiment of the present invention;
FIG. 2 is a flow chart of a method of execution of a web service according to an embodiment of the invention;
FIG. 3 is a diagram illustrating a scenario in which web page linking is performed in social media software according to an embodiment of the present invention;
FIG. 4 is a flow diagram of an embodiment of the present invention for performing an advertisement service in WeChat;
fig. 5 is a block diagram of an apparatus for executing a web service according to an embodiment of the present invention.
Detailed Description
Various exemplary embodiments of the present invention will now be described in detail with reference to the accompanying drawings. It should be noted that: the relative arrangement of the components and steps, the numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present invention unless specifically stated otherwise.
Meanwhile, it should be understood that the sizes of the respective portions shown in the drawings are not drawn in an actual proportional relationship for the convenience of description.
The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the invention, its application, or uses.
Techniques, methods, and apparatus known to those of ordinary skill in the relevant art may not be discussed in detail but are intended to be part of the specification where appropriate.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, further discussion thereof is not required in subsequent figures.
Embodiments of the invention are operational with numerous other general purpose or special purpose computing system environments or configurations. Examples of well known computing systems, environments, and/or configurations that may be suitable for use with the computer system/server include, but are not limited to: personal computer systems, server computer systems, thin clients, thick clients, hand-held or laptop devices, microprocessor-based systems, set top boxes, programmable consumer electronics, network pcs, minicomputer systems, mainframe computer systems, distributed cloud computing environments that include any of the above systems, and the like.
The computer system/server may be described in the general context of computer system-executable instructions, such as program modules, being executed by a computer system. Generally, program modules may include routines, programs, objects, components, logic, data structures, etc. that perform particular tasks or implement particular abstract data types. The computer system/server may be practiced in distributed cloud computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed cloud computing environment, program modules may be located in both local and remote computer system storage media including memory storage devices.
The method provided by the first embodiment of the present application may be executed in a mobile terminal, a computer, a server, or a similar computing device. Taking the mobile terminal as an example, fig. 1 is a block diagram of a hardware structure of a mobile terminal for executing a network service according to an embodiment of the present invention. As shown in fig. 1, the mobile terminal 10 may include one or more (only one shown in fig. 1) processors 102 (the processor 102 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, and optionally may also include a transmission device 106 for communication functions and an input-output device 108. It will be understood by those skilled in the art that the structure shown in fig. 1 is only an illustration, and does not limit the structure of the mobile terminal. For example, the mobile terminal 10 may also include more or fewer components than shown in FIG. 1, or have a different configuration than shown in FIG. 1.
The memory 104 may be used to store a mobile terminal program, for example, a software program and a module of application software, such as a mobile terminal program corresponding to the execution method of the network service in the embodiment of the present invention, and the processor 102 executes various functional applications and data processing by running the mobile terminal program stored in the memory 104, so as to implement the method described above. The memory 104 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include memory located remotely from the processor 102, which may be connected to the mobile terminal 10 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 106 is used for receiving or transmitting data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the mobile terminal 10. In one example, the transmission device 106 includes a Network adapter (NIC), which can be connected to other Network devices through a base station so as to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
In this embodiment, an execution method of a network service is provided, and fig. 2 is a flowchart of an execution method of a network service according to an embodiment of the present invention, as shown in fig. 2, the flowchart includes the following steps:
step S202, identifying a service providing platform of a target network service to be released;
in this embodiment, the target web service includes a third-party service that can be executed in a web browser or an application, such as a web page jump link, a program jump link, and the like, and the target web service is embedded in a service providing platform, which is a host platform of the target web service.
Step S204, searching a login authorization code matched with the service providing platform;
and step S206, executing the target network service in the service providing platform according to the login authorization code.
After the service providing platform allows the target network service to log in, the target network service calls a service interface of the service providing platform, and uses the service interface to execute corresponding tasks, such as calling a browser component to display a webpage, calling a video component to play a video, and the like.
Through the steps, the service providing platform of the target network service to be released is identified, then the login authorization code matched with the service providing platform is searched, finally the target network service is executed in the service providing platform according to the login authorization code, the target network service can perform corresponding authorization login processing according to different platforms, the same network service can be released to a plurality of service providing platforms, the technical problem that one network service can only be executed on one service providing platform in the related technology is solved, the development cost and the development difficulty of the network service are reduced, and the adaptation success rate of the network service is improved.
The embodiment can be applied to a plurality of scenes, such as information delivery, in-station skip and the like, and in different scenes, the target network service and the service providing platform are different. The service providing platform for identifying the target network service to be published may be, but is not limited to: identifying a service providing platform to be issued of a target webpage link; and identifying a service providing platform to be issued by the target application program.
In an embodiment of this embodiment, the search for the login authorization code matching with the service providing platform may be, but is not limited to: searching a login authorization code matched with the service providing platform in a preset script library; and searching a login authorization code matched with the service providing platform in a script file of the target network service, wherein the script file comprises the login authorization codes of a plurality of platforms. In one example, the preset script library is a JavaScript tool library, and searching for a login authorization code matched with the service providing platform in the preset script library includes: and searching a login authorization code matched with the service providing platform in the JavaScript tool library.
By integrating login authorization codes of a plurality of platforms, the target network service can be automatically adapted to a certain platform when being executed and released on the platform, and the project development efficiency and the maintenance efficiency are improved when the target network service is released on the plurality of platforms.
In one embodiment of this embodiment, executing the target network service in the service providing platform according to the login authorization code includes:
s11, triggering the target network service to initiate login authorization operation to the service providing platform according to the login authorization code;
s12, executing login authorization operation to make the target network service login to the service providing platform;
different service providing platforms provide different login authorization interfaces, and in addition, the login authorization processes of the service providing platforms may be different for different target network services. Here, an example is given:
in one example, the target network service is a third-party application of the service providing platform, such as panning and jittering, and respective server data are independent from each other, and login authorization can be performed by means of third-party login. Performing login authorization operations includes:
s1, sending a login authorization request to a server of the service providing platform;
s2, receiving a temporary token (token) fed back by the server based on the login authorization request;
the temporary token of the embodiment may further set an authority range and a time range for indicating a legal event and a legal time that the target network service may execute on the service providing platform;
and S3, logging the target network service to the service providing platform through the temporary token.
In one implementation of this embodiment, logging in the target network service to the service providing platform by the temporary token includes: injecting a login password into a browser component of the service providing platform, wherein the temporary token carries the login password; and after the login password passes the verification, loading the target network service in the browser component. In other embodiments, the target network service does not need a login password, and the target network service can log in to the service providing platform with the universal token.
Optionally, after the target web service is loaded in the browser component, the method further includes: and displaying user information in a user interface of the target network service, wherein the user information corresponds to the user account in the login password.
In addition to using the browser component built in the service providing platform, the present embodiment may also use a third-party browser or a third-party application.
The user information in this embodiment is information of a current user account on a service providing platform (a user logs in the service providing platform by using the user account), such as a user head portrait, a nickname, personal data, and the like.
In one example, the Tao is placed with an advertisement link on the tremble, the user clicks the Tao advertisement link on the tremble, and when the Tao advertisement page is logged on the tremble, the head portrait, the nickname and the like of the user corresponding to the tremble account of the user are requested and displayed on the Tao advertisement page. In addition, the user account of the user on the service providing platform can be used for correlating the login account of the user on the target network service, for example, the user account of panning and dithering is bound with a mobile phone number (or other user identity identifiers), after the information of the account of dithering is obtained, the panning account corresponding to the mobile phone number is searched in a panning server through the mobile phone number, the information (a panning nickname, user data and the like) corresponding to the panning account is displayed in a panning advertisement page, and multiple times of user interaction and user authorization permission can be executed in the process of skipping and login, so that the three-party login and the shared user information are guaranteed to be in a legal range.
Fig. 3 is a schematic view of a scenario in which a web page link is executed in social media software according to an embodiment of the present invention, where a service providing platform is the social media software (WeChat), a target network service is the web page link, and after a user clicks a link address of the web page link in the social media, and the social media is authorized to log in, a web page interface of the web page link is displayed in the social media, and meanwhile, the web page shares information such as a user avatar of the social media.
In an implementation scenario of this embodiment, the service providing platform is a WeChat, the target network service is an advertisement service (shown in a user interface in a form of a link) delivered by a certain merchant on the WeChat, fig. 4 is a flowchart of executing the advertisement service in the WeChat according to the embodiment of the present invention, where the flowchart includes:
s41, after the advertisement service is put into the WeChat, the user clicks the advertisement link in the WeChat interface (such as friend circle, public number, etc.);
s42, the advertisement service identifies the current platform as the WeChat in the front-end code of the WeChat;
s43, the advertisement service searches the login authorization code matched with the WeChat in the JavaScript tool library;
s44, the advertisement service uses the login authorization code to initiate login authorization operation to the WeChat, and after the login authentication server of the WeChat authorizes the login of the advertisement service, the advertisement service logs in the embedded browser of the WeChat;
s45, the advertisement service is loaded in the embedded browser of the WeChat, the advertisement page is displayed, and the account number, the head portrait information and the like of the WeChat can be shared in the page.
In another example, the target web service and the service providing platform share one login authentication system, such as sharing session, cookie, and authorization login can be performed by means of single login. Performing login authorization operations includes:
s1, obtaining the certification proof of the login account of the service providing platform;
s2, using the authentication credential to initiate an authorization request for logging in the target network service to the authentication server by a login account, wherein the service providing platform and the target network service share the authentication server;
and S3, after the authentication certificate passes the verification, logging the target network service to the service providing platform through the authentication certificate.
S13, after the target web service logs into the service providing platform, the target web service is executed in the service providing platform.
In an embodiment of this embodiment, identifying a service providing platform to be published for a target network service includes: reading a platform identification in a front-end code of an embedded platform of a target network service; and identifying the service providing platform according to the platform identification. The platform identifier of the embodiment is an ID unique to the whole network, and can identify which service providing platform is, such as Tencent WeChat, Xinunres microblog, today's head date, and the like.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
In this embodiment, an execution device of a network service is further provided, and the device is used to implement the foregoing embodiments and preferred embodiments, and details of which have been already described are omitted. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 5 is a block diagram of an apparatus for executing a web service according to an embodiment of the present invention, as shown in fig. 5, the apparatus including: an identification module 50, a lookup module 52, an execution module 54, wherein,
the identification module 50 is used for identifying a service providing platform to be issued by the target network service;
in this embodiment, the target web service includes a third-party service that can be executed in a web browser or an application, such as a web page jump link, a program jump link, and the like, and the target web service is embedded in a service providing platform, which is a host platform of the target web service.
A searching module 52, configured to search for a login authorization code matching the service providing platform;
and the execution module 54 is configured to execute the target network service in the service providing platform according to the login authorization code.
After the service providing platform allows the target network service to log in, the target network service calls a service interface of the service providing platform, and uses the service interface to execute corresponding tasks, such as calling a browser component to display a webpage, calling a video component to play a video, and the like.
The embodiment can be applied to a plurality of scenes, such as information delivery, in-station skip and the like, and in different scenes, the target network service and the service providing platform are different. Optionally, the search module includes one of: the first searching unit is used for searching a login authorization code matched with the service providing platform in a preset script library; and the second searching unit is used for searching the login authorization codes matched with the service providing platforms in the script file of the target network service, wherein the script file comprises the login authorization codes of a plurality of platforms.
In one example, the preset script library is a JavaScript tool library, and searching for the login authorization code matched with the service providing platform in the preset script library includes: and searching a login authorization code matched with the service providing platform in a JavaScript tool library.
Optionally, the executing module includes: the triggering unit is used for triggering the target network service to initiate login authorization operation to the service providing platform according to the login authorization code; a first execution unit, configured to execute the login authorization operation to log the target network service into the service providing platform; a second execution unit, configured to execute the target network service in the service providing platform after the target network service logs in to the service providing platform.
Different service providing platforms provide different login authorization interfaces, and in addition, the login authorization processes of the service providing platforms may be different for different target network services. Here, an example is given:
in one example, the target network service is a third-party application of the service providing platform, such as panning and jittering, and respective server data are independent from each other, and login authorization can be performed by means of third-party login. The first execution unit includes: a sending subunit, configured to send a login authorization request to a server of the service providing platform; a receiving subunit, configured to receive a temporary token fed back by the server based on the login authorization request; a first login subunit, configured to log in the target network service to the service providing platform through the temporary token.
The temporary token of this embodiment may further set an authority range and a time range for indicating a legal event and a legal time that the target network service may execute on the service providing platform.
Optionally, the first login subunit is further configured to: injecting a login password into a browser component of the service providing platform, wherein the temporary token carries the login password; and after the login password passes the verification, loading the target network service through the browser component. In other embodiments, the target network service does not need a login password, and the target network service can log in to the service providing platform with the universal token.
In addition to using the browser component built in the service providing platform, the present embodiment may also use a third-party browser or a third-party application.
Optionally, the first login subunit is further configured to: after the target network service is loaded through the browser component, displaying user information in a user interface of the target network service, wherein the user information corresponds to a user account in the login password.
The user information in this embodiment is information of a current user account on a service providing platform (a user logs in the service providing platform by using the user account), such as a user head portrait, a nickname, personal data, and the like.
In one example, the Tao is placed with an advertisement link on the tremble, the user clicks the Tao advertisement link on the tremble, and when the Tao advertisement page is logged on the tremble, the head portrait, the nickname and the like of the user corresponding to the tremble account of the user are requested and displayed on the Tao advertisement page. In addition, the user account of the user on the service providing platform can be used for correlating the login account of the user on the target network service, for example, the user account of panning and dithering is bound with a mobile phone number (or other user identity identifiers), after the information of the account of dithering is obtained, the panning account corresponding to the mobile phone number is searched in a panning server through the mobile phone number, the information (a panning nickname, user data and the like) corresponding to the panning account is displayed in a panning advertisement page, and multiple times of user interaction and user authorization permission can be executed in the process of skipping and login, so that the three-party login and the shared user information are guaranteed to be in a legal range.
In another example, the target web service and the service providing platform share one login authentication system, such as sharing session, cookie, and authorization login can be performed by means of single login. The first execution unit includes: the acquisition subunit is used for acquiring the authentication credential of the login account of the service providing platform; an initiating subunit, configured to initiate an authorization request for logging in the login account to a target network service to an authentication server using the authentication credential, where the service providing platform and the target network service share the authentication server; and the second login subunit is used for logging the target network service to the service providing platform through the authentication credential after the authentication credential passes the verification.
Optionally, the identification module includes at least one of: the first identification unit is used for identifying a service providing platform to be issued by a target webpage link; and the second identification unit is used for identifying the service providing platform to be issued by the target application program.
Optionally, the identification module includes: the reading unit is used for reading the platform identification in the front-end code of the embedded platform of the target network service; and the third identification unit is used for identifying the service providing platform according to the platform identification.
It should be noted that, the above modules may be implemented by software or hardware, and for the latter, the following may be implemented, but not limited to: the modules are all positioned in the same processor; alternatively, the modules are respectively located in different processors in any combination.
Embodiments of the present invention also provide a storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the above method embodiments when executed.
Alternatively, in the present embodiment, the storage medium may be configured to store a computer program for executing the steps of:
s1, identifying a service providing platform of the target network service to be released;
s2, searching a login authorization code matched with the service providing platform;
s3, executing the target network service in the service providing platform according to the login authorization code.
Optionally, in this embodiment, the storage medium may include, but is not limited to: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk, which can store computer programs.
Embodiments of the present invention also provide an electronic device comprising a memory having a computer program stored therein and a processor arranged to run the computer program to perform the steps of any of the above method embodiments.
Optionally, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program:
s1, identifying a service providing platform of the target network service to be released;
s2, searching a login authorization code matched with the service providing platform;
s3, executing the target network service in the service providing platform according to the login authorization code.
Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation manners, and this embodiment is not described herein again.
In the present specification, the embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same or similar parts in the embodiments are referred to each other. For the system embodiment, since it basically corresponds to the method embodiment, the description is relatively simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The method and system of the present invention may be implemented in a number of ways. For example, the methods and systems of the present invention may be implemented in software, hardware, firmware, or any combination of software, hardware, and firmware. The above-described order for the steps of the method is for illustrative purposes only, and the steps of the method of the present invention are not limited to the order specifically described above unless specifically indicated otherwise. Furthermore, in some embodiments, the present invention may also be embodied as a program recorded in a recording medium, the program including machine-readable instructions for implementing a method according to the present invention. Thus, the present invention also covers a recording medium storing a program for executing the method according to the present invention.
The description of the present invention has been presented for purposes of illustration and description, and is not intended to be exhaustive or limited to the invention in the form disclosed. Many modifications and variations will be apparent to practitioners skilled in this art. The embodiment was chosen and described in order to best explain the principles of the invention and the practical application, and to enable others of ordinary skill in the art to understand the invention for various embodiments with various modifications as are suited to the particular use contemplated.

Claims (20)

1. A method for executing a web service, comprising:
identifying a service providing platform of a target network service to be issued;
searching a login authorization code matched with the service providing platform;
and executing the target network service in the service providing platform according to the login authorization code.
2. The method of claim 1, wherein finding a login authorization code that matches the service provisioning platform comprises one of:
searching a login authorization code matched with the service providing platform in a preset script library;
and searching a login authorization code matched with the service providing platform in a script file of the target network service, wherein the script file comprises login authorization codes of a plurality of platforms.
3. The method of claim 2, wherein searching for a login authorization code matching the service providing platform in a pre-defined script library comprises:
and searching a login authorization code matched with the service providing platform in a JavaScript tool library.
4. The method of claim 1, wherein executing the target network service in the service providing platform according to the login authorization code comprises:
triggering the target network service to initiate login authorization operation to the service providing platform according to the login authorization code;
executing the login authorization operation to log the target network service into the service providing platform;
executing the target web service in the service providing platform after the target web service logs in to the service providing platform.
5. The method of claim 4, wherein performing the login authorization operation comprises:
sending a login authorization request to a server of the service providing platform;
receiving a temporary token fed back by the server based on the login authorization request;
logging the target network service into the service providing platform through the temporary token.
6. The method of claim 5, wherein logging the target network service to the service providing platform via the temporary token comprises:
injecting a login password into a browser component of the service providing platform, wherein the temporary token carries the login password;
and after the login password passes the verification, loading the target network service through the browser component.
7. The method of claim 6, wherein after loading the target web service by the browser component, the method further comprises:
and displaying user information in a user interface of the target network service, wherein the user information corresponds to a user account in the login password.
8. The method of claim 4, wherein performing the login authorization operation comprises:
acquiring an authentication credential of a login account of the service providing platform;
initiating an authorization request for logging the login account into a target network service to an authentication server by using the authentication credential, wherein the service providing platform and the target network service share the authentication server;
after the authentication credential passes the verification, the target network service is logged in the service providing platform through the authentication credential.
9. The method of claim 1, wherein identifying the service providing platform to which the target web service is to be published comprises at least one of:
identifying a service providing platform to be issued of a target webpage link;
and identifying a service providing platform to be issued by the target application program.
10. The method of claim 1, wherein identifying the service providing platform to which the target web service is to be published comprises:
reading a platform identification in a front-end code of an embedded platform of a target network service;
and identifying the service providing platform according to the platform identification.
11. An apparatus for executing a web service, comprising:
the identification module is used for identifying a service providing platform of the target network service to be issued;
the searching module is used for searching the login authorization code matched with the service providing platform;
and the execution module is used for executing the target network service in the service providing platform according to the login authorization code.
12. The apparatus of claim 11, wherein the lookup module comprises one of:
the first searching unit is used for searching a login authorization code matched with the service providing platform in a preset script library;
and the second searching unit is used for searching the login authorization codes matched with the service providing platforms in the script file of the target network service, wherein the script file comprises the login authorization codes of a plurality of platforms.
13. The apparatus of claim 12, wherein the first lookup unit comprises:
and the searching subunit is used for searching the login authorization code matched with the service providing platform in the JavaScript tool library.
14. The apparatus of claim 11, wherein the means for performing comprises:
the triggering unit is used for triggering the target network service to initiate login authorization operation to the service providing platform according to the login authorization code;
a first execution unit, configured to execute the login authorization operation to log the target network service into the service providing platform;
a second execution unit, configured to execute the target network service in the service providing platform after the target network service logs in to the service providing platform.
15. The apparatus of claim 14, wherein the first execution unit comprises:
a sending subunit, configured to send a login authorization request to a server of the service providing platform;
a receiving subunit, configured to receive a temporary token fed back by the server based on the login authorization request;
a first login subunit, configured to log in the target network service to the service providing platform through the temporary token.
16. The apparatus of claim 15, wherein the first logging subunit is further configured to:
injecting a login password into a browser component of the service providing platform, wherein the temporary token carries the login password; and after the login password passes the verification, loading the target network service through the browser component.
17. The apparatus of claim 16, wherein the first logging subunit is further configured to:
after the target network service is loaded through the browser component, displaying user information in a user interface of the target network service, wherein the user information corresponds to a user account in the login password.
18. The apparatus of claim 14, wherein the first execution unit comprises:
the acquisition subunit is used for acquiring the authentication credential of the login account of the service providing platform;
an initiating subunit, configured to initiate an authorization request for logging in the login account to a target network service to an authentication server using the authentication credential, where the service providing platform and the target network service share the authentication server;
and the second login subunit is used for logging the target network service to the service providing platform through the authentication credential after the authentication credential passes the verification.
19. The apparatus of claim 11, wherein the identification module comprises at least one of:
the first identification unit is used for identifying a service providing platform to be issued by a target webpage link;
and the second identification unit is used for identifying the service providing platform to be issued by the target application program.
20. The apparatus of claim 11, wherein the identification module comprises:
the reading unit is used for reading the platform identification in the front-end code of the embedded platform of the target network service;
and the third identification unit is used for identifying the service providing platform according to the platform identification.
CN201911228617.8A 2019-12-04 2019-12-04 Network service execution method and device Active CN111182030B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911228617.8A CN111182030B (en) 2019-12-04 2019-12-04 Network service execution method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911228617.8A CN111182030B (en) 2019-12-04 2019-12-04 Network service execution method and device

Publications (2)

Publication Number Publication Date
CN111182030A true CN111182030A (en) 2020-05-19
CN111182030B CN111182030B (en) 2022-12-09

Family

ID=70648850

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911228617.8A Active CN111182030B (en) 2019-12-04 2019-12-04 Network service execution method and device

Country Status (1)

Country Link
CN (1) CN111182030B (en)

Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120102573A1 (en) * 2010-04-21 2012-04-26 Fox Entertainment Group, Inc. Digital delivery system and user interface for enabling the digital delivery of media content
CN102843311A (en) * 2012-07-30 2012-12-26 北京网蜜在线网络有限公司 Information fusion method and information fusion server based on social networking services (SNS)
CN103209116A (en) * 2013-04-13 2013-07-17 新浪网技术(中国)有限公司 Multi-platform information issuing method and system
WO2013166178A2 (en) * 2012-05-02 2013-11-07 One Mainstream, Inc. System and method for multimedia content publishing on multiple platforms
CN103581256A (en) * 2012-08-02 2014-02-12 阿里巴巴集团控股有限公司 Method, device and system for publishing information to website
CN103856446A (en) * 2012-11-30 2014-06-11 腾讯科技(深圳)有限公司 Login method and device, and open platform system
CN104320423A (en) * 2014-11-19 2015-01-28 重庆邮电大学 Single sign-on light weight implementation method based on Cookie
CN104580074A (en) * 2013-10-14 2015-04-29 阿里巴巴集团控股有限公司 Logging method of client end application and corresponding server of logging method
CN104702650A (en) * 2013-12-10 2015-06-10 腾讯科技(北京)有限公司 Method and device for acquiring application pages
WO2016101043A1 (en) * 2014-12-24 2016-06-30 Scatter Scatter Pty Ltd Performing a social media action
US20170250988A1 (en) * 2016-02-25 2017-08-31 Red Hat, Inc. Access guards for multi-tenant logging
CN107277015A (en) * 2017-06-21 2017-10-20 北京易教阳光教育科技有限公司 Unifying user authentication management method, system, storage medium and server
CN108600203A (en) * 2018-04-11 2018-09-28 四川长虹电器股份有限公司 Secure Single Sign-on method based on Cookie and its unified certification service system
CN109003121A (en) * 2018-06-27 2018-12-14 阿里巴巴集团控股有限公司 Establishment of item method and apparatus, shared platform
CN109815656A (en) * 2018-12-11 2019-05-28 平安科技(深圳)有限公司 Login authentication method, device, equipment and computer readable storage medium
CN110351269A (en) * 2019-07-05 2019-10-18 苏州思必驰信息科技有限公司 The method for logging in open platform by third-party server

Patent Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120102573A1 (en) * 2010-04-21 2012-04-26 Fox Entertainment Group, Inc. Digital delivery system and user interface for enabling the digital delivery of media content
WO2013166178A2 (en) * 2012-05-02 2013-11-07 One Mainstream, Inc. System and method for multimedia content publishing on multiple platforms
CN102843311A (en) * 2012-07-30 2012-12-26 北京网蜜在线网络有限公司 Information fusion method and information fusion server based on social networking services (SNS)
CN103581256A (en) * 2012-08-02 2014-02-12 阿里巴巴集团控股有限公司 Method, device and system for publishing information to website
CN103856446A (en) * 2012-11-30 2014-06-11 腾讯科技(深圳)有限公司 Login method and device, and open platform system
CN103209116A (en) * 2013-04-13 2013-07-17 新浪网技术(中国)有限公司 Multi-platform information issuing method and system
CN104580074A (en) * 2013-10-14 2015-04-29 阿里巴巴集团控股有限公司 Logging method of client end application and corresponding server of logging method
CN104702650A (en) * 2013-12-10 2015-06-10 腾讯科技(北京)有限公司 Method and device for acquiring application pages
CN104320423A (en) * 2014-11-19 2015-01-28 重庆邮电大学 Single sign-on light weight implementation method based on Cookie
WO2016101043A1 (en) * 2014-12-24 2016-06-30 Scatter Scatter Pty Ltd Performing a social media action
US20170250988A1 (en) * 2016-02-25 2017-08-31 Red Hat, Inc. Access guards for multi-tenant logging
CN107277015A (en) * 2017-06-21 2017-10-20 北京易教阳光教育科技有限公司 Unifying user authentication management method, system, storage medium and server
CN108600203A (en) * 2018-04-11 2018-09-28 四川长虹电器股份有限公司 Secure Single Sign-on method based on Cookie and its unified certification service system
CN109003121A (en) * 2018-06-27 2018-12-14 阿里巴巴集团控股有限公司 Establishment of item method and apparatus, shared platform
CN109815656A (en) * 2018-12-11 2019-05-28 平安科技(深圳)有限公司 Login authentication method, device, equipment and computer readable storage medium
CN110351269A (en) * 2019-07-05 2019-10-18 苏州思必驰信息科技有限公司 The method for logging in open platform by third-party server

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
马豪豪: ""抖音"短视频嵌入新闻生产的可行性探究", 《新闻研究导刊》 *

Also Published As

Publication number Publication date
CN111182030B (en) 2022-12-09

Similar Documents

Publication Publication Date Title
US10462118B2 (en) Systems and methods for login and authorization
US10554655B2 (en) Method and system for verifying an account operation
US10063547B2 (en) Authorization authentication method and apparatus
CN107566323B (en) Application system login method and device
CN107241336B (en) Identity verification method and device
US20130332585A1 (en) Method and system for downloading content
CN108718337B (en) Website account login, verification and verification information processing method, device and system
CN107733883B (en) Method and device for detecting account numbers registered in batches
CN106254319B (en) Light application login control method and device
CN107438054B (en) Method and system for realizing menu information control based on public platform
CN112073289A (en) Instant messaging control method and device
CN108809969B (en) Authentication method, system and device
CN105554136B (en) Backup Data restoring method, apparatus and system
CN109558710B (en) User login method, device, system and storage medium
CN111182030B (en) Network service execution method and device
CN106101125A (en) Authentication processing method, Apparatus and system
US8959604B2 (en) System and method of verifying a number of a mobile terminal
CN115334154A (en) Page access method and device, computer equipment and storage medium
CN114461912A (en) Information processing method and device, electronic equipment and storage medium
US10742802B2 (en) Methods and devices for verifying a communication number
CN113190812A (en) Login method, system, electronic equipment and storage medium
CN110807181A (en) Method, device and system for logging in and verifying database in enterprise
CN110134530A (en) A kind of processing method and processing device of session content
CN114828000B (en) Login method, login device and computer readable storage medium
US8578492B2 (en) Application revocation

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: 100102 201 / F, block C, 2 lizezhong 2nd Road, Chaoyang District, Beijing

Patentee after: Beijing Shuidi Technology Group Co.,Ltd.

Address before: Room 4103, room 101, floor 1, building 2, No. 208, Lize Zhongyuan, Chaoyang District, Beijing 100102

Patentee before: Beijing Health Home Technology Co.,Ltd.