GithubHelp home page GithubHelp logo

Comments (9)

snobu avatar snobu commented on July 21, 2024

Looks fine here using ARMClient v1.2.0.0:

C:\>armclient upn [email protected] PaSSworD

User: [email protected], Tenant: xxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxxxxxxx
(SomeTenant.onmicrosoft.com)
        There are 0 subscriptions

Are you sure the password isn't tripping up the PowerShell parser? Do you have the same results in cmd.exe?

from armclient.

256tjq1l9mbzvh17lmosharklaserscom avatar 256tjq1l9mbzvh17lmosharklaserscom commented on July 21, 2024

I do get the same error in cmd. Is there some way to encode or encapsulate the username and password so that odd characters don't confuse anything?

Looking at it now, it returns really quickly (within 1 second, including VPN latency). whereas calls to ARMCLIENT login take a metaphorical eternity.

from armclient.

snobu avatar snobu commented on July 21, 2024

What happens if you don't pass in the password? You should get a Password: prompt.

from armclient.

256tjq1l9mbzvh17lmosharklaserscom avatar 256tjq1l9mbzvh17lmosharklaserscom commented on July 21, 2024

It fails the same way.

from armclient.

snobu avatar snobu commented on July 21, 2024
PS C:\> armclient upn [email protected] fdsfds
Sequence contains no elements

Alright, looks like i can repro. Let me take a closer look at what's going on.

from armclient.

256tjq1l9mbzvh17lmosharklaserscom avatar 256tjq1l9mbzvh17lmosharklaserscom commented on July 21, 2024

It seems to be coming from: BaseAuthHelper.GetAuthorizationResultByUpn, on the line:

var context = new AuthenticationContext

from armclient.

256tjq1l9mbzvh17lmosharklaserscom avatar 256tjq1l9mbzvh17lmosharklaserscom commented on July 21, 2024

Is it possible that I need to pass a custom tenant Id in when trying to create the authority for accessing a school or work account?

from armclient.

snobu avatar snobu commented on July 21, 2024

image

Yes, the ADAL library doesn't seem to like that. @suwatch, @ahmelsayed is this by design?
Works fine when using an org id ([email protected]).

from armclient.

256tjq1l9mbzvh17lmosharklaserscom avatar 256tjq1l9mbzvh17lmosharklaserscom commented on July 21, 2024

In my case the tenant is [TenantGuid] ([TenantName].onmicrosoft.com)

The user is a personal hotmail account. I'm not sure about how the hotmail account has permissions to our tenant AD's OMS instance. I am not an azure administrator, nor an AD administrator.

from armclient.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.