You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@guacamole.apache.org by André Rafael <an...@ndray.pt> on 2023/07/12 13:07:47 UTC

OpenID login redirection when user doesn't exist in DB

Hello,

I'm having an issue with Guacamole.

We've successfully configure OIDC authentication, and it's working as intended with the exception of single issue.

We want only certain users to be able to use guacamole. Those users have been created on the DB to match with OIDC.

The problem is, if a user not in the DB, guacamole shows the normal login screen after the SSO authentication.

We would like to show an unauthorized or error page instead. Is there a way we can achieve this?

For reference, here is the guacamole.properties contents:

guacd-hostname: localhost
guacd-port: 4822

extension-priority: openid

mysql-hostname: 127.0.0.1
mysql-port: 3306
mysql-database: [redacted]
mysql-username: [redacted]
mysql-password: [redacted]
mysql-user-required: true
mysql-auto-create-accounts: false

openid-authorization-endpoint: https://mydomain.com/oauth2/authorize
openid-jwks-endpoint: https://mydomain.com/oauth2/jwks
openid-issuer: https://mydomain.com/oauth2
openid-client-id: [redacted]
openid-redirect-uri: https://guac.mydomain.com/
openid-username-claim-type: email
openid-scope: openid email profile

Thanks for the support.