Comments (8)
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.
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.
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.
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.
I am experiencing this issue even with the ClientId being set correctly.
Repro steps:
- Follow tutorial: https://github.com/azure-ad-b2c/vscode-extension/blob/master/src/help/policy-upload.md
- It is working correctly
- Restart computer and try upload. Prompted to enter code again to confirm app registration. Close browser instead of entering code
- Attempt to upload policies and see client ID error below and no option to enter code
from vscode-extension.
@mleziva glad to be of use 🙂
from vscode-extension.
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.
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)
- How to escape double quotes in appsettings? HOT 2
- Support token replacements in html templates for custom content definitions when building policies HOT 1
- Incorrect order for application insights HOT 2
- Ability to include/exclude certain files from different environments
- Skip renumbering seems to be inconsistent HOT 1
- Policy Build throws error due to missing 'journeys' element HOT 3
- Build-all-fail HOT 1
- Build on auto-save
- Shared PolicySettings from appsettings.json
- Duplicate display of policy in App Insights View
- Long startup time and errors
- B2C extension notready for tenant.partner.onmschina.cn
- Maximum call stack size exceeded
- Build All Policies fails
- Upload multiple environments
- Renaming xml files on build
- Hardcoded folder name 'Environment' breaks "upload all policies" command
- Failed to parse App Insights JSON data: Unexpected token o in JSON at position 0
- Find All reference or shift+aly+F12 does not work
- Multiple Security Vulnerabilities Found in Repository
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vscode-extension.