Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Kerberos authentication with react

I have a react app that makes requests to our REST API server using axios.

On the REST server, we added autentication using kerberos. When we simply makes a request to that server using chrome, that authentication works fine (chrome passes the correct header with kerberos's ticket data), but when the react app app makes the request, the ticket isn't added to the request.

How can we access the ticket and send it via the react app?

NOTE: the react application is served as a static content by an apache server and communicates with a diffrent REST server.

like image 933
ronykaz Avatar asked Nov 07 '22 11:11

ronykaz


1 Answers

You should use directly the fetch API, not axios.

I did a NTLM/Kerberos SSO example with React on this project. Project : https://github.com/jlguenego/react-sso-example

like image 55
jlguenego Avatar answered Nov 15 '22 11:11

jlguenego