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?
To match an entry, the user file is searched in linear order and all attributes has to match the data of the authentication backend. The first matching entry will be used and all parameters below the claim attribute are written into the token.