SSO sharing moodle session with react app

SSO sharing moodle session with react app

by ben ftima wajdi -
Number of replies: 2

I'm very new in moodle, and I'm looking if there is a way to connect an external app as my react js app on moodle 
According to a simple SSO architecture, I think i have to share the moodle session cookie with my second app 

and then I need one more external API to check on react side, on every page reload if this session  still exists or not 

can someone helps me pls, or is there any other way to solve this 


Average of ratings: -
In reply to ben ftima wajdi

Re: SSO sharing moodle session with react app

by Mark Johnson -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

I would not recommend using Moodle as an authentication system for other applications, you're better off using a separate SSO system supporting a standard protocol like SAML, then authenticate both Moodle and your app against that.

Average of ratings: Useful (1)