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 · 9 comments
Open

Unable to log in #222

Nordstrom96 opened this issue Apr 29, 2024 · 9 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!

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

2 participants