Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

146
Views
redirigir y obtener el token generado después de la autenticación de okta

Soy nuevo en reaccionar y estoy teniendo dificultades para resolver este problema, por lo que el backend se ejecuta en Django, lo que estoy tratando de lograr es que desde mi aplicación frontend pueda iniciar sesión en el sistema de autenticación de terceros ( Okta) en la API 127.0.0.1:8000/authenticate/login después de que el usuario se autentica, la página se redirige a 127.0.0.1:8000/authenticate/saml donde se generan los tokens para el usuario y ese token se usa más para obtener datos de la base de datos, tengo problemas para llegar a la parte donde puedo obtener el token que está presente en el formato JSON

 const Token = () => { const urlLogin = "http://127.0.0.1:8000/authentication/login/"; const saml = 'http://127.0.0.1:8000/authentication/saml'; useEffect(() => { // after the authentication is completed the used is directed to the token page window.location.href=urlLogin;// here authentication is being done const fetchApi = async () => { fetch(saml, { method: 'POST', mode: 'no-cors', headers: { 'Content-Type': 'application/json', } }).then(response => console.log(response.read)); } fetchApi(); }, []);



about 4 years ago · Santiago Gelvez
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!