You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We should update the view templates for /toolbar/:org/:proj/login-success/ and /toolbar/:org/:proj/iframe/ so that they include useful javascript to power the auth flows for the toolbar sdk.
Later we'll update things again to improve the visual style. But that's not important today.
NOTE: that the text __REFERRER__ should be replaced with the referer header from the web request object.
The template for /toolbar/:org/:proj/login-success/ should be:
<html>
<head>
<title>Sentry - Login Success</title>
<!-- TODO: this should be a sentry logo -->
<link rel="icon" href="data:;base64,iVBORw0KGgo=">
</head>
<body>
<div>
<p>You are logged in!</p>
<p>This window will automatically close after 3 seconds. If not then check the console for errors.</p>
<button type="button" id="close-popup">Close Popup</button>
</div>
<script>
(function() {
function notifyOpener() {
if (!window.opener) {
return;
}
window.opener.postMessage({
source: 'sentry-toolbar',
message: 'did-login',
}, '*');
}
notifyOpener();
setTimeout(() => {
window.close();
}, 3_000);
// If the popup doesn't close, we can let people try to close it manually.
document.getElementById('close-popup').addEventListener('click', () => {
window.close();
});
})();
</script>
</body>
</html>
Closes#77577
Updates iframe_view test coverage.
Most of the commits are from branching from
#77756. New commit history
starts at
[f4fc3aa](f4fc3aa)
---------
Co-authored-by: Ryan Albrecht <ryan.albrecht@sentry.io>
Depends on #77214
We should update the view templates for
/toolbar/:org/:proj/login-success/
and/toolbar/:org/:proj/iframe/
so that they include useful javascript to power the auth flows for the toolbar sdk.Later we'll update things again to improve the visual style. But that's not important today.
NOTE: that the text
__REFERRER__
should be replaced with the referer header from the web request object./toolbar/:org/:proj/login-success/
should be:/toolbar/:org/:proj/iframe/
should change depending on whether the referrer domain is valid or invalid (see [DevToolbar] Guard/iframe/
&/login-success/
pages against disallowed referer origins #77214)2.1 When the domain is invalid:
2.2
and when the domain is valid:
The text was updated successfully, but these errors were encountered: