Kyle Daley

Results 55 comments of Kyle Daley

What's a PR and how? I've never done anything with Git. I'm purely TFS at work.

I could be wrong, but I upgraded to .NET 8 today (as much as I could). In doing so, I no longer needed a reference to this. Something must have...

> @ishatyagiit the role should be an array. Did you try this? > > ```json > `"Scopes": [ > "GoalsApiReadWrite", "GoalsApi.ReadWrite" > ] > ``` @jmprieur : The `AuthorizeForScopesAttribute` will...

Oooo, it may be even worse than I thought? https://github.com/AzureAD/microsoft-identity-web/blob/f6dc66019f5945a5ab8e0f0ad7283ea6831be97f/src/Microsoft.Identity.Web/AuthorizeForScopesAttribute.cs#L97 If I don't use an `Array` and instead just use a `string` of scopes, separated by a space, we never...

Here's what I'm doing temporarily until a fix is done: ``` C# public class MyAuthorizeForScopesAttribute : AuthorizeForScopesAttribute { public override void OnException(ExceptionContext context) { // If the user wishes us...

I took it a step further. It seems that if the exception is a `MicrosoftIdentityWebChallengeUserException`, we can get the requested scopes from that instead of having to be redundant in...

I've tried the following combinations: ``` csharp services.ConfigureApplicationCookie(o => { o.LoginPath = new PathString("/Account/Login"); }); ``` ``` csharp services.PostConfigure(CookieAuthenticationDefaults.AuthenticationScheme, options => { options.LoginPath = new PathString("/Account/Login"); }); ``` ``` csharp...

Here's what I have today, that seems to work (at least at first glance). However, I do have concern about any code that would issue a `ChallengeAsync()`. By default, it...