How can I get my users from my Drupal 9 website (where my users sign in) to my OSTicket 1.17 website in another (sub)domain and get them logged in (SSO).
I can pass the userData object by posting it and transfer it with a CSRF token in the URL. The receiving website receives all data correctly. I can read the Array/Object now. How can I use this data to get logged in to OST? If the user does not exist i can add him to the OST database so a valid ID can be used for the tickets but to get the user logged in is my only concern right now.
I have some data like this within my object:
- id (Drupal ID)
- username (Drupal username)
- email (Drupal email)
- password_hashed_encrypted (Drupal password)
I use an CSRF Token to keep things safe.
p.s. my OOP is the worst.
Any help is appreciated