Class WsBearerTokenExternalSystem
java.lang.Object
edu.internet2.middleware.grouper.app.config.GrouperConfigurationModuleBase
edu.internet2.middleware.grouper.app.externalSystem.GrouperExternalSystem
edu.internet2.middleware.grouper.app.externalSystem.WsBearerTokenExternalSystem
- All Implemented Interfaces:
OptionValueDriver
-
Field Summary
Fields inherited from class edu.internet2.middleware.grouper.app.externalSystem.GrouperExternalSystem
externalTypeClassNames
Fields inherited from class edu.internet2.middleware.grouper.app.config.GrouperConfigurationModuleBase
attributeCache, extraConfigKeys
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
attachAuthenticationToHttpClient
(GrouperHttpClient grouperHttpClient, String externalSystemConfigId) static void
attachAuthenticationToHttpClient
(GrouperHttpClient grouperHttpClient, String externalSystemConfigId, GrouperLoaderConfig grouperLoaderConfig, Map<String, Object> debugMap) static String
authenticateMockUser
(javax.servlet.http.HttpServletRequest httpServletRequest) static Object[]
generateAccessToken
(Map<String, Object> debugMap, String configId) get access token from adobeconfig file name to check for properties and metadataconfig id regeg eg: ^(provisioner)\\.([^.]+)\\.(.*)$config id that identified this config.prefix for the properties eg: provisioner.someConfigId.static String
retrieveBearerTokenForConfigId
(Map<String, Object> debugMap, String configId) get bearer token for adobe config idtest()
Validates the Scim provisioner by trying to log in and getting an auth tokenvoid
validatePreSave
(boolean isInsert, boolean fromUi, List<String> errorsToDisplay, Map<String, String> validationErrorsToDisplay) Methods inherited from class edu.internet2.middleware.grouper.app.externalSystem.GrouperExternalSystem
getConfigurationTypePrefix, isCanAdd, isCanDelete, propertiesApiProperyValue, refreshConnectionsIfNeeded, retrieveAllGrouperExternalSystems, retrieveAllModuleConfigurationTypes, retrieveAllUsedBy, retrieveKeysAndLabels
Methods inherited from class edu.internet2.middleware.grouper.app.config.GrouperConfigurationModuleBase
changeStatus, clearAttributeCache, deleteConfig, editConfig, formatIndexes, getCacheAttributePrefix, getCacheEntityAttributePrefix, getCacheGroupAttributePrefix, getCacheMembershipAttributePrefix, getConfigId, getDescription, getDocumentation, getGenericConfigId, getPropertySuffixThatIdentifiesThisConfig, getPropertyValueThatIdentifiesThisConfig, getStartWithDescription, getStartWithDocumentation, getSubSections, getTitle, insertConfig, isEnabled, isMultiple, listAllConfigurationsOfThisType, populateConfigurationValuesFromUi, populateValuesLabelsFromOptionValueClass, removeNoUnsedConfigs, retrieveAllConfigurations, retrieveAllConfigurationTypesHelper, retrieveAttributes, retrieveAttributesFromConfig, retrieveAttributeValueFromConfig, retrieveConfigurationConfigIds, retrieveConfigurationKeysByPrefix, retrieveExtraConfigKeys, retrieveObjectValueSubstituteMap, retrieveSuffix, retrieveText, setConfigId, showAttributeOverride, validatePreSave
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface edu.internet2.middleware.grouper.cfg.dbConfig.OptionValueDriver
setConfigSuffixToConfigModuleAttribute
-
Constructor Details
-
WsBearerTokenExternalSystem
public WsBearerTokenExternalSystem()
-
-
Method Details
-
authenticateMockUser
-
retrieveBearerTokenForConfigId
get bearer token for adobe config id- Parameters:
configId
-- Returns:
- the bearer token
-
generateAccessToken
get access token from adobe- Parameters:
debugMap
- can be nullconfigId
-scope
-- Returns:
- token in the first index and its int expiry in seconds in the second index
-
attachAuthenticationToHttpClient
public static void attachAuthenticationToHttpClient(GrouperHttpClient grouperHttpClient, String externalSystemConfigId) -
attachAuthenticationToHttpClient
public static void attachAuthenticationToHttpClient(GrouperHttpClient grouperHttpClient, String externalSystemConfigId, GrouperLoaderConfig grouperLoaderConfig, Map<String, Object> debugMap) -
getConfigFileName
Description copied from class:GrouperConfigurationModuleBase
config file name to check for properties and metadata- Specified by:
getConfigFileName
in classGrouperConfigurationModuleBase
- Returns:
-
getConfigItemPrefix
Description copied from class:GrouperConfigurationModuleBase
prefix for the properties eg: provisioner.someConfigId.- Specified by:
getConfigItemPrefix
in classGrouperConfigurationModuleBase
- Returns:
- the prefix
-
getConfigIdRegex
Description copied from class:GrouperConfigurationModuleBase
config id regeg eg: ^(provisioner)\\.([^.]+)\\.(.*)$- Specified by:
getConfigIdRegex
in classGrouperConfigurationModuleBase
- Returns:
-
getConfigIdThatIdentifiesThisConfig
Description copied from class:GrouperConfigurationModuleBase
config id that identified this config. either suffix and value or getConfigIdThatIdentifiesThisConfig is required, not both. eg: personLdap- Overrides:
getConfigIdThatIdentifiesThisConfig
in classGrouperConfigurationModuleBase
- Returns:
-
test
Validates the Scim provisioner by trying to log in and getting an auth token- Overrides:
test
in classGrouperExternalSystem
- Returns:
- Throws:
UnsupportedOperationException
-
validatePreSave
public void validatePreSave(boolean isInsert, boolean fromUi, List<String> errorsToDisplay, Map<String, String> validationErrorsToDisplay) - Overrides:
validatePreSave
in classGrouperExternalSystem
-