Click here to Skip to main content
15,881,767 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: MultiThread on Single Core Processor (CPU) Pin
Eddy Vluggen6-Sep-22 5:19
professionalEddy Vluggen6-Sep-22 5:19 
AnswerRe: MultiThread on Single Core Processor (CPU) Pin
Sam Hobbs5-Oct-22 20:19
Sam Hobbs5-Oct-22 20:19 
Question_ViewImports.cshtml question Pin
pkfox23-Aug-22 22:15
professionalpkfox23-Aug-22 22:15 
AnswerRe: _ViewImports.cshtml question Pin
Richard Deeming23-Aug-22 22:47
mveRichard Deeming23-Aug-22 22:47 
GeneralRe: _ViewImports.cshtml question Pin
pkfox23-Aug-22 23:13
professionalpkfox23-Aug-22 23:13 
GeneralRe: _ViewImports.cshtml question Pin
Richard Deeming23-Aug-22 23:29
mveRichard Deeming23-Aug-22 23:29 
GeneralRe: _ViewImports.cshtml question Pin
pkfox23-Aug-22 23:44
professionalpkfox23-Aug-22 23:44 
QuestionProblem with Azure AD JWT - solved Pin
pkfox18-Aug-22 5:56
professionalpkfox18-Aug-22 5:56 
I have an API and a client registered for authorization on Azure AD.
When making a call to an endpoint which has the Authorize attribute on, I'm getting a 401 unauthorized response. I think the problem is, I'm using the wrong clientid/ResourceId combination when acquiring the token ( I get a token but it's invalid ) - anyone know which clientid/ResourceId I should be using when requesting the token ?

On the API registration in Azure the values are
ClientId: "0efb6359-0d88-4196-9f53-054b042b2ae1"
Instance: https://login.microsoftonline.com/",
ResourceId: "api://0efb6359-0d88-4196-9f53-054b042b2ae1/.default", // this should be 41eeebbd-ea7f-4f49-a936-1624b6cb9c72
TenantId: "90fff3ee-9a7c-4eb1-8259-4d8c6bf6ca90"

and the client
ClientId: "41eeebbd-ea7f-4f49-a936-1624b6cb9c72",
Instance: "https://login.microsoftonline.com/",
ResourceId: "api://0efb6359-0d88-4196-9f53-054b042b2ae1/.default" // this should be 41eeebbd-ea7f-4f49-a936-1624b6cb9c72
TenantId: "90fff3ee-9a7c-4eb1-8259-4d8c6bf6ca90"
I'm confused Wink | ;) I've tried swapping out the clientid/ResourceId but to no avail hope this makes sense

Edit
I figured it out you have to put the clientid of the Client in the resourceid of the API
Life should not be a journey to the grave with the intention of arriving safely in a pretty and well-preserved body, but rather to skid in broadside in a cloud of smoke, thoroughly used up, totally worn out, and loudly proclaiming “Wow! What a Ride!" - Hunter S Thompson - RIP


modified 19-Aug-22 11:30am.

QuestionRest API always return 401 status code Pin
Mou_kol10-Aug-22 0:59
Mou_kol10-Aug-22 0:59 
AnswerRe: Rest API always return 401 status code Pin
Gerry Schmitz10-Aug-22 4:05
mveGerry Schmitz10-Aug-22 4:05 
GeneralRe: Rest API always return 401 status code Pin
Mou_kol10-Aug-22 5:08
Mou_kol10-Aug-22 5:08 
QuestionASP.NET Core MVC: How to secure token when passing with url Pin
Mou_kol9-Aug-22 4:23
Mou_kol9-Aug-22 4:23 
AnswerRe: ASP.NET Core MVC: How to secure token when passing with url Pin
Richard Deeming9-Aug-22 5:12
mveRichard Deeming9-Aug-22 5:12 
GeneralRe: ASP.NET Core MVC: How to secure token when passing with url Pin
Mou_kol10-Aug-22 0:58
Mou_kol10-Aug-22 0:58 
QuestionGet this error when returning view Pin
pkfox3-Aug-22 22:41
professionalpkfox3-Aug-22 22:41 
AnswerRe: Get this error when returning view Pin
Richard Deeming3-Aug-22 23:25
mveRichard Deeming3-Aug-22 23:25 
GeneralRe: Get this error when returning view Pin
pkfox3-Aug-22 23:40
professionalpkfox3-Aug-22 23:40 
QuestionWhat's the difference between dotnet publish -c Release vs -c Debug? Pin
DeltaOrionis29-Jul-22 11:47
DeltaOrionis29-Jul-22 11:47 
AnswerRe: What's the difference between dotnet publish -c Release vs -c Debug? Pin
Dave Kreskowiak31-Jul-22 12:53
mveDave Kreskowiak31-Jul-22 12:53 
GeneralRe: What's the difference between dotnet publish -c Release vs -c Debug? Pin
DeltaOrionis1-Aug-22 7:59
DeltaOrionis1-Aug-22 7:59 
GeneralRe: What's the difference between dotnet publish -c Release vs -c Debug? Pin
Dave Kreskowiak1-Aug-22 8:31
mveDave Kreskowiak1-Aug-22 8:31 
GeneralRe: What's the difference between dotnet publish -c Release vs -c Debug? Pin
DeltaOrionis2-Aug-22 14:49
DeltaOrionis2-Aug-22 14:49 
QuestionVb.Net and .Net Core 6 Books Pin
crmfghtr14-Jul-22 13:27
crmfghtr14-Jul-22 13:27 
GeneralRe: Vb.Net and .Net Core 6 Books Pin
Richard MacCutchan14-Jul-22 21:13
mveRichard MacCutchan14-Jul-22 21:13 
AnswerRe: Vb.Net and .Net Core 6 Books Pin
Dave Kreskowiak15-Jul-22 8:11
mveDave Kreskowiak15-Jul-22 8:11 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.