asp.net - Sisense logout with API call -
i have problems logging out user sisense. login using jwt , can see dashboard using sisensejs. , want call logout (https://sisense/api/auth/logout). sisense located in server inside same local network have ip 10.0.0.45 , have maped "sisense" inside host file. good.
then if go browser , put https://sisense/api/auth/logout inside address bar, works. using self-signed certificate prompt me "do want continue site not trusted...bla bla bla". problem starts when call endpoint ajax
$.ajax({ method: "get", contenttype: 'application/json', url: "https://sisense/api/auth/logout" }); (actually tried call webclient inside controller also, , not need ajax call acceptable). returns 403 error. doing wrong? should put headers? 1 have experience on it?
finally got working.
so ajax call didn't worked, redirection solution.
added controller
public actionresult signout() { return redirect("https://sisenseaddress/api/v1/authentication/logout"); } also may need activate cors on sisesnse
and using sso azure can put logout action url inside sisense sso settings logout endpoint. first sisense logout , go site , lets azure logout.
Comments
Post a Comment