Integrate with Gitlab SSO

Hello,

I am evaluating Mattermost team edition and have made several attempts to integrate my on-AWS mattermost server with Gitlab SSO integration but still failed.
I have followed the instructions on Redirect with gitlab.com account and also AWS hosted Gitlab powered by Bitnami but still cannot find the successful way to integrate. Any hints?

Thanks
Patrick