Function calling authentication and function calling method and device and authority information building method

A function and permission technology, applied in the computer field, can solve problems such as information security and adverse effects on operating performance, and achieve the effect of improving information security and operating performance

Active Publication Date: 2018-12-07
ALIBABA GRP HLDG LTD
View PDF4 Cites 10 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] However, due to the openness of JsBridge technology, as long as the protocol format agreed by Native and JS is followed, H5 can call any JsBridge function provided, which may cause adverse effects on information security and operating performance.
This problem is particularly prominent in H5APP developed based on container APP

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Function calling authentication and function calling method and device and authority information building method
  • Function calling authentication and function calling method and device and authority information building method
  • Function calling authentication and function calling method and device and authority information building method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0086] Such as figure 2As shown, the embodiment of this application provides a method for authenticating calls to JsBridge functions, which is applicable to Native SDK, including:

[0087] S101: Monitor the function call request sent by the APP; wherein, the function call request includes the information of the JsBridge function requested by the APP, and the function call request is used to call the JsBridge function corresponding to the information of the JsBridge function;

[0088] S102: Determine whether the above function call request is detected; if not detected, return to step S101 to continue monitoring; if detected, execute step S103;

[0089] S103: After monitoring the function call request, determine whether the APP has permission to call the JsBridge function corresponding to the information of the JsBridge function according to the function call request and the corresponding permission information of the APP; wherein, the permission information corresponding to th...

Embodiment 2

[0113] The embodiment of the present application also provides a method for calling the JsBridge function, including:

[0114] The APP sends a function call request; wherein, the function call request includes the information of the JsBridge function requested by the APP, and the function call request is used to call the JsBridge function corresponding to the information of the JsBridge function;

[0115] When the APP is allowed to call the JsBridge function according to the function call request and the permission information corresponding to the APP, the APP calls the JsBridge function corresponding to the information of the JsBridge function; wherein, the permission information corresponding to the APP stores the information of the JsBridge function authorized to be called by the APP .

[0116] This embodiment may be applicable to a request calling process when an APP (for example, H5APP and Hybrid APP) needs to call the JsBridge function during operation. This embodiment ...

Embodiment 3

[0118] The embodiment of the present application also provides a method for establishing authority information, see Figure 6 shown, including:

[0119] S201: After receiving the request for registering the APP, the authority information database generates APP domain name information and APP identifier information;

[0120] S202: Receive a request for applying for a JsBridge function authority; wherein, the request for applying for a JsBridge function authority includes information about the JsBridge function that is requested to be authorized to be called;

[0121] S203: Establish authority information corresponding to the APP domain name information and the APP identifier information, and store the information of the JsBridge function authorized by the APP in the authority information; where the authority information is used to monitor the function call request sent by the APP Finally, determine whether the APP has permission to call the JsBridge function corresponding to t...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a method for authentication of JsBridge function calling. The method comprises the steps of monitoring a functional calling request sent from APP, wherein information of a JsBridge function required by APP to call is contained in the function calling request, and the function calling request is used for calling the JsBridge function corresponding to the information of calling the JsBridge function; determining whether the APP has authority to call the JsBridge function corresponding to the information of the calling the JsBridge function or not according to the functioncalling request and the authority information corresponding to the APP after the function calling request is monitored, wherein the information of the JsBridge function authorized by the APP to callis stored in the authority information corresponding to the APP; and allowing the APP to call the JsBridge function when that the APP has authority to call the JsBridge function corresponding to the information of the JsBridge function is determined. The invention also discloses a device corresponding to the method, a JsBridge function calling method and device and an authority information building method. Therefore, the behavior of calling JsBridge by H5 is managed and limited, and the information safety and the running performance of a client are favorably improved.

Description

technical field [0001] The present application relates to the field of computer technology, and in particular to a method and device for authenticating calls to JsBridge functions, a method and device for calling JsBridge functions, and a method for establishing authority information. Background technique [0002] With the development of mobile Internet technology, the functions of mobile APP (full name Application, application program) are becoming more and more powerful. However, due to the shortcomings of traditional mobile APPs such as slow version release, low user update coverage, and high complexity of function development, APP forms with low cost, short cycle, fast update, and better cross-platform performance have emerged as the times require. [0003] Typical ones include Hybrid APP and H5APP. These two kinds of APPs use H5 to call JsBridge to realize some interactive methods or special functions that cannot be directly realized by H5, thus combining the advantage...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F21/31
CPCG06F21/31
Inventor 冯俊捷孙楠施俊王卫章子鹏
Owner ALIBABA GRP HLDG LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products