Go to documentation repository
Page History
...
The article provides a method of authorization in NativeBL in gRPC channel with examples of Python code.
gRPC requests are generated on the basis of proto files.
...
title | Attention! |
---|
...
.
Preparing the environment
Before you start, do the following:
- Install the Python interpreter , and, if necessary, the IDE.
Install the dependencies via pip:
Code Block pip>=21.1.2 grpcio-tools>=1.38.0 googleapis-common-protos pyOpenSSL==19.1.0
Creating the proto classes
To create proto classes, do the following:
...
As a result, the script folder will contain the axxonsoft folder with proto classes, which will be used to work with NativeBL via the gRPC channel.
Authorization and first request
To send requests through the gRPC channel, the authorization in NativeBL is required. To do this, use the Server certificate from the C:\ProgramData\AxxonSoft\AxxonNext\Tickets folder.
...
- certificate_path — path to the certificate;
- ip — Server IP address ("127.0.0.1" by default);
- port — NativeBL port — gRPC API port (20109 by default);
- username — username ("root" by default);
- password — user password ("root" by default).
...
Overview
Content Tools