External email address

I am using OAuth for logging in (cas3). If a user doesn’t exist when they sign in through cas I want a new account to be created using the cas email attribute as their gitlab email address. When I try this out new accounts ahve an email of temp-email-for-oauth-@gitlab.localhost. Any ideas why? How would this be configured? Thanks

I guess you found out, but I had this issue and solved it by telling CAS to propagate the email attribute with:

cas.authn.attributeRepository.defaultAttributesToRelease=email

In cas.properties, providing that CAS already has access to this attrinute.