I have a specific scenario to integrate a single page application (react based) with Drupal (I use version 7) in order to achieve the following:
Utilize the CMS capabilities of drupal and provide static content some of it will be public some will be private to authorized users only.
Create a totally separate single page application with specific functionality, with react framework and will communicate with a different backend system. I want this app to expose it through drupal, as a page by selecting it from the menu. Only authorized users will be able to enter this section of the drupal app.
Being able to pass user details to my single page application, in order to use them to the communication with the backend (for authorization and other operations)
I'm fairly new to Drupal, as far as I understand I will need to develop a module and/or a theme to do that? Additionally, drupal and my application should have a common authentication mechanism,I use OAuth2 server which is provided as a separate instance from drupal and my single page application.
From my research I haven't found any concrete example/documentation on how to achieve this. What I have managed to achieve so far is to be able to utilize my OAuth2 server with the help of OAuth2 Authentication module.
My second part is now missing to integrate my single page application and pass some user details information to it.