Closed corruptmem closed 4 years ago
Sorry you are having problems. I thought I had submitted a fix for this with this commit: https://github.com/OfficeDev/Office-Addin-Scripts/commit/8e0bd8dc96f19b9f0bd5e965e29e266d8d27537a
Are you on Windows or Mac?
I should be able to get a quick fix in for this on Tuesday when I am back in the office - we are off Monday for a national holiday. Thanks again for bringing this to our attention.
-Courtney
@TCourtneyOwen Thanks for the quick response! I'm on Windows 10. I did look at #244 and it doesn't look like it's the same problem as is affecting me. I hacked the script to force the tenantName to be correct and it all works fine once I do that.
@corruptmem I have been swamped with some other work items and am just getting around to look into this. Would you happen to have the hacked script so I can try it out? I am most interested in how you escaped the space in the tenant name in your hacked script.
Thanks,
Courtney
@corruptmemPR with fix for this issue at https://github.com/OfficeDev/Office-Addin-Scripts/pull/260
@corruptmem this issue has been fixed in the SSO project templates. Thanks for bringing this to our attention.
-Courtney
Yeoman configuration:
Node version v12.16.0, yo package 3.1.1, generator-office 1.6.1.
When I run npm run configure-sso, I get the following.
As far as I can tell, the issue appears to be because my tenant name has a space in it.
configure.ts in node package office-addin-so has the following code:
azRestGetOrganizationDetailsCommandPath
containsaz rest -m get -u https://graph.microsoft.com/v1.0/organization --headers "Content-Type=application/json"
, which when executed on any tenant I have access to, returns an object with displayName set to a value with a space in it.It then tries to interpolate that value into the domains in the lines underneath, which causes it to fail.
If I manually override the tenantName to be the value that appears before the .onmicrosoft.com on the initial domain, it all works fine.