- Notifications
You must be signed in to change notification settings - Fork 177
Update 5.1 to follow basher and zero trust guidelines #196
Conversation
| 1. Ensure that the **My APIs** tab is selected. | ||
| 1. In the list of APIs, select the API `msal-angular-app`. | ||
| * Since this app signs-in users, we will now proceed to select **delegated permissions**, which is is requested by apps when signing-in users. | ||
| 1. In the **Delegated permissions** section, select the **access_as_user** in the list. Use the search box if necessary. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
codegen is generating "1. In the Delegated permissions section, select the Access 'msal-angular-app' in the list. Use the search box if necessary."
could you look this in code gen for me please?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will do -created an issue: https://github.com/Azure-Samples/GenerateScriptsForSample/issues/32
5-AccessControl/1-call-api-roles/AppCreationScripts/sample.json Outdated Show resolved Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good @derisen
5-AccessControl/1-call-api-roles/AppCreationScripts/sample.json Outdated Show resolved Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Aside from a few nits LGTM
5-AccessControl/1-call-api-roles/API/TodoListAPI/Controllers/TodoListController.cs Show resolved Hide resolved
| } | ||
| | ||
| removeTodo(id: string): void { | ||
| this.service.deleteTodo(+id).subscribe(() => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does the id parameter of deleteTodo have to be a number here?
| ngOnInit(): void { | ||
| this.route.paramMap.subscribe((params) => { | ||
| let id = +params.get('id')!; | ||
| this.service.getTodo(+id).subscribe((response: Todo) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here with id being a number.
Type mismatching like this seems like it might be a possible logic land mine in the future.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
id prop is of type int/number in both frontend and backend, so I think we are safe here. The query param is in string so I had to cast it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
![]()
Purpose
Does this introduce a breaking change?
Pull Request Type
What kind of change does this Pull Request introduce?
How to Test