Alino / OIDC-client-ts-chromium-sample

a sample Chromium extension demonstrating how to integrate OIDC library, with a workaround for chromium manifest v3
3 stars 1 forks source link

Refresh Token #1

Open markoMl95 opened 7 months ago

markoMl95 commented 7 months ago

Hello, im looking for help regarding the chrome extension. I created the chrome-extension with Reactjs, using your example and code from here to adjust the MSAL.js lack of support of mv3. I came to a point where i can login and get the initial pair of access-refresh tokens but i cant obtain the following pair with automaticSilentRenew. This is my configuration setup

const tenant = ''; const clientId = ''';

const clientAppScope = 'TestScope';

const url = chrome.identity.getRedirectURL();

const settings = { authority: https://login.microsoftonline.com/${tenant}/v2.0/, client_id: clientId, redirect_uri: url, post_logout_redirect_uri: url,

response_type: 'code', response_mode: 'fragment', scope: openid email profile offline_access ${clientId}/${clientAppScope},

silent_redirect_uri: url, automaticSilentRenew: true, // silentRequestTimeout: 10000,

filterProtocolClaims: true, monitorSession: false, loadUserInfo: true, };

i added offline_access and thought that will help me out to resolve the issue, but i still dont get any further /token calls

Screenshot 2024-03-19 at 19 49 07

Thank you for help

Alino commented 4 months ago

sorry I have abandoned this approach, there were some issues I don't remember anymore and we had to implement an authentication backend that the extension calls.