mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 13:17:41 +00:00
GUACAMOLE-641: Allow token retrieval/generation to fail with an error.
This commit is contained in:
@@ -83,8 +83,13 @@ public class TokenInjectingUserContext extends DelegatingUserContext {
|
|||||||
* @return
|
* @return
|
||||||
* The tokens which should be added to the in-progress call to
|
* The tokens which should be added to the in-progress call to
|
||||||
* connect().
|
* connect().
|
||||||
|
*
|
||||||
|
* @throws GuacamoleException
|
||||||
|
* If the tokens applicable to the given connection cannot be
|
||||||
|
* generated.
|
||||||
*/
|
*/
|
||||||
protected Map<String, String> getTokens(Connection connection) {
|
protected Map<String, String> getTokens(Connection connection)
|
||||||
|
throws GuacamoleException {
|
||||||
return tokens;
|
return tokens;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -100,8 +105,13 @@ public class TokenInjectingUserContext extends DelegatingUserContext {
|
|||||||
* @return
|
* @return
|
||||||
* The tokens which should be added to the in-progress call to
|
* The tokens which should be added to the in-progress call to
|
||||||
* connect().
|
* connect().
|
||||||
|
*
|
||||||
|
* @throws GuacamoleException
|
||||||
|
* If the tokens applicable to the given connection group cannot be
|
||||||
|
* generated.
|
||||||
*/
|
*/
|
||||||
protected Map<String, String> getTokens(ConnectionGroup connectionGroup) {
|
protected Map<String, String> getTokens(ConnectionGroup connectionGroup)
|
||||||
|
throws GuacamoleException {
|
||||||
return tokens;
|
return tokens;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user