Comments (7)
Hi @tdebiasio, thank you for creating this issue. We are in the process of moving Copilot Chat to its own repo located here:
https://github.com/microsoft/chat-copilot
I'm transferring this issue to that repo where we will take a look :).
from chat-copilot.
Hi @tdebiasio
AAD can be a pain to setup. Let's start by verifying the info in your .env file.
Does it look something like this:
REACT_APP_BACKEND_URI=https://localhost:40443/
REACT_APP_AAD_AUTHORITY=https://login.microsoftonline.com/YOUR_TENANT_ID
REACT_APP_AAD_CLIENT_ID=YOUR_CLIENT_ID
Where YOUR_TENANT_ID is your AAD tenant's GUID and YOUR_CLIENT_ID is your frontend client ID's GUID?
from chat-copilot.
@glahaye, that's correct and for the appsettings.json I have the following using the same tenant and client IDs as in the .env file:
"Authorization": {
"Type": "AzureAd",
"ApiKey": "",
"AzureAd": {
"Instance": "https://login.microsoftonline.com/",
"TenantId": "TENANT_ID",
"ClientId": "CLIENT_ID",
"Scopes": "access_as_user"
}
},
from chat-copilot.
I think that's your problem right there!
You need TWO distinct app registrations: one for your frontend and one for your backend.
I was trying to find where in the documentation we mention that but it seems it's never been in there!
I've created #54 to address this.
I should get around to work on the documentation this week. In the meantime, create a second app registration for the backend. It doesn't need any redirect URL's.
Here's some more info before I get around to writing the documentation:
https://damienbod.com/2020/06/08/angular-spa-with-an-asp-net-core-api-using-azure-ad-auth-and-user-access-tokens/
https://stackoverflow.com/questions/73047805/setup-spa-frontend-and-backend-as-separate-azure-ad-app-registrations
from chat-copilot.
@tdebiasio Have a look at the following PR. It gives you all the steps you need to make Azure AD Auth work:
#66
If this fixes your problem, please close this issue!
from chat-copilot.
The PR is now merged. All steps required to properly set up AAD are detailed.
from chat-copilot.
Furthermore, the client now has all the elements needed to support AAD correctly.
Solution verified to work.
Closing this issue.
Don't hesitate to reply if more information is required.
from chat-copilot.
Related Issues (20)
- [Help Required] Moving to Managed Identity for Azure Resource Authentication HOT 1
- Chat extension log output is not as informative as it used to be HOT 1
- Docker-compose up not working HOT 2
- How do I add support for csv, ppt, and support for other document types? HOT 1
- Unable to generate bot response. Details: Error: 500: Internal Server Error HOT 1
- Unable to access the web app HOT 7
- Conflict between appsettings and code HOT 1
- Infinite questions in copilot HOT 1
- Chat memories are not deleted when chat session is deleted HOT 7
- ChatPlugin crashes on Azure OpenAI gpt-35-turbo 1106 HOT 4
- What's the default queue name for AzureQueue? HOT 5
- Power Platform Chatbot Copilot Studio: Issue with publishing Copilots HOT 1
- User Feedback content violation
- After running the memory pipeline, it keeps throwing an error: 'File not found: chatmemory/{GUID}/__pipeline_status.json HOT 3
- Can't retrieve document memory in chat HOT 6
- Cannot read properties of undefined (reading 'getLogger') HOT 6
- Definition of quality health care HOT 1
- Definition of quality health care HOT 1
- Getting 404 - Ressource not found HOT 2
- 我如何在本地部署
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chat-copilot.