I am creating a self-serving WCF service that provides 2 endpoints for each service
SOAP uses WS- * SOAP authentication (authentication header) How can I use REST authentication?
I thought of some kind of login method that will return some kind of cookie, but I can’t think of how to make this transparent to all my other calls.
thank.
Requests in the RESTful system are void and therefore you need to re-authenticate with each request.
HTTP, , , HTTP HTTPS.
- Generic, , :
[DataContract] public sealed class AuthenticatedRequest<T> { [DataMember(Order=0)] public string SessionToken {get; set;} [DataMember(Order=1)] public T RequestBody {get; set; } public static bool IsAuthenticated () { . . . } }
Well, looking around, I found the answer, I pass a special authentication header, similar to Amazon S3.
it’s not so easy to build, but it will allow me to work without SSL and will be stateless and support all clients.
Source: https://habr.com/ru/post/1762130/More articles:https://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1762124/google-app-engine-w-django-inboundmailhandler-appears-to-only-work-once&usg=ALkJrhgJwq7R1QYvp3Lmfcov-zTNIS4bPQReplace an element using phpquery (php version of jquery) - phpAbout autorun Qt Creator 2.0.0 - qtConverting a string with a hexadecimal representation of a number to an actual numeric value - c ++JQuery - live ('hover') and mousemove - jqueryhow to detect the presence of silence of a word / sound in a wav file using java? - javaGWT database for server-side data storage - javaДискриминационные союзы и наследование - inheritancematlab - graph of a 2D rectangle with interpolated color - colorsOrganization of domain objects in DDD when using the ado - oop entity infrastructureAll Articles