Could please anyway send a sample code to
1. authenticate a user
2. check if the user is part of a group
3. Show attributes for that user, like name, surname, etc
I have tried different pieces of code I found on Google but nothing seems to work ok.