Skip to content

Instantly share code, notes, and snippets.

@cray0000
Created January 4, 2013 19:38
Show Gist options
  • Save cray0000/4455281 to your computer and use it in GitHub Desktop.
Save cray0000/4455281 to your computer and use it in GitHub Desktop.
[20:54] <cray0000> Hi, guys! Could you help me with a noob question please? I've added derby-auth to default console project and now I'm getting error "Unauthorized: No access control declared for path rooms.home"
[20:56] == smtudor [~smtudor@static-71-185-69-210.phlapa.fios.verizon.net] has quit [Quit: Leaving...]
[20:57] <cray0000> I've read AccessControl readme at /lib/AccessControl, but it says that security is off by default
[20:59] <switz213> yeah I can help you
[20:59] <cray0000> thanks a lot
[20:59] <switz213> so you've enabled security
[20:59] <cray0000> I've tried both ways
[20:59] <switz213> but you haven't added an access control for rooms.*
[20:59] <cray0000> yea, think that is the problem
[21:00] <cray0000> could you give me a hint please?
[21:00] <cray0000> how to add accessControl for rooms.*
[21:00] <switz213> check out Protecting Reading Paths
[21:01] <switz213> https://gist.github.com/4455016
[21:02] <cray0000> thanks a lot, switz, will try it now
[21:03] <switz213> https://github.com/switz/phishvids/blob/master/src/server/queries.coffee#L5
[21:04] <switz213> you might also have to enable write paths
[21:04] <switz213> let me know if it doesnt work
[21:04] <cray0000> ok, thank you)
[21:05] <switz213> which you would do: https://gist.github.com/4455055
[21:05] <switz213> obviously this is in no way secure, but it will let your app function for now
[21:05] <cray0000> got it
[21:05] <switz213> did it work?
[21:08] <cray0000> not yet, I'm sorting it out
[21:17] <cray0000> wow, I see you have a nice derby-boilerplate at your repo. Is it work-in-progress?
[21:20] <cray0000> oh, sorry, haven't noticed wip in description. Still looks very promising at the current stage, especially for newbies like me)
[21:20] <switz213> yeah I just started it
[21:20] <switz213> yesterday
[21:20] <switz213> feel free to try it out, but it's definitely a wip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment