On 5/13/23 18:32, Gabriel Huerta Araujo wrote:
Thanks Michael

My observations:

You should use AbstractUserContext (you'll end up implementing a ton of stub 
functions otherwise), override invalidate(), and implement any remaining functions 
that have no implementation according to >> the JavaDoc:

https://guacamole.apache.org/doc/guacamole-ext/org/apache/guacamole/net/auth/AbstractUserContext.html

The overview of the above class describes this in more detail.

I tried to do about above and I got an error:

/home/admin-cns/tacacs/guacamole-client-1.4.0/extensions/guacamole-auth-tacacs/src/main/java/org/apache/guacamole/auth/tacacs/user/UserContext.java:[31,7]
 error: org.apache.guacamole.auth.tacacs.user.UserContext is not abstract and 
does not override abstract method self() in 
org.apache.guacamole.net.auth.UserContext

I do not see how self function has to be implemented according to 
https://guacamole.apache.org/doc/guacamole-ext/org/apache/guacamole/net/auth/AbstractUserContext.html.
 This link just mentions: "Implementations must provide their own 
UserContext.self()"


https://guacamole.apache.org/doc/guacamole-ext/org/apache/guacamole/net/auth/UserContext.html#self()

Simplest would be just returning an instance of SimpleUser with the username of the user that authenticated:

https://guacamole.apache.org/doc/guacamole-ext/org/apache/guacamole/net/auth/simple/SimpleUser.html#%3Cinit%3E(java.lang.String)

- Mike

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to