it is working fine. it allows an employee to log in to the web app before access app functionality.
But I want an employee can directly access web App functionality (No need to login on App again) by click on the web App tile at the company Okta dashboard. and redirect to the Web APP.
You likely want to look into supporting SSO. When they user logs into Okta, an Okta session is created for them in their browser, setting a session cookie called âsid.â This session can be used by your application to get tokens for the user without asking them to sign in again.
Our Auth JS SDK has a couple of methods that can help:
token.getWithoutPrompt(options) will silently make an authorize request to get tokens for the user without prompting them to re-authenticate. They MUST have an Okta session for this to succeed, otherwise a login_required error will be thrown
Note, these calls will fail if your browser blocks third party cookies (such as Safari with âPrevent Cross Site Trackingâ enabled an Chrome Incognito by default) and your app is hosted on a separate domain from your Okta tenant). More details here.
With these methods, you can 1) determine if the user is signed into Okta, thus are able to get tokens or 2) determine that they need to log into Okta and should be shown the widget
Not really? The Okta session is tracked with cookies and users wonât be able to log into the app without needing to re-auth if they donât have this session.