This is just a basic implementation of the protocol OpenID Connect in java. I used google as provider