letsencrypt-siteextension icon indicating copy to clipboard operation
letsencrypt-siteextension copied to clipboard

Exception in Automated Installation.

Open StevenTCramer opened this issue 7 years ago • 3 comments

When trying to create new certificate I populate the Authentication Settings and when I press next I get the following:

System.ArgumentException: 'authority' should be in Uri format Parameter name: authority at Microsoft.IdentityModel.Clients.ActiveDirectory.Authenticator.DetectAuthorityType(String authority) at Microsoft.IdentityModel.Clients.ActiveDirectory.Authenticator..ctor(String authority, Boolean validateAuthority) at Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationContext..ctor(String authority) at LetsEncrypt.Azure.Core.ArmHelper.GetToken(IAzureEnvironment model) in J:\Projects\letsencrypt-siteextension\LetsEncrypt.SiteExtension.Core\ArmHelper.cs:line 39 at LetsEncrypt.Azure.Core.ArmHelper.GetWebSiteManagementClient(IAzureWebAppEnvironment model) in J:\Projects\letsencrypt-siteextension\LetsEncrypt.SiteExtension.Core\ArmHelper.cs:line 19 at LetsEncrypt.SiteExtension.Controllers.HomeController.Index(AuthenticationModel model)

StevenTCramer avatar Feb 18 '18 05:02 StevenTCramer

To answer my own issue: You get the above error if you have then incorrect Tenant in the form.

Something for back log could be catch the exception and give a better error message.

StevenTCramer avatar Feb 18 '18 06:02 StevenTCramer

IMHO a better error message is good enough reason to keep this open...

ohadschn avatar Feb 18 '18 11:02 ohadschn

Wow, this thread really helped me. I second that a better error message is important.

oridayne avatar Aug 03 '18 19:08 oridayne