rez_core 2.2.207 → 2.2.208

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rez_core",
3
- "version": "2.2.207",
3
+ "version": "2.2.208",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "private": false,
@@ -114,9 +114,38 @@ export class LoginController {
114
114
  actualState,
115
115
  );
116
116
 
117
- return res.redirect(`${this.configService.get('BASE_URL')}`);
117
+ return res.redirect(`
118
+ <html>
119
+ <body>
120
+ <script>
121
+ // Notify parent window that OAuth succeeded
122
+ if (window.opener) {
123
+ window.opener.postMessage({ type: 'CONFIG_SUCCESS' }, '*');
124
+ }
125
+ // Close the popup window
126
+ window.close();
127
+ </script>
128
+ <p>Configuration successful. You can close this window.</p>
129
+ </body>
130
+ </html>
131
+ `);
118
132
  } catch (error) {
119
- return res.redirect(`${this.configService.get('BASE_URL')}`);
133
+ return res.redirect(`
134
+ <html>
135
+ <body>
136
+ <script>
137
+ if (window.opener) {
138
+ window.opener.postMessage({
139
+ type: "CONFIG_FAILED",
140
+ error: "${error.message || 'Something went wrong'}"
141
+ }, "*");
142
+ }
143
+ window.close();
144
+ </script>
145
+ <p>Configuration failed. Please close this window.</p>
146
+ </body>
147
+ </html>
148
+ `);
120
149
  }
121
150
  }
122
151