php - What is the most reasonable way to verify permissions in a multi-service structure?
PHP中文网
PHP中文网 2017-05-16 13:08:56
0
1
353

< /p>

The basic structure of the system is shown in the figure. My idea is to do general permission verification on the gateway node, such as whether to log in.
In this way, each service can only write business logic and extract the common login function.
The specific permission verification of each service is placed in each service for judgment.
Is this design reasonable?

PHP中文网
PHP中文网

认证高级PHP讲师

reply all(1)
PHPzhong

I think what the questioner wants is a member account platform. The business service in your picture is a basic platform. At the application layer, it first calls the account platform interface to make login judgments, and then calls the interface provided by the basic platform to do some permission logic processing. .

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template