Commit Graph

35 Commits

Author SHA1 Message Date
Daniel Roth 468af978a3 Update Blazor WebAssembly survey link for 3.2.0-preview5 2020-04-14 10:11:55 -07:00
Pranav K 1e70883e87
Create a ref-assembly package for HttpHandler (#20382)
* Create a ref-assembly package for HttpHandler

Fixes #19202
2020-04-13 14:07:15 -07:00
Steve Sanderson 05990683cf
Unconditionally enable razor pages in hosted template. Fixes #20791 (#20792) 2020-04-13 17:53:54 +01:00
Javier Calvarro Nelson 546b52004c
[Blazor][Wasm] Adds HttpMessageHandler to automatically attach tokens to outgoing requests (#20682)
* Adds an authorization handler for integration with HttpClient in different scnearios.
* Adds a message handler to streamline calling protected resources on the same base address.
2020-04-13 04:27:53 -07:00
Javier Calvarro Nelson f34ef732d2
[Blazor][Wasm] Auth cleanups (#20587)
* Avoid using query parameter when passing messages to the error UI.
* Adds an additional parameter to automatically perform the redirect.
* Fix provisioning additional tokens in MACWA.
* Fix create solution with spaces
* Cleanup Msal startup APIs.
* Rename UserFactory -> AccountClaimsPrincipalFactory
2020-04-06 16:07:17 -07:00
Steve Sanderson 05ee136e87 Rename site.css to app.css. Fixes #19779 2020-03-31 12:31:57 +01:00
Steve Sanderson c877f88026 Add error page to hosted server project. Fixes #19670 2020-03-31 12:31:57 +01:00
Artak 87539a81f9
Removed the `useWebAssemblyDebugging` flag (#20325) 2020-03-30 13:00:09 -07:00
Pranav K cb6858fe31
Update to using System.Net.Http.Json (#20195) 2020-03-26 10:13:23 -07:00
Javier Calvarro Nelson b0a95d05e0
[Blazor] Auth fixes (#20191)
* Adds MetadataAddress property to OidcProviderOptions.
* Sets defaults for the Msal cache location on the provider initialization.
* Updates the template to avoid redirecting to the login page if the user is already authenticated.
* Fixes startup APIs for AddRemoteAuthentication.
* Fixes TryGetToken for the Blazor MSAL library when the token can't be acquired silently.
2020-03-26 09:07:46 -07:00
Pranav K de2fa4c69c Update versions
* Update Blazor version to preview4
* Update ASP.NET Core references to 3.1.3
* Remove DisableImplicitComponentsAnalyzers workaround
2020-03-25 15:59:17 -07:00
Steve Sanderson bbe9cca327
Write hash to service worker on publish (#20131)
* Write SWAM version into service worker output

* Update project template

* Add publishing test

* Update src/Components/WebAssembly/Build/src/targets/ServiceWorkerAssetsManifest.targets

Co-Authored-By: Pranav K <prkrishn@hotmail.com>

* Add E2E test for hosted PWA too

* Avoid test clashes

* E2E test fix

* E2E test fix

* E2E test fix

Co-authored-by: Pranav K <prkrishn@hotmail.com>
2020-03-25 20:06:03 +00:00
Pranav K 47536a3c14
Blazor wasm preview4 (#20117)
* Restore public API contract on WebAssemblyJSRuntime (#19968)

* Shrink icon-512.png (#19999)

* Use custom DebugProxyHost to initialize DebugProxy config (#19980)

Addresses #19909

* Spruce up WebAssemblyHostEnvironment interface and use (#20008)

* Load .dlls/.wasm/.pdb in parallel with dotnet.*.js. Fixes #18898 (#20029)

* Add BaseAddress property to WebAssemblyHostEnvironment (#20019)

- Adds `BaseAddress` to `IWebAssemblyHostEnvironment`
- Uses unmarshalled APIs to extract application host
- Move NavigationManager initialization to startup code
- Fix subdir mapping in ClientSideHostingTest

Addresses #19910

Co-authored-by: Steve Sanderson <SteveSandersonMS@users.noreply.github.com>
Co-authored-by: Safia Abdalla <safia@safia.rocks>
Co-authored-by: Safia Abdalla <safia@microsoft.com>
2020-03-25 01:51:55 +00:00
Safia Abdalla 49bf3bb738
Resolve issues in Blazor PWA template (#19898) 2020-03-16 16:55:21 -07:00
Safia Abdalla 0582767e67
Fix Blazor icon for PWAs on iOS (#19897)
- Add link reference to Blazor icon in index.html to support icons on iOS
 - Make Blazor icon background white instead of transparent
- Remove deleted projects from solution file

Addresses #19883
2020-03-16 14:20:01 -07:00
Artak 0006fdf093
Revert "Remove inspectUri launch setting (#19672)" (#19786)
* Revert "Remove inspectUri launch setting (#19672)"

This reverts commit 9f4904886e.

* React to review feedback
2020-03-12 11:35:44 -07:00
Pranav K 064f1562fa
Remove WebAssembly.JSInterop 2020-03-10 13:57:32 -07:00
Daniel Roth 810a9fad0f
Update SurveyPrompt.razor (#19712) 2020-03-09 13:02:50 -07:00
Artak 9f4904886e
Remove inspectUri launch setting (#19672)
* Remove inspectUri launch setting

* Removed inspectUri from launchSettings
2020-03-07 09:50:22 -08:00
Steve Sanderson 0216ca2086
Stop service worker interfering with Identity UI (#19400) 2020-02-27 22:42:44 -08:00
Steve Sanderson d9ed5166ff Cache authentication configuration in IndividualLocalAuth && Hosted case 2020-02-26 17:43:03 +00:00
Steve Sanderson 90d7d0b368 Include favicon in service worker cache 2020-02-26 17:43:03 +00:00
Javier Calvarro Nelson a52e708e55
[Blazor] Add instructions to configure the authority when it is missing
* For individual auth cases, when creating the template from Visual Studio there is no way to provide parameters.
* This change adds a message in the index.html to indicate the steps that need to be followed.
2020-02-26 07:39:28 -08:00
Artak 20a5d7a086
Include `inspectUri` in the launch profiles (#19308) 2020-02-25 10:33:47 -08:00
Javier Calvarro Nelson 226f461806
[Blazor] Remove compression middleware from the template (#19285)
Remove response compression from the template
2020-02-24 11:03:00 -08:00
Pranav K 7ba8d06717
BlazorWASM: API review (#19219)
Fixes https://github.com/dotnet/aspnetcore/issues/13174
2020-02-21 12:58:02 -08:00
Javier Calvarro Nelson 0541e19ac2
[Blazor][Wasm] Adds support for AAD and AADB2C using msal.js (#19190)
* Adds a new library Microsoft.Authentication.WebAssembly.Msal that handles authentication for Blazor Webassembly applications using msal.js
2020-02-21 09:12:36 -08:00
Javier Calvarro Nelson 9ded8e17d4
Change MapBlazorWebAssemblyApplication to UseBlazorFrameworkFiles (#19198) 2020-02-21 04:20:41 -08:00
Marlon Regenhardt 6a85855fbb
[Blazor][Wasm] Move HttpClient from default services to Program.Main (#19119)
* [Blazor][Wasm] Move HttpClient from default services to extension method (#16929)

* Apply suggestions from code review

Co-authored-by: Steve Sanderson <SteveSandersonMS@users.noreply.github.com>
2020-02-20 10:47:49 -08:00
Steve Sanderson e9ccd7fe08 Only the PWA template should produce ServiceWorkerAssetsManifest 2020-02-20 12:16:27 +00:00
Javier Calvarro Nelson c39bc6a6bd
[Blazor] Move to MapBlazorWebAssemblyApplication (#19147)
Move to MapBlazorWebAssemblyApplication as the way to map blazor files into a hosted application.
2020-02-19 23:56:43 -08:00
Artak 6342a812f3
Update launchSettings.json for BlazorWASM (#19136)
* Update launchSettings.json for BlazorWASM

* Remove the `useWebAssemblyDebugging` setting as its no longer needed
2020-02-19 13:25:21 -08:00
Steve Sanderson 38f3267208 Fix token in PWA manifest 2020-02-19 16:17:02 +00:00
Javier Calvarro Nelson 0e155fd7ca
[Fixes #12588][Blazor] Move Blazor to use Static Web Assets (#18409)
* [Blazor] Move Blazor to use Static Web Assets
* Plugs-in Blazor wasm through the static web assets infrastructure.
* Avoids the need for a custom Blazor.config file.
* Removes broken auto-rebuild and debug support.
* Removes unnecessary server-side Blazor helpers.
2020-02-19 04:05:03 -08:00
Pranav K c935e9aa2d
Blazor WebAssembly package renames (#19026)
Fixes https://github.com/dotnet/aspnetcore/issues/18384
2020-02-18 10:54:28 -08:00