Skip to content

First sample#5

Merged
patchandthat merged 5 commits intomainfrom
FirstSample
Apr 15, 2026
Merged

First sample#5
patchandthat merged 5 commits intomainfrom
FirstSample

Conversation

@andrewclymer
Copy link
Copy Markdown

Can you give this a whirl and make sure it makes sense from some one looking at this with little knowledge

Copy link
Copy Markdown

@patchandthat patchandthat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor edits needed.

if (success == false)
{
string? error =
JsonSerializer.Deserialize<JsonElement>(response.Context).GetProperty("error").GetString();
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need TryGetProperty here, otherwise you have a KeyNotFoundException when the policy returns Deny without error.

Comment thread Samples/CSharp/PolicyDrivenExpenses/WebApp/Pages/_Layout.cshtml
## Run

```zsh
cd /Users/andyclymer/git/AuthZenExample/WebApp
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change path to be relative to this readme

Comment thread Samples/CSharp/PolicyDrivenExpenses/PolicyDrivenExpenses.sln.DotSettings.user Outdated
@patchandthat patchandthat merged commit d4d32ef into main Apr 15, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants