Ionic vue 3 the routes not navigate properly - ionic-framework

I got problem with my router
the router not navigate properly with tab2 and tab3 logout and redirect again to login
https://github.com/scarfaceshing/ionicvue-bug-vue-router

Related

Keycloak login page refresh logs out from other tab

we are using OIDC-client library from react js side and IS4 using keycloak as login provider,
open the two tabs and open the same url[e.g. xyz.com]
when 1st tab request the url, IS4 provides the login page from keycloak.
user log in with code provided by keycloak and IS4 redirect to correct url. [ all good]
the second tab is still on login page, by pressing f5 on tab2 should bring the same page as SSO in nature, f5 works fine here but there is signredirectcallback failure on tab1 which trigger frame window timeout and logout happens on tab1.
due to that 1st tab also gets signout.
any clue?

Can't get rid of tabs when pushing to login

I have an Ionic 3 app where when a user logs out, I want to push them to the login page.
However, when I push to that page I can't seem to get ride of the tabs.
I'm useing:
this.navCtrl.push('LoginPage');
I've tried:
this.navCtrl.setRoot.push('LoginPage');
and a few other things I've seen, but nothing works.
How is this done?
In what page do you run this.navCtrl.push('LoginPage'); ? I'm guessing it is in one of your tab pages. (Side note: the argument for push is not a string, but a class.)
Instead of one of the tab pages, do this in app.component.ts.
this.nav.push(LoginPage);
or just use setRoot, but in app.component.ts
You will need to monitor the login status in app.component.ts, for which you can use a service or RxJS subject

Different Sidemenu in ionic 2 app

I would like to have different side menus in ionic 2 app based on user login.
When a user logs in as customer , I want to show a side-menu with customer functionalities.
When a user logs in as admin, I will show different side-menu.
I am using Ionic 2 sidemenu template
Any help would be really appreciated.
You could use *ngIf on an element inside your sidebar to display based on if the user is logged in as admin.
Example:
<div class="side-bar-admin" *ngIf="admin'"></div>

How to automatically redirect to home page after session-timeout

I would like to automatically redirect control to my community home page after session-timeout.
I tried putting below properties in my portal-ext.properties file but after session-timeout it doesn't automatically goes to community home page however if I click on any link or button it goes back to home page.
Can anybody please let me know how control can automatically be transffered to home page after session-timeout instead of clicking on any button or link.
session.id.delimiter=
session.id.weblogic.delimiter=!
session.timeout=5
session.timeout.warning=1
session.timeout.auto.extend=false
session.timeout.redirect.on.expire=true
default.landing.page.path=/web/demo/home
last.modified.check=false
theme.css.fast.load=true
javascript.fast.load=true
hibernate.show_sql=false
com.liferay.portal.servlet.filters.threadlocal.ThreadLocalFilter=true
com.liferay.portal.servlet.filters.unsyncprintwriterpool.UnsyncPrintWriterPoolFilter=true
jsp.writer.buffer.size=0
finalize.manager.thread.enabled=true
session.enable.phishing.protection=true
Environment: Liferay 6.0
Thanks
Add/Update below properties to your portal-ext.properties file:
default.logout.page.path=/web/guest/home
auth.login.url=/web/guest/home
default.logout.page.path=/web/guest/home is the url redirected to after the logout.
How to logout and redirect to /web/guest/home automatically after session timeout?At present we are hosting few widgets on the dashboard page. When a user click any of the widget after session timeout, a new tab opens and is redirected to /web/guest/home. How to logout from dashboard page automatically after session timeout

I have to POST JSON data to a page and redirect to that page in ASP.NET MVC

I have 2 pages "page1" and "page2".
onclick of a button in page1, i have to access 5 input control values and send to page2.
Load page2 with some data based on those input values.
In MVC the common scenario is posting data from page1 to your controller and then controller will redirect to page2 with updated data. You cannot post data directly between MVC views