Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

81
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda