Service calling method and system based on OpenAPI (Open Application Program Interface)

The invention relates to a service calling method based on an OpenAPI (Open Application Program Interface), which comprises the following steps of: establishing an authentication interface at a server for a client to call, and sending token information to the client, so that the client generates a c...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: ZHAO JINJIN, SHEN WEIDONG, HU CHAOHAN, CAO LIANGHUA, YANG KUN, ZHANG GE, GAO QI, CHEN ZAN
Format: Patent
Sprache:chi ; eng
Schlagworte:
Online-Zugang:Volltext bestellen
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
Beschreibung
Zusammenfassung:The invention relates to a service calling method based on an OpenAPI (Open Application Program Interface), which comprises the following steps of: establishing an authentication interface at a server for a client to call, and sending token information to the client, so that the client generates a corresponding request header according to the token information; and receiving a request sent by the client for calling the service interface of the server, verifying a request header sent by the client, and if verification succeeds, passing the calling request of the client and providing an interface service for the client. The problem that a traditional authorization mode is not flexible is effectively solved, the authorization mode is optimized, the server side can limit the authorization deadline, flexibility and adaptability are good, safety is improved, and data isolation can be achieved and personalized interface services can be provided conveniently. 本发明涉及一种基于OpenAPI的服务调用方法,包括如下步骤:于服务端建立认证接口,以供客户端调用,并向客户端发送令