sharepoint online – Authentication in Team Tab not working

I am trying to authenticate in microsoft team using Azure active directory. I am able to get access token too. but after receiving the access token it is not redirecting to Microsoft Team.

Below are the code for auth-start.html

microsoftTeams.initialize();
microsoftTeams.getContext(function (msTeamsContext) {

  // ADAL.js configuration
  let config = {
    clientId: "a6f3438e-2305-442a-9425-126f9c2c1bde",
    redirectUri: window.location.origin + "/auth-end.html",
    cacheLocation: "localStorage",
    endpoints: {
      "https://graph.microsoft.com": "https://graph.microsoft.com"
    }
  };

  // add extra query parameters Azure AD login request
  //  include scope for OpenID connect and log-in hint by using the current Microsoft Teams logged-in user
  config.extraQueryParameters = "scope=open+profile";
  if (msTeamsContext.upn) {
    config.extraQueryParameters += "&login-hint=" + encodeURIComponent(msTeamsContext.userProfileName);
  }
  // check if consent required for new permission
  if (getUrlParameter('prompt') !== "") {
    config.extraQueryParameters += "&prompt=" + getUrlParameter('prompt');
  }

  // override URL to Azure AD auth endpoint to include extra query parameters
  config.displayCall = function (urlNavigate) {
    if (urlNavigate) {
      if (config.extraQueryParameters) {
        urlNavigate += "&" + config.extraQueryParameters;
      }
      window.location.replace(urlNavigate);
    }
  }

  // login
  let authContext = new AuthenticationContext(config);
  authContext.clearCache();
  authContext.login();
});

function getUrlParameter(name) {
  name = name.replace(/(()/, '\(').replace(/())/, '\)');
  var regex = new RegExp('(\?&)' + name + '=((^&#)*)');
  var results = regex.exec(location.search);
  return results === null ? '' : decodeURIComponent(results(1).replace(/+/g, ' '));
};

Below are code for auth-end.html

microsoftTeams.initialize();

// ADAL.js configuration
let config = {
  clientId: "a6f3438e-2305-442a-9425-126f9c2c1bde",
  cacheLocation: "localStorage",
  navigateToLoginRequestUrl: false,
  endpoints: {
    "https://graph.microsoft.com": "https://graph.microsoft.com"
  }
};

let authContext = new AuthenticationContext(config);

// ensure page loaded via Azure AD callback
if (authContext.isCallback(window.location.hash)) {
  authContext.handleWindowCallback(window.location.hash);

  // Only call notifySuccess or notifyFailure if this page is in the authentication pop-up
  if (window.opener) {
    // if able to retrieve current user...
    if (authContext.getCachedUser()) {
      // get access token for Microsoft Graph
      authContext.acquireToken("https://graph.microsoft.com", function (error, token) {
        if (token) {
          microsoftTeams.authentication.notifySuccess(token);
        } else if (error) {
          microsoftTeams.microsoftTeams.notifyFailure(error);
        } else {
          microsoftTeams.authentication.notifyFailure("UnexpectedFailure");
        }
      });
    } else {
      microsoftTeams.authentication.notifyFailure(authContext.getLoginError());
    }
  }
}

after this we should redirected to team tab but it is not working.

How to disable wallpaper blur effect on Samsung Galaxy Tab A8.0

so, I went to change my homescreen wallpaper on my samsung galaxy tab a8.0(sm-t290) and every wallpaper comes out as blurry.

in the gallery they work all well and fine, but as a wallpaper? nope.

lock screen looks good.

but the homescreen? well, the astronomy wallpapers I like..look like something my cat yarked up.

how do I fix this?

javascript – Deletar alguns elementos de uma tab através de uma extensão no Chrome

Como posso deletar um elemento da CurrentTab através de uma extensão? Numa conclusão óbvia, pensei que o código abaixo funcionaria perfeitamente. O que eu precisava na verdade, era conseguir ocultar/descultar alguns elementos, mas não consegui sequer deletar.

manifest.json

{
    "manifest_version": 2,
  
    "name": "TesteDeleter",
    "description": "teste",
    "version": "0.1",
  
    "permissions": (
      "activeTab",
      "<all_urls>"
    ),
  
    "content_security_policy": "script-src 'self' 'unsafe-eval'; object-src 'self'",

    "browser_action": {
      "default_icon": "icon.png",
      "default_title": "test",
      "default_popup": "index.html"
    }
  }

index.html

<!DOCTYPE html>
<head>
    <meta charset="UTF-8">
    <script>
        function deleteElement(classElement){
            var element = document.querySelector(classElement);
            element.parentElement.removeChild(element);
        }
    </script>
</head>
<body>
    <button class="btn" id="all" type="button" onClick="deleteElement('elementoExemploDeUmaPaginaQualquer')">Limpar</button>
</body>
</html>

macos – Command + Tab no longer switching between applications

I finally upgraded my MacBook Pro to Big Sur last night. However, and I don’t know if this is related or not, Cmd + Tab is no longer switching between applications. When I press that combination, it’s as if I only pressed Tab. At first, I wondered if I had spilled some water on my keyboard and broke the Cmd key. However, Cmd + q still closes applications and Cmd + t still opens tabs in browsers.

Like I said, I don’t know if it’s coincidence or not that this problem only arose after I upgraded to Big Sur.

web browser – Global variables accessible to other websites opened in same tab

Today I found a security issue with Chrome (or maybe other browsers I haven’t tested yet).
What happens is that once you open a site and then open another site in the same tab, the previous site’s global variables are accessible to the current site in that tab. I have demonstrated it in this video: https://www.youtube.com/watch?v=oDFKsLaecOs

So is this happening just with my Chrome (which is updated to latest version) or anyone else faced this?

This is how you can reproduce it:

I logged in to exotel.com site and they are using a name variable to store currently logged in user’s name. You can use it in console and check its value.

Now go to any other site in same tab and try accessing that variable from exotel. Your name will be displayed or just add a button from HTML in inspector and on click of that display the name variable.

Why does cmd-click on a link not open a new tab in GMail (Firefox/Mac)?

Why does cmd-click (tap on the trackpad) on a link not open a new tab in GMail? It used to work 10 years ago or so but hasn’t been working for maybe 5 years. Ctrl-click and selecting a “Open link in new tab” works fine in GMail and cmd-click on links to open them in a new tab works fine everywhere else, including on Google search.

Firefox/Mac. Three different machines and many different versions of Firefox.