|
| 1 | +# Create the Web Credentials |
| 2 | + |
| 3 | +## Introduction |
| 4 | + |
| 5 | +In this workshop, you use OCI Generative AI as the AI provider to build a conversational chatbot. To use the OCI Generative AI Service in APEX, you will use the keys provided in the lab [Your OCI GenAI key](?lab=tut3253). |
| 6 | + |
| 7 | +Note: OCI Generative AI service is available in limited regions. If you are using your own cloud tenancy, check to see if your cloud region supports OCI Generative AI service, visit the [documentation](https://docs.oracle.com/en-us/iaas/Content/generative-ai/overview.htm#regions). |
| 8 | + |
| 9 | +Estimated Time: 10 Minutes |
| 10 | + |
| 11 | +### Objectives |
| 12 | +In this lab, you: |
| 13 | + |
| 14 | +- Create Web Credentials in Oracle APEX |
| 15 | + |
| 16 | +## Prerequisites |
| 17 | +- Download the zip file from [Your OCI GenAI key](?lab=tut3253) |
| 18 | + |
| 19 | +## Task 1: Create Web Credentials in Oracle APEX |
| 20 | + |
| 21 | +Web credentials are used to authenticate connection to external REST services, or REST Enabled SQL services from APEX. |
| 22 | + |
| 23 | +Creating Web Credentials securely stores and encrypts authentication credentials for use by Oracle APEX components and APIs. Credentials cannot be retrieved back in clear text. Credentials are stored at the workspace level and therefore are visible to all applications. |
| 24 | + |
| 25 | +To create a Web Credential in Oracle APEX: |
| 26 | + |
| 27 | +1. Login into your Oracle APEX workspace. |
| 28 | + |
| 29 | +  |
| 30 | + |
| 31 | +2. On the Workspace home page, click **App Builder**. |
| 32 | + |
| 33 | +  |
| 34 | + |
| 35 | +3. Click **Workspace Utilities**. |
| 36 | + |
| 37 | +  |
| 38 | + |
| 39 | +4. Select **Web Credentials**. |
| 40 | + |
| 41 | +  |
| 42 | + |
| 43 | +5. Click **Create**. |
| 44 | + |
| 45 | +  |
| 46 | + |
| 47 | +6. Enter the following details using the configuration file you copied in the previous task. |
| 48 | + |
| 49 | + - **Name**: apex\_ai\_cred |
| 50 | + |
| 51 | + - **Authentication Type**: OCI Native Authentication |
| 52 | + |
| 53 | + - **OCI User ID**: Enter the OCID of the Oracle Cloud user Account. You can find the OCID in the zip folder you downloaded as part os prerequisites. |
| 54 | + Your OCI User ID looks similar to **ocid1.user.oc1..aaaaaaaa\*\*\*\*\*\*wj3v23yla** |
| 55 | + |
| 56 | + - **OCI Private Key**: Open the private key (.pem file) downloaded in the previous task. Copy and paste the API Key. |
| 57 | + |
| 58 | +  |
| 59 | + |
| 60 | + - **OCI Tenancy ID**: Enter the OCID for Tenancy. Your Tenancy ID looks similar to **ocid1.tenancy.oc1..aaaaaaaaf7ush\*\*\*\*cxx3qka** |
| 61 | + |
| 62 | + - **OCI Public Key Fingerprint**: Enter the Fingerprint ID. Your Fingerprint ID looks similar to **a8:8e:c2:8b:fe:\*\*\*\*:ff:4d:40** |
| 63 | + |
| 64 | +  |
| 65 | + |
| 66 | +5. Click **Create**. |
| 67 | + |
| 68 | +## Summary |
| 69 | + |
| 70 | +You now know how to create web credentials in Oracle APEX. |
| 71 | + |
| 72 | +You may now **proceed to the next lab**. |
| 73 | + |
| 74 | +## Acknowledgments |
| 75 | +- **Author** - Apoorva Srinivas, Senior Product Manager |
| 76 | +- **Last Updated By/Date** - Apoorva Srinivas, Senior Product Manager, August 2024 |
0 commit comments