Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to log in #222

Open
Nordstrom96 opened this issue Apr 29, 2024 · 12 comments
Open

Unable to log in #222

Nordstrom96 opened this issue Apr 29, 2024 · 12 comments

Comments

@Nordstrom96
Copy link

Hey, I'm unable to log in. Nothing happens when i click the top right corner for login.
Tried 2 versions.

@Micke-K
Copy link
Owner

Micke-K commented Apr 29, 2024

Hello!

Anything in the log file? Sounds like it failed to load the MSAL dll file. Any restrictions on the OS level eg AppLocker, ConstrainedLanguage mode etc.

Cheers

@Nordstrom96
Copy link
Author

Nordstrom96 commented Apr 30, 2024

Hey, sorry for the late answer.
Nothing has changed in our environment, and there shouldn't be anything blocking.

@Nordstrom96
Copy link
Author

intunefeilmeldmaster

@Micke-K
Copy link
Owner

Micke-K commented Apr 30, 2024

Hello,

Are you login in with a secret? Is this during automation or app login?

Any other information in the beginning of the log?

This could happen if PowerShell loads the "wrong" dll eg Microsoft.Identity.Client.dll from another folder.

Cheers

@Micke-K
Copy link
Owner

Micke-K commented Apr 30, 2024

You did say when you click to right corner.
The log states it is trying to login with a secret since row 586 is only used with a secret.

Check settings if you have specified Silent/Batch Job configuration and checked "Login with App in UI". Or if you specify secret on the command line when starting the app.

If you login with secret in UI, you will not be able to login with another user. Profile info has limited functionality.

Cheers!

image

@Nordstrom96
Copy link
Author

Simply opening the folder where it is installed/located, and "Start-withConsole.cmd"
Trying to log in > That error shows.

Intunefeilmeldmaster2

@Nordstrom96
Copy link
Author

Silent/batch job is empty.
Nothing checked off.

@Micke-K
Copy link
Owner

Micke-K commented Apr 30, 2024

Hmm that weird. Start-WithConsole.cmd does not have any arguments for Tenant and Certificate,.
I cannot explain how it can try to login with Certificate when $global:ClientSecret is not set. That is either set via command line or settings. Unless you have that variable in you global PowerShell environment.

It ends up on row 869 somehow because it calls Connect-MSALClientApp with -secret. I have no clue how that would happen without providing arguments or have it configured in Registry.

Cheers!

image

@Micke-K
Copy link
Owner

Micke-K commented Dec 8, 2024

Hello,

Did you ever figure this out?

Cheers!

@UK-steveO
Copy link

UK-steveO commented Feb 6, 2025

I'm still experiencing this. I did login some weeks back completely fine ( to Tenant A ) , on top left and had a pretty decent experience running an Export on Intune Manager, more recently it will not allow me to logon to any tenant ( does not even ask for Creds in the GUI as if the button or process fails ). The local software can be run standard or as local admin same issue. If it runs as local admin, it leaves the CMD window open - as per Nordstrom96
on Apr 30, 2024 error above..

Just seem to loop on this error in the CMD Window,

Running latest version: 3.9.8
Trigger function Invoke-ShowMainWindow
Trigger Invoke-ShowMainWindow in Compare
Trigger Invoke-ShowMainWindow in Documentation
Exception calling "WithAuthority" with "1" argument(s): "'authority' should be in URI format.
Parameter name: authority"
At C:\Temp\Intune_Manager\IntuneManagement-master\Extensions\MSALAuthentication.psm1:594 char:13

  •         $ClientApplicationBuilder = [Microsoft.Identity.Client.Co ...
    
  •         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : NotSpecified: (:) [], MethodInvocationException
    • FullyQualifiedErrorId : ArgumentException

You cannot call a method on a null-valued expression.
At C:\Temp\Intune_Manager\IntuneManagement-master\Extensions\MSALAuthentication.psm1:625 char:9

  •     $script:MSALApp = $ClientApplicationBuilder.Build()
    
  •     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidOperation: (:) [], RuntimeException
    • FullyQualifiedErrorId : InvokeMethodOnNull

Trigger function Invoke-GraphAuthenticationUpdated
Trigger Invoke-GraphAuthenticationUpdated in EndpointManager
Trigger Invoke-GraphAuthenticationUpdated in MSGraph
Clear cached values

@MThompsonTransurban
Copy link

@Micke-K I'm getting the below following a terminated session where it hung on documentation export

Worked great up until I had to kill the session mid export now won't let me in with the same errors.

@Micke-K
Copy link
Owner

Micke-K commented Feb 7, 2025

Hello,

Can you attach a full log file?

Have you tried removing the cached authentications file?

Cheers!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants