obfuscurity / descartes

Introspective dashboard for Graphite
MIT License
502 stars 65 forks source link

Able to start application without login #136

Closed wingZero21 closed 11 years ago

wingZero21 commented 11 years ago

Hi,

There needs to be an option to start the application without login or local users(htpass).

Cheers Mark

brntbeer commented 11 years ago

Hi @wingZero21 can you explain what you mean by this or perhaps your usecase? Is this for some sort of example scenario of you wanting to see what it'd be like to have graphs?

I assume you'd also still have credentials to your graphite server, correct?

obfuscurity commented 11 years ago

I appreciate your input, but Descartes relies heavily on ownership and an organizational model for sharing and collaboration. We could probably emulate some sort of single-user thing but it's low on my list of priorities.

wingZero21 commented 11 years ago

Hi,

Just trying to get the application running on an internal environment so its locked down for outside access (mostly). It can be allowed outbound access for authenticating with github/google id but would be nice if it did not need this requirement but I can appreciate it authentication is a necessity, rather one thats internally controllable would be nice.

There is no authentication currently set on our graphite server.

Would be good if there is some documents you could point to for setting up the Google ID/Github ones.

Cheers Mark

damm commented 11 years ago

I did this awhile back as a proof of concept just to play around, basic ruby hacking.

https://github.com/damm/descartes/commit/84e3d4a239ee9e8ffc87ed70d6569eee729a4d74

https://github.com/obfuscurity/descartes/blob/master/README.md has some good information on setting up either Google OAuth or GitHub.

wingZero21 commented 11 years ago

Yeah I seen that but was struggling to identify where the client id/secret which I have now gotten.

However after assigning the environment variables its now bringing back the below.

Details: 20:28:43 web.1 | [warden-github] Deprecated configuration github_client_id used. Please refer to the README for updated configuration instructions. 20:28:43 web.1 | [warden-github] Deprecated configuration github_secret used. Please refer to the README for updated configuration instructions. 20:28:43 web.1 | [warden-github] Deprecated configuration github_callback_url used. Please refer to the README for updated configuration instructions. 20:28:43 web.1 | [warden-github] Deprecated configuration github_scopes used. Please refer to the README for updated configuration instructions.

wingZero21 commented 11 years ago

Sorry missed that bit about the non auth, will definately try that as well!

Cheers Mark

obfuscurity commented 11 years ago

@damm That's a decent hack for getting this to work in single-user mode. I can't guarantee that this won't break future compatibility, but I'm glad to see it works for you.

@wingZero21 Looks like something has changed in the warden/github oauth libs. You might want to try locking down the Gemfile to a specific rev until I have time to fix this in master. See the Gemfile.lock for what's currently in use.

wingZero21 commented 11 years ago

Just to confirm, that non auth one works great!!

Thanks very much for that @damm

Cheers Mark

damm commented 11 years ago

@obfuscurity Favorites is broken for example; so no chart roulette. It worked when we didn't use Google OAuth, now we're tightening up our security so who knows :).

obfuscurity commented 11 years ago

Dude, no chartroulette?! Why even bother. ;)

Jason Dixon Sent from my iPhone

On Aug 13, 2013, at 3:56 PM, "Scott M. Likens" notifications@github.com wrote:

@obfuscurity Favorites is broken for example; so no chart roulette. It worked when we didn't use Google OAuth, now we're tightening up our security so who knows :).

— Reply to this email directly or view it on GitHub.