Skip to content

Commit 917df4f

Browse files
authored
Merge pull request #2910 from Azure/dpwatrous/entra-issues
Allows users to select browser for authentication
2 parents 8e438ff + 13cddff commit 917df4f

File tree

74 files changed

+2279
-622
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+2279
-622
lines changed

.vsts/win/ci.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,15 @@ steps:
77
npm run build:package
88
displayName: Build and package
99
10-
- pwsh: |
11-
. ../.vsts/win/exec.ps1
12-
$ErrorActionPreference = "Stop"
13-
$env:BE_TEST_AAD_USER_EMAIL = "$(uiTestingAccountEmail)"
14-
$env:BE_TEST_AAD_USER_PASSWORD = "$(uiTestingAccountPassword)"
15-
npm run test-e2e
16-
workingDirectory: desktop
17-
displayName: End to end tests
10+
# Disabling end-to-end tests in CI pipeline
11+
# - pwsh: |
12+
# . ../.vsts/win/exec.ps1
13+
# $ErrorActionPreference = "Stop"
14+
# $env:BE_TEST_AAD_USER_EMAIL = "$(uiTestingAccountEmail)"
15+
# $env:BE_TEST_AAD_USER_PASSWORD = "$(uiTestingAccountPassword)"
16+
# npm run test-e2e
17+
# workingDirectory: desktop
18+
# displayName: End to end tests
1819

1920
- template: ./security-analysis.yml
2021

desktop/i18n/resources.resjson

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,11 @@
5050
"auth-service.activate-tenant": "Activate tenant to authorize",
5151
"auth-service.tenant-error": "Cannot access resources for tenant {tenantName}",
5252
"auth-settings.title": "Authentication Settings",
53+
"auth.cancel-button.label": "Cancel",
54+
"auth.not-logged-in": "You are not logged in. Please log in to continue.",
55+
"auth.signin-button.label": "Sign in",
56+
"auth.tenant-sign-in-title": "Sign in to {tenant}",
57+
"auth.welcome": "Welcome to Azure Batch Explorer",
5358
"auto-storage-account-picker.clear-button-label": "Clear",
5459
"auto-storage-account-picker.fields.classic": "Classic",
5560
"auto-storage-account-picker.fields.location": "Location",
@@ -82,6 +87,7 @@
8287
"common.back": "Back",
8388
"common.configuration": "Configuration",
8489
"common.confirm": "Confirm",
90+
"common.copyright": "Copyright",
8591
"common.creationTime": "Creation time",
8692
"common.displayName": "Display name",
8793
"common.done": "Done",
@@ -109,6 +115,7 @@
109115
"common.updated": "Updated",
110116
"common.value": "Value",
111117
"common.version": "Version",
118+
"common.welcome": "Welcome to Batch Explorer",
112119
"common.yes": "Yes",
113120
"create-new-aad-app.create": "Create",
114121
"create-new-aad-app.secret.label": "Secret",
@@ -255,6 +262,7 @@
255262
"main-navigation.dashboard": "Dash",
256263
"main-navigation.data": "Data",
257264
"main-navigation.gallery": "Gallery",
265+
"main-navigation.home": "Home",
258266
"main-navigation.jobs": "Jobs",
259267
"main-navigation.jobschedules": "Job schedules",
260268
"main-navigation.label": "Main sidebar",
@@ -357,11 +365,12 @@
357365
"profile-button.about": "About",
358366
"profile-button.authentication": "Authentication",
359367
"profile-button.keybindings": "Keybindings",
360-
"profile-button.logout": "Logout",
361368
"profile-button.playground": "Playground",
362369
"profile-button.profile": "Profile",
363370
"profile-button.report": "Report a bug or feature request",
364371
"profile-button.settings": "Settings",
372+
"profile-button.sign-in": "Sign in",
373+
"profile-button.sign-out": "Sign out",
365374
"profile-button.thirdPartyNotices": "Third party notices",
366375
"profile-button.viewLogs": "View logs",
367376
"profile-button.viewTheme": "View theme colors",
@@ -397,6 +406,8 @@
397406
"select-dropdown.unselected": "Unselected",
398407
"server-error.debug-button-label": "Toggle troubleshooting info",
399408
"settings.advancedSettings": "Advanced settings",
409+
"settings.external-browser-auth": "Use system browser for authentication",
410+
"settings.external-browser-auth-hint": "Organizations with certain access policies may require sign-in with an internal window. Unset if you experience issues.",
400411
"settings.gallerySettings": "Gallery settings",
401412
"settings.general": "General",
402413
"settings.reset": "Reset to default settings",

desktop/package-lock.json

Lines changed: 27 additions & 27 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

desktop/package.json

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,9 @@
102102
"@angular-eslint/eslint-plugin": "^13.2.1",
103103
"@angular-eslint/eslint-plugin-template": "^13.2.1",
104104
"@angular-eslint/template-parser": "^13.2.1",
105-
"@angular/compiler-cli": "^11.0.0",
105+
"@angular/compiler-cli": "^11.2.12",
106106
"@batch/common-config": "^1.0.0",
107-
"@ngtools/webpack": "^11.0.0",
107+
"@ngtools/webpack": "^11.2.12",
108108
"@playwright/test": "^1.43.1",
109109
"@types/chart.js": "^2.9.24",
110110
"@types/d3": "^7.4.0",
@@ -185,17 +185,17 @@
185185
},
186186
"dependencies": {
187187
"@azure/core-util": "1.4.0",
188-
"@angular/animations": "^11.0.0",
189-
"@angular/cdk": "^11.0.0",
190-
"@angular/common": "^11.0.0",
191-
"@angular/compiler": "^11.0.0",
192-
"@angular/core": "^11.0.0",
193-
"@angular/forms": "^11.0.0",
194-
"@angular/material": "^11.0.0",
195-
"@angular/platform-browser": "^11.0.0",
196-
"@angular/platform-browser-dynamic": "^11.0.0",
197-
"@angular/platform-server": "^11.0.0",
198-
"@angular/router": "^11.0.0",
188+
"@angular/animations": "^11.2.12",
189+
"@angular/cdk": "^11.2.12",
190+
"@angular/common": "^11.2.12",
191+
"@angular/compiler": "^11.2.12",
192+
"@angular/core": "^11.2.12",
193+
"@angular/forms": "^11.2.12",
194+
"@angular/material": "^11.2.12",
195+
"@angular/platform-browser": "^11.2.12",
196+
"@angular/platform-browser-dynamic": "^11.2.12",
197+
"@angular/platform-server": "^11.2.12",
198+
"@angular/router": "^11.2.12",
199199
"@azure/bonito-core": "^1.0.0",
200200
"@azure/bonito-ui": "^1.0.0",
201201
"@azure/msal-node": "^2.7.0",

desktop/src/@batch-flask/core/aad/access-token/access-token.model.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,3 +61,8 @@ export class AccessToken {
6161
return `${this.tokenType} ${this.accessToken}`;
6262
}
6363
}
64+
65+
export interface AuthEvent {
66+
type: "signout" | "cancel";
67+
message?: string;
68+
}

desktop/src/@batch-flask/core/material.module.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { NgModule } from "@angular/core";
33
import { MatAutocompleteModule } from "@angular/material/autocomplete";
44
import { MatButtonModule } from "@angular/material/button";
55
import { MatButtonToggleModule } from "@angular/material/button-toggle";
6+
import { MatSlideToggleModule } from "@angular/material/slide-toggle";
67
import { MatCheckboxModule } from "@angular/material/checkbox";
78
import { MatNativeDateModule } from "@angular/material/core";
89
import { MatDatepickerModule } from "@angular/material/datepicker";
@@ -31,6 +32,7 @@ const modules = [
3132
MatDatepickerModule,
3233
MatDialogModule,
3334
MatSidenavModule,
35+
MatSlideToggleModule,
3436
PortalModule,
3537
MatNativeDateModule,
3638
];

desktop/src/@batch-flask/ui/common.i18n.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,5 @@ common:
3333
value: Value
3434
version: Version
3535
yes: "Yes"
36+
welcome: Welcome to Batch Explorer
37+
copyright: Copyright

desktop/src/@batch-flask/ui/form/form.module.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ import { InputDirective } from "./input";
2424
import { KeyValuePickerComponent } from "./key-value-picker";
2525
import { SimpleFormComponent } from "./simple-form";
2626
import { SingleLineTextareaDirective } from "./single-line-textarea";
27+
import { SlideToggleComponent } from "./slide-toggle";
2728

2829
// components
2930
// Add submodules there
@@ -47,6 +48,7 @@ const components = [
4748
FormPickerItemTemplateDirective,
4849
FormSectionComponent,
4950
HintComponent,
51+
SlideToggleComponent,
5052
InputDirective,
5153
KeyValuePickerComponent,
5254
SimpleFormComponent,

desktop/src/@batch-flask/ui/form/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ export * from "./form-picker";
44
export * from "./form-section";
55
export * from "./complex-form";
66
export * from "./simple-form";
7+
export * from "./slide-toggle";
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export * from "./slide-toggle.component";

0 commit comments

Comments
 (0)