alancting / react-cas-client

Simple CAS Client for ReactJS for Apereo CAS server (CAS 2.0 and 3.0 protocol)
MIT License
8 stars 11 forks source link

React cas client with proxy authentication #10

Closed habib-halaoui closed 2 years ago

habib-halaoui commented 3 years ago

Hello,

I have a web application which uses for the react js front part and the symfony backend and a cas sso authentication server. I have configured react to authenticate with case and the backend part also configured with case. The user is authenticated on both applications. But the problem that I can not use the api rest of the backend because it is not recognized that it is connected to because via axios http requests. I saw that it was necessary to set up a proxy case. Do you have any information on this use case and how to do it? Does your example take into account the proxy case? This link details the API call in case. https://apereo.github.io/cas/5.0.x/installation/Configuring-Proxy-Authentication.html Regards

alancting commented 2 years ago

Hi there,

Sorry for the late reply, quite busy in the last couple of months 🙏 . I've spent some time study on proxy authentication, and updated the lib and the example to show the usage.

Not sure if it still helps after a few weeks, feel free to take a look if you didn't find the workaround.

Sorry again! 🙇‍♂️ Cheers