I want to accomplish something similar to the post Help with http.login and Google Auth wherein http.login (with Google Auth) and login.jwt are used to protect content under the /project directory, Google oAuth, a specific domain is authorized (example.com), if someone is not in that domain an error is shown they are not using an authorized account and if someone is in that domain they are sent back to the /project directory to view the content.
I’m able to accomplish all items except #4: Showing an error message for those who are not in the approved domain. From the above post it appears the OP was not able to accomplish this either.
Is there any way to use the role functionality in a template? Or any other suggestion for how to accomplish this task?