Followup #3515 - Allow single tenant only application in microsoft
This commit is contained in:
parent
0a89d39da6
commit
c69b691699
1 changed files with 9 additions and 9 deletions
|
@ -205,11 +205,11 @@ class ExternalCredential::Microsoft365
|
|||
|
||||
def self.authorize_tokens_params(credentials, authorization_code)
|
||||
{
|
||||
'client_secret' => credentials[:client_secret],
|
||||
'code' => authorization_code,
|
||||
'grant_type' => 'authorization_code',
|
||||
'client_id' => credentials[:client_id],
|
||||
'redirect_uri' => ExternalCredential.callback_url('microsoft365'),
|
||||
client_secret: credentials[:client_secret],
|
||||
code: authorization_code,
|
||||
grant_type: 'authorization_code',
|
||||
client_id: credentials[:client_id],
|
||||
redirect_uri: ExternalCredential.callback_url('microsoft365'),
|
||||
}
|
||||
end
|
||||
|
||||
|
@ -245,10 +245,10 @@ class ExternalCredential::Microsoft365
|
|||
|
||||
def self.refresh_token_params(credentials)
|
||||
{
|
||||
'client_id' => credentials[:client_id],
|
||||
'client_secret' => credentials[:client_secret],
|
||||
'refresh_credentials' => credentials[:refresh_credentials],
|
||||
'grant_type' => 'refresh_credentials',
|
||||
client_id: credentials[:client_id],
|
||||
client_secret: credentials[:client_secret],
|
||||
refresh_token: credentials[:refresh_token],
|
||||
grant_type: 'refresh_token',
|
||||
}
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue