ObtainToken: Change grant_type to authorization_code.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
client_credentials worked before but not anymore. 🤷
This commit is contained in:
parent
41f470d2aa
commit
24cb2d523d
|
@ -226,14 +226,11 @@ answer_type Instance::ObtainToken::step_1(const string_view client_name,
|
|||
|
||||
answer_type Instance::ObtainToken::step_2(const string_view code)
|
||||
{
|
||||
parametermap parameters
|
||||
{
|
||||
{"client_id", _client_id},
|
||||
{"client_secret", _client_secret},
|
||||
{"redirect_uri", "urn:ietf:wg:oauth:2.0:oob"},
|
||||
{"code", code},
|
||||
{"grant_type", "client_credentials"}
|
||||
};
|
||||
parametermap parameters{{"client_id", _client_id},
|
||||
{"client_secret", _client_secret},
|
||||
{"redirect_uri", "urn:ietf:wg:oauth:2.0:oob"},
|
||||
{"code", code},
|
||||
{"grant_type", "authorization_code"}};
|
||||
if (!_scopes.empty())
|
||||
{
|
||||
parameters.insert({"scope", _scopes});
|
||||
|
|
Loading…
Reference in New Issue
Block a user