How can I set up an automatic authentication layer in nginx?

后端 未结 2 1794
南方客
南方客 2021-02-09 02:58

I\'m building an ecosystem of applications under a common domain, with each application under a separate subdomain. I have built an authentication application for the ecosystem

2条回答
  •  一生所求
    2021-02-09 03:33

    I would suggest a custom module which gets data from a database based on who logged in, this way you manage from a central point and can set whatever you want based on whatever is in the database, from the other side you synchronize the database with authentication sources.

    A client always has the same login interface, nginx always communicates with the same authentication source in the same way, you only need to manage the database and its interfaces to the authentication sources.

    client <> nginx <> database <> set values where client is going and is allowed to do.

提交回复
热议问题