Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

82
Vistas
WSO2 IS serverOrigin is not used from config

I'm new to WSO2 IS.

  • wso2 runs in docker: serverOrigin - https://localhost:9443
  • Build an SPA (vuejs) . script below
  • By login/signIn the serverOrigin is not being used. Instead I’m forwarded to https://api.asgardeo.io/t/%3Corg_name%3E/oauth2/authorize instead of https://localhost:9443/t/appname

Why provided ServerOrigin in config Object is not used?


<script setup lang="ts">
import { AsgardeoSPAClient, AuthSPAClientConfig } from "@asgardeo/auth-spa";
import { onMounted } from "vue";

const config: AuthSPAClientConfig = {
  signInRedirectURL: "http://localhost:8080",
  signOutRedirectURL: "http://localhost:8080",
  clientID: "xxxxxxxxxxxxxxxx",
  serverOrigin: "https://localhost:9443/t/tenant",
};

const auth: AsgardeoSPAClient = AsgardeoSPAClient.getInstance()!;

onMounted(init);

async function init() {
  const spa = await auth.initialize(config);

  console.log(spa, auth);
}

async function login() {
  auth.signIn();
}

async function getToken() {
  const accessToken = await auth.getAccessToken();
  console.log(accessToken);
}
</script>

the url is called

https://api.asgardeo.io/t/<org_name>/oauth2/authorize?response_type=code
&
client_id=xxxxxx
&
scope=openid
&
redirect_uri=http://localhost:8080
&
response_mode=query
&
code_challenge_method=S256
&
code_challenge=a8dUNbiWc19frjgg2IRHjPS_juzBvqcVjOCkk-XIpGE

I see that other config are published except serverOrigin, why?

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

just downgraded from 0.2.19 to version @asgardeo/auth-spa:0.2.18 and now I’m forwarded to serverOrigin from config

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda