mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 13:17:41 +00:00
GUACAMOLE-210: Add remaining endpoint properties.
This commit is contained in:
@@ -50,6 +50,22 @@ public class ConfigurationService {
|
|||||||
return environment.getRequiredProperty(OAuthGuacamoleProperties.OAUTH_AUTHORIZATION_ENDPOINT);
|
return environment.getRequiredProperty(OAuthGuacamoleProperties.OAUTH_AUTHORIZATION_ENDPOINT);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the token endpoint (URI) of the OAuth service as configured with
|
||||||
|
* guacamole.properties.
|
||||||
|
*
|
||||||
|
* @return
|
||||||
|
* The token endpoint of the OAuth service, as configured with
|
||||||
|
* guacamole.properties.
|
||||||
|
*
|
||||||
|
* @throws GuacamoleException
|
||||||
|
* If guacamole.properties cannot be parsed, or if the authorization
|
||||||
|
* endpoint property is missing.
|
||||||
|
*/
|
||||||
|
public String getTokenEndpoint() throws GuacamoleException {
|
||||||
|
return environment.getRequiredProperty(OAuthGuacamoleProperties.OAUTH_TOKEN_ENDPOINT);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the OAuth client ID which should be submitted to the OAuth
|
* Returns the OAuth client ID which should be submitted to the OAuth
|
||||||
* service when necessary, as configured with guacamole.properties. This
|
* service when necessary, as configured with guacamole.properties. This
|
||||||
|
@@ -44,6 +44,17 @@ public class OAuthGuacamoleProperties {
|
|||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The token endpoint (URI) of the OAuth service.
|
||||||
|
*/
|
||||||
|
public static final StringGuacamoleProperty OAUTH_TOKEN_ENDPOINT =
|
||||||
|
new StringGuacamoleProperty() {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String getName() { return "oauth-token-endpoint"; }
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* OAuth client ID which should be submitted to the OAuth service when
|
* OAuth client ID which should be submitted to the OAuth service when
|
||||||
* necessary. This value is typically provided by the OAuth service when
|
* necessary. This value is typically provided by the OAuth service when
|
||||||
|
Reference in New Issue
Block a user