Hello,
Thanks to the detail documentation and sample, I have successfully get the Web Messenger authenticated with Okta working.
However, we are deploying this to a web site that hosted multiple pages. As we call AuthProvider.getAuthCode, we need to configure redirectUri in Okta application. This way each time we load a page, we will request for a new Authentication code so that it will launch Web Messenger.
For example,
AuthProvider.registerCommand('getAuthCode', (e) => {
e.resolve({
authCode: authCode,
redirectUri: sRedirectURL, //need to add all the pages to Okta application?
nonce: sNonce,
maxAge: 86400
});
});
My question is if we are deploying Web Messenger to multiple pages, does that mean we need to configure multiple redirectURI in Okta application as well?
Although Okta accept wilcard. However, as we dive into this
Redirect URI wildcard for path variable instead of subdomain? - OAuth/OIDC - Okta Developer Community,
from Okta side, they are not able to wildcard path. They can do it for subdomain.
This will lead to adding multiple absolute redirectURI in Okta. Please let me know if this is best practice.
Also, what if there is dynamic URL and what could be the best practice?
Please let me know if anyone come across this before.
Many Thanks,
CJ