OAuth command group for the AdminTask object
We can use Jython or Jacl scripting to configure OAuth with wsadmin.sh. Commands in the OAuth group can be used to configure the OAuth Trust Association Interceptor (TAI) and to manage the OAuth provider configuration.
OAuth group commands:
The enableOAuthTAI command adds the OAuth TAI to the security configuration.
- enableOAuthTAI
- createOAuthProvider
- deleteOAuthProvider
Examples:
Information Value Required parameters None Optional parameters None The createOAuthProvider command creates an OAuth provider in the security configuration.
- Jacl: $AdminTask enableOAuthTAI
- Jython: AdminTask.enableOAuthTAI()
Examples:
Information Value Required parameters -providerName The name of the OAuth provider. (String, required)
-fileName
Provider configuration file. The file must exist exist. (String, required)
Optional parameters None The deleteOAuthProvider command deletes the OAuth provider from the security configuration.
- Jacl:
$AdminTask createOAuthProvider {-providerName OAuthProvider1 -fileName c:/WebSphere/properties/OAuthConfigSample.xml}
- Jython:
AdminTask.createOAuthProvider('[-providerName OAuthProvider1 -fileName c:/WebSphere/properties/OAuthConfigSample.xml]')
Examples:
Information Value Required parameters -providerName The name of the OAuth provider. (String, required)
Optional parameters None
- Jacl: $AdminTask deleteOAuthProvider {-providerName OAuthProvider1}
- Jython: AdminTask.deleteOAuthProvider('-providerName OAuthProvider1')