Client Auth endpoint logic, first run.
This commit is contained in:
parent
c38389abd4
commit
fcf620eecd
3 changed files with 14 additions and 7 deletions
|
|
@ -91,7 +91,7 @@ const endpoints = {
|
|||
url: "https://maps.googleapis.com/maps/api/js?key={apiKey}&libraries=places"
|
||||
},
|
||||
ValidateClientTag: {
|
||||
url: "/clientauth/api/v1/validateClientTag",
|
||||
url: "/clientauth/api/v1/clientauth/validateClientTag",
|
||||
method: "GET",
|
||||
},
|
||||
};
|
||||
|
|
|
|||
|
|
@ -4,10 +4,17 @@ export function validateISSClientTag(clientTag) {
|
|||
const store = useMainStore()
|
||||
const clientName = store.issConfig.clientName;
|
||||
|
||||
const resp = store.validateClientTag(clientTag);
|
||||
|
||||
console.log(resp);
|
||||
|
||||
store.validateClientTag(clientTag)
|
||||
.then(
|
||||
(response) => {
|
||||
// Success
|
||||
console.log(response);
|
||||
},
|
||||
(error) => {
|
||||
// Error
|
||||
console.log("error: " + error);
|
||||
}
|
||||
);
|
||||
|
||||
return true;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -893,10 +893,10 @@ export const useMainStore = defineStore({
|
|||
});
|
||||
},
|
||||
|
||||
validateClientTag({ clientTag }) {
|
||||
validateClientTag(clientTag) {
|
||||
return globalMethods.callHttpClient({
|
||||
methods: endpoints.ValidateClientTag.method,
|
||||
endpoint: `${endpoints.ValidateClientTag.url}/${"asdf"}`,
|
||||
endpoint: `${endpoints.ValidateClientTag.url}/${clientTag}`,
|
||||
});
|
||||
},
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue