Hi Guys I am writing a integration test for aws lamda autoriser for api gateway. do we have any c# code example to get jwt tokens (id, access) by using (username, passord) by making c# httpclient call to Okta? some kind of CURL for example curl --location --request POST ‘https://org.okta.com/oauth2/v1/token’ –header ‘Accept: application/json’ –header ‘Content-Type: application/x-www-form-urlencoded’ –header ‘Content-Type: application/x-www-form-urlencoded’ –data-urlencode ‘grant_type=password’ –data-urlencode ‘username=test.user’ –data-urlencode ‘password=p@ssw0rd’ –data-urlencode ‘scope=openid’ –data-urlencode ‘client_id={{clientId}}’
Hi Guys
I am writing a integration test for aws lamda autoriser for api gateway.
do we have any c# code example to get jwt tokens (id, access) by using (username, passord)
by making c# httpclient call to Okta?
some kind of CURL for example
curl --location --request POST ‘https://org.okta.com/oauth2/v1/token’
–header ‘Accept: application/json’
–header ‘Content-Type: application/x-www-form-urlencoded’
–header ‘Content-Type: application/x-www-form-urlencoded’
–data-urlencode ‘grant_type=password’
–data-urlencode ‘username=test.user’
–data-urlencode ‘password=p@ssw0rd’
–data-urlencode ‘scope=openid’
–data-urlencode ‘client_id={{clientId}}’