when I was doing API 2019 - The Improper Assets Management - during the final exam noticed the following issue:
Question #4 Multi-choice response is incorrect:
The API response:
import re | |
import time | |
# Parameters to configure | |
re_csrf = 'name="csrf" value="([\w\d]+)"' | |
re_session = 'session=([\w\d]+)' | |
url='https://0add0030040299378166d901002800a1.web-security-academy.net' | |
delay=1 #sec | |
max_concurrent=5 | |
max_thread=10 |
Comparing step-up authentication with MFA using OAuth/OpenID Connect versus using the Authentication API requires examining various factors, including flexibility, integration complexity, and use-case alignment. Here's a breakdown:
Pros:
There are two permissions available for granting the ability to create application registrations, each with different behavior.
microsoft.directory/applications/createAsOwner: Assigning this permission results in the creator being added as the first owner of the created app registration, and the created app registration counts against the creator's 250 created objects quota.
microsoft.directory/applications/create: Assigning this permission results in the creator not being added as the first owner of the created app registration, and the created app registration won't count against the creator's 250 created objects quota. Use this permission carefully, because there's nothing preventing the assignee from creating app registrations until the directory-level quota is hit. If both permissions are assigned, this permission takes precedence.
(env) ➜ huggingface cat app3.py import argparse import sys
def main(): # Create the top-level parser parser = argparse.ArgumentParser(description="Process some files.") subparsers = parser.add_subparsers(dest='action', required=True, help='Action to perform')
# Input Parameters | |
param( | |
[Parameter(Mandatory=$false)] | |
[string]$InputFile, | |
[Parameter(Mandatory=$false)] | |
[string]$OutputFile | |
) | |
# Ref: https://www.powershellgallery.com/packages/PSYaml/1.0.2/Content/Public%5CConvertTo-Yaml.ps1 | |
function ConvertTo-Yaml |