oauth-io / oauthd-front Goto Github PK
View Code? Open in Web Editor NEWoauthd default front
oauthd default front
Minified file selectize.default.css (v0.8.5) with browser autoprefixes ect...
This plugin tried to perform a GET against /api/providers/%7B%7B%20provider.provider%20%7D%7D/logo at some point and results in restify throwing an exception when trying to parse the url.
Stack trace:-
too few args to sprintf
code: InternalError
message: too few args to sprintf
Error: too few args to sprintf at jsSprintf (/usr/lib/node_modules/oauthd/node_modules/extsprintf/lib/extsprintf.js:71:11) at WError (/usr/lib/node_modules/oauthd/node_modules/verror/lib/verror.js:208:41) at HttpError (/usr/lib/node_modules/oauthd/node_modules/restify/lib/errors/http_error.js:44:12) at RestError (/usr/lib/node_modules/oauthd/node_modules/restify/lib/errors/rest_error.js:41:15) at new module.exports.(anonymous function) (/usr/lib/node_modules/oauthd/node_modules/restify/lib/errors/rest_error.js:86:19) at serveFileFromStats (/usr/lib/node_modules/oauthd/node_modules/restify/lib/plugins/static.js:34:18) at /usr/lib/node_modules/oauthd/node_modules/restify/lib/plugins/static.js:84:17 at FSReqWrap.oncomplete (fs.js:123:15)
There is no way to use oauthd-front behind a reverse proxy and a different base-path than /
.
Example; I have a frontend nginx proxy that routes my.domain/_/auth/
to where oauthd is running. I am able to access the page this way, but I am being redirected to /front
, not /_/auth/front
.
If I'm trying to access /_/auth/front
directly, it will still try to load a bunch of resources from /...
.
I found many resources at https://github.com/oauth-io/oauthd-front/blob/master/public/index.html being accessed from a non-relative path.
There are also some references in files like https://github.com/oauth-io/oauthd-front/blob/master/public/src/app.coffee and the templates themself (https://github.com/oauth-io/oauthd-front/blob/master/public/templates/login.html).
Is there any plan for making relative paths possible? What other places than the one I mention needs to change to get this to work?
There are a couple of grunt projects for replacing text in files, but I'm not sure how you feel about a change like this in the first place..
Using node.js 0.12.14
I have this grunt error:
npm ERR! Darwin 15.4.0
npm ERR! argv "/Users/antoinelucas/.nvm/versions/v0.12.14/bin/node" "/Users/antoinelucas/.nvm/versions/v0.12.14/bin/npm" "install"
npm ERR! node v0.12.14
npm ERR! npm v2.15.1
npm ERR! code EPEERINVALID
npm ERR! peerinvalid The package [email protected] does not satisfy its siblings' peerDependencies requirements!
npm ERR! peerinvalid Peer [email protected] wants grunt@>=0.4.0
npm ERR! peerinvalid Peer [email protected] wants grunt@~0.4.0
my grunt/grunt-cli version:
grunt --version
grunt-cli v0.1.13
grunt v0.4.5
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.