On Tue, Feb 8, 2022 at 8:40 AM miao <[email protected]> wrote: > Hello, > > I build extension by guacamole-ext. > then, I want to create my own web api. Can I make it? And how > > The short answer is, yes, this is probably doable, but maybe you can clarify what you're trying to do?
There are two ways to do this within an authentication extension. The first way is by implementing the getResource() method of the AuthenticationProvider class: https://github.com/apache/guacamole-client/blob/01503bc76e914f89a4e84a9f05f1c1e464f11548/guacamole-ext/src/main/java/org/apache/guacamole/net/auth/AuthenticationProvider.java#L43-L63 The second is by implementing the getResource() method of the UserContext class: https://github.com/apache/guacamole-client/blob/01503bc76e914f89a4e84a9f05f1c1e464f11548/guacamole-ext/src/main/java/org/apache/guacamole/net/auth/UserContext.java#L41-L62 The documentation in those Interface classes helps explain what each is intended to be used for and where it can be accessed once implemented. -Nick
