authentication diagram