Git Product home page Git Product logo

Comments (8)

nevseev avatar nevseev commented on June 9, 2024 1

There’s a pull request pending, which fixes the issue. Nothing to do with the client Id. Assignment operator was used instead of the equality one in an if statement.

from vscode-extension.

mleziva avatar mleziva commented on June 9, 2024 1

Thanks, that will make the error actual apparent. Turns out my issue was that the Tenant needed to be set correctly in the appsettings.json file and now it is working for me

from vscode-extension.

kevinreck avatar kevinreck commented on June 9, 2024

It looks like either the settings is writing the value incorrectly, or the code is reading it wrong:

Settings creates:
"aadb2c.graph.clientid": "<Your App Id>"

but the extension expects the settings to be like this

"aadb2c.graph": {
	"clientid": "<Your App Id>"
}

Here's a link to the code that reads the value
https://github.com/azure-ad-b2c/vscode-extension/blob/master/src/B2CUtils.ts#L126

from vscode-extension.

leniel avatar leniel commented on June 9, 2024

I managed to upload the policy using this new method:

https://github.com/azure-ad-b2c/vscode-extension/blob/master/src/help/policy-upload.md

from vscode-extension.

mleziva avatar mleziva commented on June 9, 2024

I am experiencing this issue even with the ClientId being set correctly.

Repro steps:

  1. Follow tutorial: https://github.com/azure-ad-b2c/vscode-extension/blob/master/src/help/policy-upload.md
  2. It is working correctly
  3. Restart computer and try upload. Prompted to enter code again to confirm app registration. Close browser instead of entering code
  4. Attempt to upload policies and see client ID error below and no option to enter code

Settings:
image

Error:
image

from vscode-extension.

nevseev avatar nevseev commented on June 9, 2024

@mleziva glad to be of use 🙂

from vscode-extension.

Tanzy avatar Tanzy commented on June 9, 2024

Thanks, that will make the error actual apparent. Turns out my issue was that the Tenant needed to be set correctly in the appsettings.json file and now it is working for me

How did you do it? I keep getting tenant needs to be DNS or something like that

from vscode-extension.

bruceharrison1984 avatar bruceharrison1984 commented on June 9, 2024

I just ran into this issue. My problem was I had added my Tenant as the Developement tenant, but left the default values for the other tenants:

{
    "PoliciesFolder": "c:\\Users\\xxx\\Development\\xxx\\b2c",
    "EnvironmentsFolder": "Environments",
    "Environments": [
        {
            "Name": "Development",
            "Production": false,
            "Tenant": "MY_DEV_TENANT.onmicrosoft.com",
            "PolicySettings": {
                "IdentityExperienceFrameworkAppId": "Your dev environment AD app Id",
                "ProxyIdentityExperienceFrameworkAppId": "Your dev environment AD Proxy app Id",
                "FacebookAppId": "0"
            }
        },
        {
            "Name": "Test",
            "Production": false,
            "Tenant": "your-test-tenant.onmicrosoft.com",
            "PolicySettings": {
                "IdentityExperienceFrameworkAppId": "Your test environment AD app Id",
                "ProxyIdentityExperienceFrameworkAppId": "Your AD test environment Proxy app Id",
                "FacebookAppId": "0"
            }
        },
        {
            "Name": "QA",
            "Production": false,
            "Tenant": "your-qa-tenant.onmicrosoft.com",
            "PolicySettings": {
                "IdentityExperienceFrameworkAppId": "Your QA environment AD app Id",
                "ProxyIdentityExperienceFrameworkAppId": "Your QA environment AD Proxy app Id",
                "FacebookAppId": "0"
            }
        },
        {
            "Name": "Production",
            "Production": true,
            "Tenant": "your-production-tenant.onmicrosoft.com",
            "PolicySettings": {
                "IdentityExperienceFrameworkAppId": "Your QA environment AD app Id",
                "ProxyIdentityExperienceFrameworkAppId": "Your production environment AD Proxy app Id",
                "FacebookAppId": "0"
            }
        }
    ]
}

removing all tenants except for the one that actually exists and re-running the get id command fixes the issue:

{
    "PoliciesFolder": "c:\\Users\\xxx\\Development\\xxx\\b2c",
    "EnvironmentsFolder": "Environments",
    "Environments": [
        {
            "Name": "Development",
            "Production": false,
            "Tenant": "MY_DEV_TENANT.onmicrosoft.com",
            "PolicySettings": {
                "IdentityExperienceFrameworkAppId": "<guid>",
                "ProxyIdentityExperienceFrameworkAppId": "<guid>",
                "AADExtensionsAppId": "<guid>",
                "AADExtensionsObjectId": "<guid>"
            }
        }
    ]
}

from vscode-extension.

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.