Implemented token fetch
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
@hostname = api.example.com
|
||||
@port = 8080
|
||||
@host = {{hostname}}:{{port}}
|
||||
@contentType = application/json
|
||||
|
||||
###
|
||||
# @prompt username
|
||||
# @prompt refCode Your reference code display on webpage
|
||||
# @prompt otp Your one-time password in your mailbox
|
||||
POST https://{{host}}/verify-otp/{{refCode}} HTTP/1.1
|
||||
Content-Type: {{contentType}}
|
||||
|
||||
{
|
||||
"username": "{{username}}",
|
||||
"otp": "{{otp}}"
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
### Token Request
|
||||
POST https://{{authority}}/connect/token
|
||||
Content-Type: application/x-www-form-urlencoded
|
||||
Accept-Encoding: identity
|
||||
|
||||
grant_type={{grantType}}&client_id={{clientId}}&client_secret={{clientSecret}}&scope={{scope}}
|
||||
Reference in New Issue
Block a user