Without iFrame and silently login user approach #7465
Labels
bug-unconfirmed
A reported bug that needs to be investigated and confirmed
msal-angular
Related to @azure/msal-angular package
msal-browser
Related to msal-browser package
Needs: Attention 👋
Awaiting response from the MSAL.js team
public-client
Issues regarding PublicClientApplications
question
Customer is asking for a clarification, use case or information.
Core Library
MSAL.js (@azure/msal-browser)
Core Library Version
3
Wrapper Library
MSAL Angular (@azure/msal-angular)
Wrapper Library Version
2
Public or Confidential Client?
Public
Description
Silent Token Acquisition with Refresh Tokens: If the user has already authenticated and you have a refresh token, you can use it to silently acquire new access tokens without user interaction. This method does not involve iframes or popups.
// src/App.js
import React, { useEffect } from 'react';
import { useMsal } from '@azure/msal-react';
import { loginRequest } from './authConfig';
const App = () => {
const { instance, accounts } = useMsal();
Error Message
No response
MSAL Logs
No response
Network Trace (Preferrably Fiddler)
MSAL Configuration
Relevant Code Snippets
Reproduction Steps
Using Iframes
Pros:
Cons:
Without Using Iframes (e.g., Using Refresh Tokens or Popups)
Pros:
Cons:
Expected Behavior
Silent Token Acquisition with Refresh Tokens: If the user has already authenticated and you have a refresh token, you can use it to silently acquire new access tokens without user interaction. This method does not involve iframes or popups.
Any suggestions? Thanks!
Identity Provider
Entra ID (formerly Azure AD) / MSA
Browsers Affected (Select all that apply)
Chrome, Edge
Regression
No response
The text was updated successfully, but these errors were encountered: