#1 2017-09-06 04:10:38

ImproSnake
Member
Registered: 2017-06-20
Posts: 30

Bypass Session Signature for single specific URI

Hello Folks,

ist there a possibility to bypass the Authentication for a specific single URI, like it is with the standard URI '/auth'. For that one you dont need a session_signature. I want to do the same for a function which just check the SessionId. And i dont want to run in a 403 Auth failed error if the session doesnt exists any longer (therefore wrong SesionSign).

Any Idea here ?

Offline

#2 2017-09-06 05:08:47

esmondb
Member
From: London
Registered: 2010-07-20
Posts: 299

Re: Bypass Session Signature for single specific URI

Offline

#3 2017-09-06 05:24:24

ImproSnake
Member
Registered: 2017-06-20
Posts: 30

Re: Bypass Session Signature for single specific URI

Thank you, i just overread that in the docs. Really much appreciate your help!

Offline

#4 2017-09-06 08:01:29

ImproSnake
Member
Registered: 2017-06-20
Posts: 30

Re: Bypass Session Signature for single specific URI

Sorry for bother you again, i can't figure out how to use the Method. On the Server Side i just call the Method with the Parameter "checkSession" and i have a Interfaced ISession with a method Session.checkSession.

Maybe it is obvious but i just dont get how to call the Method properly. I can't find a examle as well, any further help is well appreciated

Offline

#5 2017-09-06 08:14:47

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,182
Website

Re: Bypass Session Signature for single specific URI

This ServiceMethodByPassAuthentication method is for method-based services. As documented, and as its name states.

To tune interface-based service method authentication, when you register the service, you can set TServiceFactoryServer.ByPassAuthentication property to disable authentication for a given interface-based service.

But in your case, if you need a single URI, a method-based service is preferred.

Offline

#6 2017-09-06 08:55:26

ImproSnake
Member
Registered: 2017-06-20
Posts: 30

Re: Bypass Session Signature for single specific URI

Thank you ab. That was the right direction to point me. I solved my specific Issue now. Thank you wink

Offline

Board footer

Powered by FluxBB