webjaved
09/19/2023, 9:42 AMwebjaved
09/22/2023, 8:07 AMSøren Mastrup
09/22/2023, 8:29 AMUser.Read
would be enoughSøren Mastrup
09/22/2023, 8:30 AMwebjaved
09/25/2023, 7:51 AMSøren Mastrup
09/25/2023, 8:16 AMwebjaved
09/25/2023, 8:51 AMSøren Mastrup
09/25/2023, 9:29 AMwebjaved
09/25/2023, 11:02 AMMike Chambers
09/25/2023, 4:52 PMwebjaved
09/26/2023, 9:18 AMInstall failed. Rolling back...
Package 'Microsoft.AspNetCore.Authentication.MicrosoftAccount.7.0.11' does not exist in project 'PrincipleNetworks.Web'
Package 'Microsoft.AspNetCore.Authentication.MicrosoftAccount.7.0.11' does not exist in folder 'D:\sites\packages'
Install-Package : Could not install package 'Microsoft.AspNetCore.Authentication.MicrosoftAccount 7.0.11'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.7.2',
but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.
At line:1 char:1
+ Install-Package Microsoft.AspNetCore.Authentication.MicrosoftAccount
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Install-Package], Exception
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand
This is the command that I am running via Package Manager;
Install-Package Microsoft.AspNetCore.Authentication.MicrosoftAccount
It's an Umbraco 8 Cloud project, how do I go about resolving this?
It's installed the packages and created the packages folder here: https://prnt.sc/jr-dned8YMx- - do I need to reference this folder somehow in my solution?
@Søren Mastrup @Mike Chamberswebjaved
09/26/2023, 9:56 AMwebjaved
09/27/2023, 9:56 AMSøren Mastrup
10/02/2023, 6:24 AMDenyLocalLogin = true;
This will prevent sign-in in with a local Umbraco account.
Based on the claims that are returned from AzureAD you assign the desired user-level in Umbraco (with your implementation).
In our implementation we have the group-mappings in appsettings.json
so it is easy to update. If no there is no matches, we disable the user.webjaved
10/17/2023, 2:37 PMInstall-Package Microsoft.AspNetCore.Authentication.MicrosoftAccount
See the attached image for the error. Surely it should be compatible?
CC @Søren Mastrup @Mike ChambersMike Chambers
10/17/2023, 2:42 PMInstall-Package Microsoft.AspNetCore.Authentication.MicrosoftAccount -Version 6.0.23
webjaved
10/17/2023, 3:54 PMwebjaved
10/17/2023, 4:05 PMMike Chambers
10/17/2023, 4:32 PMwebjaved
10/18/2023, 9:10 AMwebjaved
10/18/2023, 9:54 AMkdx-perbol
10/18/2023, 9:59 AMusing
? Or the wrong version of the NuGet. Is there a MS.Extensions.Options.Generic
? đwebjaved
10/18/2023, 10:09 AMkdx-perbol
10/18/2023, 11:56 AMIConfigureNamedOptions<BackOfficeExternalLoginProviderOptions>
. I'm guessing the Skrift article isn't up-to-date on neither Microsoft nor Umbraco. I also cannot find a citation for a non-generic IConfigureNamedOptions
anywhere...webjaved
10/18/2023, 12:16 PMkdx-perbol
10/18/2023, 12:27 PMwebjaved
10/18/2023, 12:31 PMwebjaved
10/18/2023, 12:51 PMwebjaved
10/19/2023, 1:47 PM//Obtained from user flows in your Azure B2C tenant
options.MetadataAddress = "https://sergiuazureadb2c.b2clogin.com/sergiuazureadb2c.onmicrosoft.com/v2.0/.well-known/openid-configuration?p=B2C_1_signin";
The client has sent this over to me;
> You were following a guide that describes using an App registration. Iâm not aware of a metadata URL for an App Registration.
>
> Are you confident that the guide is still applicable?
>
> Reason I ask is that a metadata URL is applicable to the other way of doing this (the more common way) by using an Enterprise Application.
>
> That looks like this (WordPress as example)
>
> This requires a certificate from Azure to be uploaded to the application.
>
> Thereâs a metadataURL with all the other info.
>
> In turn it needs a Reply URL and Entity ID configuring (at minimum)
>
> Do we need to review the current documentation youâre looking at and double check?kdx-perbol
10/19/2023, 4:33 PMSergiuAzureADB2C
with your domain.
Are you using a flow named B2C_1_signin?
kdx-perbol
10/19/2023, 4:38 PMwebjaved
10/19/2023, 4:47 PMkdx-perbol
10/19/2023, 4:55 PMwebjaved
10/20/2023, 8:44 AMwebjaved
10/20/2023, 8:50 AMAn unhandled exception occurred while processing the request.
AuthenticationException: The remote certificate is invalid according to the validation procedure: RemoteCertificateNameMismatch
System.Net.Security.SslStream.SendAuthResetSignal(ProtocolToken message, ExceptionDispatchInfo exception)
HttpRequestException: The SSL connection could not be established, see inner exception.
System.Net.Http.ConnectHelper.EstablishSslConnectionAsync(SslClientAuthenticationOptions sslOptions, HttpRequestMessage request, bool async, Stream stream, CancellationToken cancellationToken)
IOException: IDX20804: Unable to retrieve document from: 'System.String'.
Microsoft.IdentityModel.Protocols.HttpDocumentRetriever.GetDocumentAsync(string address, CancellationToken cancel)
InvalidOperationException: IDX20803: Unable to obtain configuration from: 'System.String'.
Microsoft.IdentityModel.Protocols.ConfigurationManager<T>.GetConfigurationAsync(CancellationToken cancel)
When I've replaced the URL with the following I get the above error message.
options.MetadataAddress = "https://principle-networks.com.b2clogin.com/principle-networks.com.onmicrosoft.com/v2.0/.well-known/openid-configuration?p=B2C_1_signin";
webjaved
10/20/2023, 8:51 AMwebjaved
10/24/2023, 11:47 AMwebjaved
10/24/2023, 11:48 AMwebjaved
10/27/2023, 4:09 PMwebjaved
10/27/2023, 4:09 PMcuriota
10/30/2023, 12:47 AMwebjaved
10/30/2023, 9:10 AMwebjaved
10/30/2023, 9:22 AMcuriota
10/30/2023, 4:59 PMcuriota
10/30/2023, 5:02 PMwebjaved
10/31/2023, 9:18 AMwebjaved
11/03/2023, 12:42 PMwebjaved
11/03/2023, 12:46 PMcuriota
11/03/2023, 12:49 PMwebjaved
11/03/2023, 12:50 PMcuriota
11/03/2023, 12:53 PMwebjaved
11/03/2023, 1:00 PMwebjaved
11/07/2023, 9:18 AMcuriota
11/07/2023, 3:51 PMwebjaved
11/09/2023, 3:34 PMwebjaved
11/09/2023, 3:52 PMkdx-perbol
11/09/2023, 6:04 PMwebjaved
11/10/2023, 9:20 AMkdx-perbol
11/10/2023, 1:06 PMwebjaved
11/10/2023, 2:46 PMwebjaved
11/13/2023, 12:44 PMwebjaved
11/21/2023, 10:43 AMwebjaved
11/21/2023, 11:21 AMwebjaved
12/06/2023, 12:26 PM