Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refresh Token #1

Open
markoMl95 opened this issue Mar 19, 2024 · 1 comment
Open

Refresh Token #1

markoMl95 opened this issue Mar 19, 2024 · 1 comment

Comments

@markoMl95
Copy link

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
Copy link
Owner

Alino commented Jul 10, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants