Open ftarlao opened 6 years ago
I'm just a bystander, and I don't know if this helps, but I have working version of js-client-oauth2 integrated in my own package, packaged by webpack.
So maybe my configuration helps:
Thanks for your time, but I have decided to use another lib, may be useful for other guys for sure, Regards
I have understood that your library can be employed to implement an oauth2 client running in a browser (user-agent) but I was not able to create a standalone bundle.js with
browserify
.I have tried various ways, e.g.:
the
bundle.js
is created, and I copied the projectsrc
folder with the generatedbundle.js
in the asset subfolder of my Js web application.When I try to load the bare-metal test page, in my Firefox browser it fails, the test page:
The error in the browser console:
What is the right browserfy commandline to make
js-client-oauth2
to work in the browser and what resources should I add to my "assets" folder? Do thebundle.js
and thesrc
folder suffice?I'm quite incompetent with Javascript and web applications.. perhaps the problem solution looks evident, but I suppose that a step-by-step guide about the 'use it in the browser' case, may be a useful addition to your Project readme. Regards
Edit:
browserify
was pointed out as a "tool for the job" in the closed issues