robdog
Well-known member
- Affected version
- 2.x+
This is not necessarily a bug and maybe an enhancement request. But I was wondering if we can add $additionalAuthParams as a function parameter with a default value of an empty array instead of initializing it within the function?
This came about because I wanted to force account selection for OAuth2 external accounts. I had to change a few lines of the core code to this:
Now there might be another way to do this, but it would be nice to be able to pass this in IF this is the right place.
Thanks.
This came about because I wanted to force account selection for OAuth2 external accounts. I had to change a few lines of the core code to this:
PHP:
$additionalAuthParams = [
'prompt' => 'select_account'
];
Now there might be another way to do this, but it would be nice to be able to pass this in IF this is the right place.
Thanks.