Zend certified PHP/Magento developer

Extend magento’s feature with java/react

I would like to use magento’s logic to handle all the business logic related with ecommerce. However, I would like to extend it’s functionality (some very custom feature that there are no plugins for) but the problem is that i don’t know php. I know react/java. So I would like to have two backends, one in php which will handle auth and ecommerce stuff and 2nd in java which will handle my custom functionalities. Is below approach achievable?

  1. Create magento store
  2. Add a navigation link to a custom subpage (with custom functionalities) on navigation header.
  3. This custom page should be done with react
  4. This custom page will talk with java backend. Some operations will call private endpoint but some of them should be authenticated. I’m thinking that I should be somehow able to read auth token from session/cookie from react app and detect if user is logged in in magento or not, if not redirect to magento’s login page and if yes pass this sessionId/authToken to java backend and java backend would call magento’s rest endpoint like GET /me along with sessionId/authtoken and resolve principal with all the details and perform some action on behalf of authenticated user. I can have my own table in java app and map some data to userIds from magento.

Does this make any sense? Is there any better way to extend magneto features with java/react?