Configure the VS Code Project Folder
- After your administrator has setup the public client in Oracle IDCS, copy the
lines in the env.properties section from the AI Studio
CLI tab, part of Credentials tab in AI Agent Studio.The lines will be similar to these lines:
aistudio.fa-host = https://fa-eqkj-dev18-saasfademo1.ds-fa.oraclepdemos.com aistudio.clientId=7e4190889ab144539f494768bd49f6fc aistudio.orchestratorTokenUrl=https://fa-eqkj-dev18-saasfademo1.ds-fa.oraclepdemos.com/api/fusion-ai/orchestrator/authz/v1/tokens aistudio.primaryScope=urn:opc:resource:fusion:eqkj-dev18:fusion-ai/ aistudio.redirectUri=http://127.0.0.1:43188/callback aistudio.tenant=https://idcs-2ccbf0b4d0654430ac37d210f6efd9a8.identity.oraclecloud.com:443 - Paste the lines to the env.properties file in the project root folder of your VS Code project folder. If you don't see the file in your root project folder, create the file and paste the values.
- In VS Code, run the
Show and run Commandaction and select Fusion AI Studio: Configure Authentication- Select OAuth / Token Authentication.
- Sign in using your credentials.
- You can also open a terminal and run the command
aistudio authenticate.
Here are some common auth commands in aistudio:
aistudio authenticateaistudio whoamiaistudio logout