For detailed documentation on how this authentication is implemented check the original documentation