Have a look at the API Gateway tutorials and the samples in theexamples/oauth2 folder of the Membrane distribution.
examples/oauth2
In the examples folder you will find more security plugins:
examples
Also have a look at the security section of our old website.