![]() If you're using a Watson service on Cloud Pak for Data, you'll need to authenticate in a specific way.In other instances, you authenticate by providing the username and password for the service instance.With some service instances, you authenticate to the API by using IAM.In the constructor of the authenticator (deprecated, but still available).In the builder of the authenticator (builder pattern).You can initialize the authenticator with either of the following approaches:.On Cloud Pak for Data that supports IAM, you must use the builder pattern. Also, if you're authenticating to a Watson service This pattern supportsĬonstructing the authenticator with only the properties that you need. Watson services are migrating to token-based Identity and Access Management (IAM) authentication.Īs of v9.2.1, the preferred approach of initializing an authenticator is the builder pattern. If you have more than one plan, you can use CredentialUtils to get the service credentials for an specific plan. When running in IBM Cloud (or other platforms based on Cloud Foundry), the library will automatically get the credentials from VCAP_SERVICES. If you are running your application in IBM Cloud (or other platforms based on Cloud Foundry), you don't need to specify theĬredentials the library will get them for you by looking at the VCAP_SERVICES environment variable. You will have to create a service in IBM Cloud. ![]() ![]() ![]() The examples within each service assume that you already have service credentials. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |