mitchelldirt
mitchelldirt
CC#
Created by mitchelldirt on 1/13/2024 in #help
SignalR Server ERR_CERT_AUTHORITY_INVALID
I'm having a strange issue right now while building my SignalR server using an ASP.Net Core web application. When I use Microsoft Edge everything works flawlessly: I open my locally running Vite React application and it makes the connection the server and then the server responds back; However, when I use any other browser at all it gives me the error in the title of this post. This GitHub Repo: https://github.com/mitchelldirt/GTFSSampleProject Includes all of my code though the code that matters in this case is in the SignalRServer folder and the frontend folder. I don't think this is an issue with the frontend, but you never know
2 replies
CC#
Created by mitchelldirt on 9/8/2023 in #help
✅ C# Graph API Client
I'm trying to access all of the items in a sharepoint list. I'm just getting an access denied error right now. Using the same site id and list id I can use my account to grab the items, but using the app I can't I think I might need to use the AllowAppOnly flag, but I have no clue how to do that. Anyone go any ideas?
// The request
var result = await client.Sites["siteid"].Lists["listid"].Items.GetAsync();

// How I'm building the graph client
var clientSecretCredential = new ClientSecretCredential(tenantId,clientId,clientSecret);

var graphClient = new GraphServiceClient(clientSecretCredential, scopes);
// The request
var result = await client.Sites["siteid"].Lists["listid"].Items.GetAsync();

// How I'm building the graph client
var clientSecretCredential = new ClientSecretCredential(tenantId,clientId,clientSecret);

var graphClient = new GraphServiceClient(clientSecretCredential, scopes);
17 replies
CC#
Created by mitchelldirt on 9/1/2023 in #help
✅ How to use secret manager asp.net
Good morning, was wondering how I can import a secret into a C# file using the secret manager. I initialized it and set a secret and I can access the configuration through the Program.cs file, but I'm not sure how I can pass it to my other C# file where the logic that necessitates the secrets is happening.
2 replies