I'm new to WSO2 IS.
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?
just downgraded from 0.2.19 to version @asgardeo/auth-spa:0.2.18 and now I’m forwarded to serverOrigin from config