Fork me on GitHub
#yada
<
2016-11-29
>
jonathanj15:11:09

The manual doesn’t seem to really explain how the authorization role for the agent are determined, just how to declare the roles for the resource.

jonathanj15:11:18

The JWT section of the manual also doesn’t seem to exist.

nha15:11:56

@jonathanj have a look at dev/security.clj in the yada repository

jonathanj15:11:29

I was looking at it but it's still not clear regarding the roles thing.

nha15:11:21

the roles look ok to me ? However I would also welcome an example with programmatic oauth authentication (ex. not login but via http requests)

jonathanj15:11:38

I guess it just needs to be a roles key in the jwt?

nha15:11:09

basically yes

nha15:11:30

containing a vector of roles IIRC

bbss17:11:43

I'm running my yada server on a server for the first time so I want to launch it from my -main function, but it returns immediately. How do I make it block?

bbss17:11:19

During development I just start a (yada/listener ..) in a repl.

nha17:11:09

@(promise)

nha17:11:19

(or read for the same issue in aleph, or use edge)

nha17:11:34

or (wait) if you use boot

bbss17:11:00

thanks @nha! that did the trick and thanks for the search term also.