Open adamgell opened 9 months ago
Hi Adam.
Thanks for raising this issue.
I will take a look during the weekend and let you know!
Thank you. Let me know if I can provide any additional information or help test a change. Looking forward to using this tool.
I have taken a look, and I am experiencing authentication issues every now and then. not consistently, which is very strange indeed.
I am working on a new release that fixes multiple small bugs like this one. Hopefully I will have it ready this week. Will let you know!
I will keep an eye out!
A new version is now available - 0.2.2-beta.
You'll find it here - https://github.com/Kvikku/IntuneAssignments/releases
Please give it a try when you get the time, and report back if the issue you were experiencing is still present or not :)
seeing the same error on my pc. Gonna try a new VM and see what happens.
I got past the auth error on a new VM.
Seeing this now. What more info do you need?
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.ArgumentException: The authority URI should have at least one segment in the path (i.e. https://<host>/<path>/...). (Parameter 'authority')
at Microsoft.Identity.Client.AuthorityInfo.ValidateAndCreateAuthorityUri(String authority, Nullable`1 authorityType)
at Microsoft.Identity.Client.AuthorityInfo.FromAuthorityUri(String authorityUri, Boolean validateAuthority)
at Microsoft.Identity.Client.Instance.Authority.CreateAuthority(String authority, Boolean validateAuthority)
at Microsoft.Identity.Client.AbstractApplicationBuilder`1.WithAuthority(String authorityUri, Boolean validateAuthority)
at Microsoft.Identity.Client.AbstractApplicationBuilder`1.WithAuthority(Uri authorityUri, Boolean validateAuthority)
at IntuneAssignments.TokenProvider.GetAuthorizationTokenAsync(Uri uri, Dictionary`2 additionalAuthenticationContext, CancellationToken cancellationToken) in C:\Github\IntuneAssignments\InteractiveGraphClient.cs:line 87
at Microsoft.Kiota.Abstractions.Authentication.BaseBearerTokenAuthenticationProvider.AuthenticateRequestAsync(RequestInformation request, Dictionary`2 additionalAuthenticationContext, CancellationToken cancellationToken)
at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.GetHttpResponseMessage(RequestInformation requestInfo, CancellationToken cancellationToken, Activity activityForAttributes, String claims, Boolean isStreamResponse)
at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.SendAsync[ModelType](RequestInformation requestInfo, ParsableFactory`1 factory, Dictionary`2 errorMapping, CancellationToken cancellationToken)
at Microsoft.Graph.Beta.DeviceAppManagement.MobileApps.MobileAppsRequestBuilder.GetAsync(Action`1 requestConfiguration, CancellationToken cancellationToken)
at IntuneAssignments.Form1.ListAllApps() in C:\Github\IntuneAssignments\Form1.cs:line 642
at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__128_0(Object state)
at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
at System.Reflection.MethodBaseInvoker.InvokeDirectByRefWithFewArgs(Object obj, Span`1 copyOfArgs, BindingFlags invokeAttr)
************** Loaded Assemblies **************
System.Private.CoreLib
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.3\System.Private.CoreLib.dll
----------------------------------------
IntuneAssignments
Assembly Version: 1.0.0.0
Location: C:\Program Files (x86)\SundetCorp\Intune Assignment Installer\IntuneAssignments.dll
----------------------------------------
System.Runtime
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.3\System.Runtime.dll
----------------------------------------
System.Windows.Forms
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\8.0.3\System.Windows.Forms.dll
----------------------------------------
System.ComponentModel.Primitives
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.3\System.ComponentModel.Primitives.dll
----------------------------------------
System.Windows.Forms.Primitives
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\8.0.3\System.Windows.Forms.Primitives.dll
----------------------------------------
System.Drawing.Primitives
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.3\System.Drawing.Primitives.dll
----------------------------------------
System.Collections.Specialized
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.3\System.Collections.Specialized.dll
----------------------------------------
System.Runtime.InteropServices
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.3\System.Runtime.InteropServices.dll
----------------------------------------
System.Threading
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.3\System.Threading.dll
----------------------------------------
System.Diagnostics.TraceSource
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.3\System.Diagnostics.TraceSource.dll
----------------------------------------
System.Collections
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.3\System.Collections.dll
----------------------------------------
System.Drawing.Common
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\8.0.3\System.Drawing.Common.dll
----------------------------------------
Microsoft.Win32.Primitives
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.3\Microsoft.Win32.Primitives.dll
----------------------------------------
System.ComponentModel.EventBasedAsync
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.3\System.ComponentModel.EventBasedAsync.dll
----------------------------------------
System.Threading.Thread
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.3\System.Threading.Thread.dll
----------------------------------------
Accessibility
Assembly Version: 4.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\8.0.3\Accessibility.dll
----------------------------------------
System.ComponentModel.TypeConverter
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.3\System.ComponentModel.TypeConverter.dll
----------------------------------------
System.ComponentModel
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.3\System.ComponentModel.dll
----------------------------------------
System.Numerics.Vectors
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.3\System.Numerics.Vectors.dll
----------------------------------------
System.Resources.Extensions
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\8.0.3\System.Resources.Extensions.dll
----------------------------------------
System.Memory
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.3\System.Memory.dll
----------------------------------------
System.Drawing
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\8.0.3\System.Drawing.dll
----------------------------------------
System.ObjectModel
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.3\System.ObjectModel.dll
----------------------------------------
Microsoft.Win32.SystemEvents
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\8.0.3\Microsoft.Win32.SystemEvents.dll
----------------------------------------
System.Linq
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.3\System.Linq.dll
----------------------------------------
System.Collections.NonGeneric
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.3\System.Collections.NonGeneric.dll
----------------------------------------
System.Collections.Concurrent
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.3\System.Collections.Concurrent.dll
----------------------------------------
System.Runtime.Loader
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.3\System.Runtime.Loader.dll
----------------------------------------
System.Diagnostics.FileVersionInfo
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.3\System.Diagnostics.FileVersionInfo.dll
----------------------------------------
System.Private.Uri
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.3\System.Private.Uri.dll
----------------------------------------
Microsoft.Graph.Beta
Assembly Version: 5.63.0.0
Location: C:\Program Files (x86)\SundetCorp\Intune Assignment Installer\Microsoft.Graph.Beta.dll
----------------------------------------
Microsoft.Kiota.Abstractions
Assembly Version: 1.7.5.0
Location: C:\Program Files (x86)\SundetCorp\Intune Assignment Installer\Microsoft.Kiota.Abstractions.dll
----------------------------------------
Microsoft.Graph.Core
Assembly Version: 3.1.6.0
Location: C:\Program Files (x86)\SundetCorp\Intune Assignment Installer\Microsoft.Graph.Core.dll
----------------------------------------
System.Console
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.3\System.Console.dll
----------------------------------------
System.Text.Encoding.Extensions
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.3\System.Text.Encoding.Extensions.dll
----------------------------------------
System.Net.Http
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.3\System.Net.Http.dll
----------------------------------------
System.Net.Primitives
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.3\System.Net.Primitives.dll
----------------------------------------
Microsoft.Kiota.Http.HttpClientLibrary
Assembly Version: 1.3.4.0
Location: C:\Program Files (x86)\SundetCorp\Intune Assignment Installer\Microsoft.Kiota.Http.HttpClientLibrary.dll
----------------------------------------
System.Diagnostics.Tracing
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.3\System.Diagnostics.Tracing.dll
----------------------------------------
System.Diagnostics.DiagnosticSource
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.3\System.Diagnostics.DiagnosticSource.dll
----------------------------------------
System.Text.RegularExpressions
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.3\System.Text.RegularExpressions.dll
----------------------------------------
System.Reflection.Emit.Lightweight
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.3\System.Reflection.Emit.Lightweight.dll
----------------------------------------
System.Reflection.Emit.ILGeneration
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.3\System.Reflection.Emit.ILGeneration.dll
----------------------------------------
System.Reflection.Primitives
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.3\System.Reflection.Primitives.dll
----------------------------------------
Microsoft.Kiota.Serialization.Json
Assembly Version: 1.1.2.0
Location: C:\Program Files (x86)\SundetCorp\Intune Assignment Installer\Microsoft.Kiota.Serialization.Json.dll
----------------------------------------
Microsoft.Kiota.Serialization.Text
Assembly Version: 1.1.1.0
Location: C:\Program Files (x86)\SundetCorp\Intune Assignment Installer\Microsoft.Kiota.Serialization.Text.dll
----------------------------------------
Microsoft.Kiota.Serialization.Form
Assembly Version: 1.1.1.0
Location: C:\Program Files (x86)\SundetCorp\Intune Assignment Installer\Microsoft.Kiota.Serialization.Form.dll
----------------------------------------
Microsoft.Kiota.Serialization.Multipart
Assembly Version: 1.1.1.0
Location: C:\Program Files (x86)\SundetCorp\Intune Assignment Installer\Microsoft.Kiota.Serialization.Multipart.dll
----------------------------------------
Std.UriTemplate
Assembly Version: 1.0.0.0
Location: C:\Program Files (x86)\SundetCorp\Intune Assignment Installer\Std.UriTemplate.dll
----------------------------------------
Microsoft.Identity.Client
Assembly Version: 4.57.0.0
Location: C:\Program Files (x86)\SundetCorp\Intune Assignment Installer\Microsoft.Identity.Client.dll
----------------------------------------
Microsoft.IdentityModel.Abstractions
Assembly Version: 7.2.0.0
Location: C:\Program Files (x86)\SundetCorp\Intune Assignment Installer\Microsoft.IdentityModel.Abstractions.dll
----------------------------------------
System.Threading.ThreadPool
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.3\System.Threading.ThreadPool.dll
----------------------------------------
System.Diagnostics.StackTrace
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.3\System.Diagnostics.StackTrace.dll
----------------------------------------
System.Reflection.Metadata
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.3\System.Reflection.Metadata.dll
----------------------------------------
System.Collections.Immutable
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.3\System.Collections.Immutable.dll
----------------------------------------
System.IO.MemoryMappedFiles
Assembly Version: 8.0.0.0
Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.3\System.IO.MemoryMappedFiles.dll
----------------------------------------
************** JIT Debugging **************
I have seen the error message related to Authority URI before. Can you first confirm that the Tenant ID and Client ID is correct?
Thank you for your patience!
Hi,
Log:
Tried it a few times and got the same experience.
Any idea?