#1 Re: mORMot 1 » Interface-base service getting http header » 2017-06-01 08:09:28

noted your advice. :-)

BTW, we are using "TjwtContent.compute" to generate custom payload, do it support nested object? in fact, we'd like to place a serialized JSONobject record into payload. Any advice?

#2 Re: mORMot 1 » Interface-base service getting http header » 2017-05-31 10:10:11

In normal scenario, user call interface-base service for auth , say Login(userName, password) : TNotifyAuthenticationFailedReason. But how can interface service set a value back to RestServer as your advice?

Or mormot do not suggest implement JWT in interface-base service?

#3 mORMot 1 » Interface-base service getting http header » 2017-05-29 13:46:27

JuanTTL
Replies: 7

http://blog.synopse.info/post/2016/12/1 … -%28JWT%29

in above post, it said "...Integration with method-based services is easy, using Ctxt.AuthenticationCheck method". I'd like to implement JWT by interface-base service instead. Is it possible to read http-header context , say bearer jwttoken? if yes, how to do it or other advice/sample?

Board footer

Powered by FluxBB