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

79
Views
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 answers
Answer question

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 Report
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!