REST Login example

Is there an example anywhere that demonstrates how best to implement login authentication via REST?

I’ve played around with REST in the past so understand the basics of how you apply attributes to service functions but don’t know how to implement authentication.
I’m presuming the login call needs to somehow return the ClientID/SessionID to the caller and this then needs to be supplied in the headers of any subsequent REST API call, like an AccessToken?

An example would be incredibly useful to wrap my head around this.

Ah ignore me, I’ve just found the HttpApi Authentication sample :slight_smile: