Replies: 3 comments
-
hey, @rich-mond, thanks for the detailed note, this is great!
I actually have something called
the FK feature currently in 12.x is focused on 1:1, but i'm hoping to add something for 1:many as well.
this is possible, but i don't have plans for it immediately. open to a PR here if you want to take a crack at it |
Beta Was this translation helpful? Give feedback.
-
Hi @pdevito3 Glad the feedback was useful! I'll expand on issue number 3. The first example file contains 2 entities and an AuthorizationSettings section specifying a policy: The second file is the same, with the addition of auth properties on the Qa environment: AuthorizationSettings decorate the controller methods with the Authorization tag
What I think is missing from the first file example generated output (and is present in the second file) is the following code: InfrastructureServiceExtension.cs
Which is the code that sets the Policy used by the Authorize tags if the correct claim is present. I would say if there is AuthorizationSettings with policy specified, then the policy/claim mapping should be there in InfrastructureServiceExtension.cs. |
Beta Was this translation helpful? Give feedback.
-
ah, i see. so, technically this is working as expected, but i should very probably change it in 0.12.x. if you're curious, under the hood, there is a boolean property on the boundary object that is checking to see if there are auth settings in public bool AddJwtAuthentication
{
get => Environments
.Where(e => e?.Authority?.Length > 0)
.ToList()
.Count > 0;
} this probably makes sense in some areas, but others like |
Beta Was this translation helpful? Give feedback.
-
Hey @pdevito3 cool project, looking forward to 0.12!
I wanted to mention a few things, I am not sure where in GitHub they would be most appropriate to put so ive added them all here:
Potential bugs/issues 0.11.1
These have (yaml definition) workarounds so may not be considered high priority
Future issue
Updating NuGet FluentAssertions package to 6.1.0 breaks tests
Suggestions/queries
Beta Was this translation helpful? Give feedback.
All reactions