-
-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
github-actions
committed
Jul 9, 2021
1 parent
f9166fa
commit 79fb161
Showing
18 changed files
with
95 additions
and
230 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
...TheIdServer.MAUI/Aguacongas.TheIdServer.MAUI/Android/WebAuthenticationCallbackActivity.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace Aguacongas.TheIdServer.MAUI.Android | ||
{ | ||
class WebAuthenticationCallbackActivity | ||
{ | ||
} | ||
} |
15 changes: 0 additions & 15 deletions
15
src/Aguacongas.TheIdServer.MAUI/Aguacongas.TheIdServer.MAUI/Data/WeatherForecast.cs
This file was deleted.
Oops, something went wrong.
25 changes: 0 additions & 25 deletions
25
src/Aguacongas.TheIdServer.MAUI/Aguacongas.TheIdServer.MAUI/Data/WeatherForecastService.cs
This file was deleted.
Oops, something went wrong.
16 changes: 0 additions & 16 deletions
16
src/Aguacongas.TheIdServer.MAUI/Aguacongas.TheIdServer.MAUI/Pages/Counter.razor
This file was deleted.
Oops, something went wrong.
46 changes: 0 additions & 46 deletions
46
src/Aguacongas.TheIdServer.MAUI/Aguacongas.TheIdServer.MAUI/Pages/FetchData.razor
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
src/Aguacongas.TheIdServer.MAUI/Aguacongas.TheIdServer.MAUI/Pages/Index.razor
This file was deleted.
Oops, something went wrong.
25 changes: 15 additions & 10 deletions
25
src/Aguacongas.TheIdServer.MAUI/Aguacongas.TheIdServer.MAUI/Shared/MainLayout.razor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,20 @@ | ||
@inherits LayoutComponentBase | ||
@inject Notifier _notifier; | ||
@inject IStringLocalizerAsync<MainLayout> Localizer | ||
|
||
<div class="sidebar"> | ||
<NavMenu /> | ||
@inherits LayoutComponentBase | ||
|
||
<div class="sidebar bg-light"> | ||
<NavMenu /> | ||
</div> | ||
|
||
<div class="main"> | ||
<div class="top-row px-4"> | ||
<a href="https://docs.microsoft.com/aspnet/" target="_blank">About</a> | ||
</div> | ||
<div class="main bg-light mb-2"> | ||
<div class="top-row px-4 auth"> | ||
<EntityInfo /> | ||
<LoginDisplay /> | ||
</div> | ||
|
||
<div class="content px-4"> | ||
@Body | ||
</div> | ||
<div class="content px-4"> | ||
@Body | ||
</div> | ||
</div> | ||
<Toaster /> |
37 changes: 0 additions & 37 deletions
37
src/Aguacongas.TheIdServer.MAUI/Aguacongas.TheIdServer.MAUI/Shared/NavMenu.razor
This file was deleted.
Oops, something went wrong.
16 changes: 0 additions & 16 deletions
16
src/Aguacongas.TheIdServer.MAUI/Aguacongas.TheIdServer.MAUI/Shared/SurveyPrompt.razor
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,12 @@ | ||
using Aguacongas.TheIdServer.MAUI.Data; | ||
using Microsoft.AspNetCore.Components.WebView.Maui; | ||
using Microsoft.AspNetCore.Components.WebView.Maui; | ||
using Microsoft.Extensions.DependencyInjection; | ||
using Microsoft.Maui; | ||
using Microsoft.Maui.Controls.Compatibility; | ||
using Microsoft.Maui.Hosting; | ||
using Microsoft.AspNetCore.Components.WebAssembly.Hosting; | ||
using Microsoft.Extensions.Configuration; | ||
using Aguacongas.TheIdServer.BlazorApp.Models; | ||
using System.Collections.Generic; | ||
|
||
namespace Aguacongas.TheIdServer.MAUI | ||
{ | ||
|
@@ -20,10 +23,32 @@ public void Configure(IAppHostBuilder appBuilder) | |
{ | ||
fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular"); | ||
}) | ||
.ConfigureServices(services => | ||
.ConfigureAppConfiguration(builder => | ||
{ | ||
builder.AddInMemoryCollection(new Dictionary<string, string> | ||
{ | ||
["administratorEmail"] = "[email protected]", | ||
["apiBaseUrl"] = "https://localhost:5443/api", | ||
["authenticationPaths:remoteRegisterPath"] = "/identity/account/register", | ||
["authenticationPaths:remoteProfilePath"] = "/identity/account/manage", | ||
["loggingOptions:minimum"] = "", | ||
["userOptions:roleClaim"] = "role", | ||
["providerOptions:authority"] = "https://localhost:5443/", | ||
["providerOptions:clientId"] = "https://localhost:5443/", | ||
["providerOptions:defaultScopes:0"] = "openid", | ||
["providerOptions:defaultScopes:1"] = "profile", | ||
["providerOptions:defaultScopes:2"] = "theidserveradminapi", | ||
["providerOptions:postLogoutRedirectUri"] = "/authentication/logout-callback", | ||
["providerOptions:redirectUri"] = "/authentication/login-callback", | ||
["providerOptions:responseType"] = "code", | ||
["welcomeContenUrl"] = "/api/welcomefragment", | ||
}); | ||
}) | ||
.ConfigureServices((context, services) => | ||
{ | ||
services.AddBlazorWebView(); | ||
services.AddSingleton<WeatherForecastService>(); | ||
var settings = context.Configuration.Get<Settings>(); | ||
WebAssemblyHostBuilderExtensions.ConfigureServices(services, context.Configuration, settings, settings.ApiBaseUrl); | ||
}); | ||
} | ||
} | ||
|
Oops, something went wrong.