Don(t block the administration
Some checks failed
Dotnet build and test / build (pull_request) Failing after 15s
Some checks failed
Dotnet build and test / build (pull_request) Failing after 15s
This commit is contained in:
parent
30bcb070d9
commit
2ff595a3ef
11 changed files with 61 additions and 7 deletions
|
|
@ -8,6 +8,7 @@
|
|||
<FileVersion>1.1.0.0</FileVersion>
|
||||
<InformationalVersion>1.1.0-feat-calls.1+472.Branch.feat-calls.Sha.d8200cb98ddef152313ef1f102b866c50f107cbd</InformationalVersion>
|
||||
<Version>1.1.0-feat-calls.1</Version>
|
||||
<PublishTrimmed>false</PublishTrimmed>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Avalonia.Browser" />
|
||||
|
|
@ -15,4 +16,4 @@
|
|||
<ItemGroup>
|
||||
<ProjectReference Include="..\PostIt\PostIt.csproj" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
</Project>
|
||||
|
|
|
|||
|
|
@ -14,6 +14,8 @@ sealed class Program
|
|||
public static void Main(string[] args)
|
||||
{
|
||||
Platform.IsPodcastSupported = true;
|
||||
Platform.CreateBrowser = () => new CustomSchemeBrowser("postit://callback");
|
||||
|
||||
CLIOptionHandler.HandleArgs(args);
|
||||
|
||||
// Short-circuit 2nd-instance launches (OS handing us the
|
||||
|
|
|
|||
|
|
@ -69,7 +69,7 @@ public static class Platform
|
|||
/// <c>LoginAsync</c> will surface a clear error.
|
||||
/// </summary>
|
||||
public static System.Func<IBrowser?>? CreateBrowser { get; set; } =
|
||||
() => new CustomSchemeBrowser(CustomScheme);
|
||||
() => null;
|
||||
|
||||
/// <summary>
|
||||
/// Optional platform hook used by the shared billing form to request a
|
||||
|
|
|
|||
|
|
@ -17,6 +17,8 @@ public partial class AuthenticationSettings : ObservableObject
|
|||
/// in <c>PostIt.Android/Properties/AndroidManifest.xml</c> must match.
|
||||
/// </summary>
|
||||
public const string AndroidRedirectUri = "android://postit-signin";
|
||||
public const string BrowserRedirectUri = "https://postit.pschneider.fr/callback";
|
||||
|
||||
|
||||
public const string DefaultAuthority = "https://yavsc.pschneider.fr";
|
||||
|
||||
|
|
|
|||
|
|
@ -450,7 +450,7 @@ public partial class Settings : ViewModelBase
|
|||
this.Authentication.ClientId = string.IsNullOrWhiteSpace(settings.Authentication.ClientId) ?
|
||||
AuthenticationSettings.DefaultClientId : settings.Authentication.ClientId;
|
||||
this.Authentication.RedirectUri = string.IsNullOrWhiteSpace(settings.Authentication.RedirectUri) ?
|
||||
AuthenticationSettings.DesktopRedirectUri : settings.Authentication.RedirectUri;
|
||||
AuthenticationSettings.BrowserRedirectUri : settings.Authentication.RedirectUri;
|
||||
if (settings.Authentication.Scopes is null || settings.Authentication.Scopes.Length == 0)
|
||||
{
|
||||
this.Authentication.Scopes = AuthenticationSettings.DefaultScopes;
|
||||
|
|
@ -513,7 +513,7 @@ public partial class Settings : ViewModelBase
|
|||
{
|
||||
Authority = AuthenticationSettings.DefaultAuthority,
|
||||
ClientId = AuthenticationSettings.DefaultClientId,
|
||||
RedirectUri = AuthenticationSettings.DesktopRedirectUri,
|
||||
RedirectUri = AuthenticationSettings.BrowserRedirectUri,
|
||||
Scopes = AuthenticationSettings.DefaultScopes
|
||||
};
|
||||
this.DarkMode = false;
|
||||
|
|
|
|||
Loading…
Reference in a new issue