Comments (3)
encodeURIComponent does work but you do need to format it correctly
If you do a search for URLencoder on bing the code behind that does the following, which works:
encodeURIComponent(n).replace(/%20/g, "+")
from office-store-docs.
Thanks, I think it may be worth considering updating the docs to reflect the formatting aspect. From the following section:
The Office Store license verification web service also supports verifying add-in license tokens by using REST calls. To validate an add-in license by using REST, use the following syntax, where {token} is the add-in license token, encoded by a method that complies with RFC 2396. For example, the encodeURIComponent() function in JavaScript, or the Uri.EscapeDataString method in the .NET Framework:
It is not obvious (to me anyway) that extra steps are needed beyond using encodeURIComponent.
If you want I would be happy to write you a JavaScript example to use in the docs.
from office-store-docs.
Hi @PhilSmail,
I ran into the same issue as @r-vianna above and was not able to resolve it with your suggestion of
encodeURIComponent(n).replace(/%20/g, "+"),
but if I do it this way
encodeURIComponent(token).replace(/%00|%0D/g, '').replace(/%20/g,'+'),
then it works successfully. Could the docs be updated to reflect this to save others from this same issue?
Thanks!
from office-store-docs.
Related Issues (20)
- 'Overview' link does not link to a page with the 'Create New' option HOT 3
- manifest file shows in uploading status from more than 24 hours HOT 2
- Menu Typo HOT 1
- Inaccurate reference to Stack Overflow HOT 3
- Publishing JS Add-In on Microsoft Partner Center HOT 2
- Seller Dashboard for U.S. Government Environment HOT 1
- Indivudal account for developers HOT 5
- Partner Center role required to add new solution should be documented HOT 3
- Unhappy: Cannot publish Add-In to Office Store :-(
- How can one delete published solutions
- Question for mobile calendar add-in deployment HOT 1
- Mobile add-in dialog box for authentication
- Question on updating add-in doesnโt clarify case of unpublished previous version and user not updating HOT 1
- "Why publish" docs about stores are super confusing
- Support required
- Appsource store images blurry
- Cannot submit a SharePoint app
- Simple HTML tags to format the description?
- Review on the App in AppSource disappeared HOT 1
- Add in is not loading in excel online.
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 office-store-docs.