diff --git a/ex-01/authCode.http b/ex-01/authCode.http deleted file mode 100644 index 32297e6..0000000 --- a/ex-01/authCode.http +++ /dev/null @@ -1,29 +0,0 @@ -## Defining variables -@tenant_id= -@client_id= -@scope=openid profile -@state=123456789 -@redirect_uri= - -###The first leg -GET https://login.microsoftonline.com/{{tenant_id}}/oauth2/v2.0/authorize - ?client_id={{client_id}} - &response_type=code - &redirect_uri={{redirect_uri}} - &response_mode=query - &scope={{scope}} - &state={{state}} - -### The Second Leg, assuming client_secret to be available in env variable prior to starting vs code -### We could use a promt to ask for the client secret -## @prompt client_secret The Client Secret of the app registration -POST https://login.microsoftonline.com/{{tenant_id}}/oauth2/v2.0/token -content-type: application/x-www-form-urlencoded - -client_id={{client_id}} -&scope={{scope}} -&redirect_uri={{redirect_uri}} -&grant_type=authorization_code -&client_secret={{$processEnv APPSEC_AA_CLIENT_SECRET}} -&code= -&state={{state}} \ No newline at end of file