Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

User management system for WordPress, Node, GitLab and CLI [closed]

Currently, I have a WordPress website which takes care of my user management. Separately I have a GitLab server and single-page application (node.js).

I am about to build CLI which will allow users to a) download certain resources b) upload certain files to their account.

I would like to maintain single user repository for all services so that user didn't have to register separately + I would like to bind some logic like if user purchased something on WordPress he is allowed to download it via CLI or get access to certain git repository on GitLab.

I know that WP, Node and GitLab support Active Directory, LDAP and Kerberos however I am not sure whether this is the best solution. My personal experience with AD was mostly in Windows environment to get access to different directories.

Summary:

Stack: services/applications:

  • WordPress website
  • Node.js website
  • GitLab CE server
  • Custom CLI (to be built)

Question:

  1. What would be the best solution to integrate all services (single login and password for all). LDAP / Kerberos or something else?
like image 435
Dawid Adach Avatar asked Jan 15 '18 21:01

Dawid Adach


1 Answers

If you are using WordPress, you need to use WP REST API. For example, you can use this solution, as you use JS, also see to the side with API solutions like this.

like image 90
Alexander Z Avatar answered Oct 21 '22 04:10

Alexander Z