my $form_data = {
grant_type => 'client_credentials',
client_id => $api_key->client_id,
- client_secret => $api_key->secret
+ client_secret => $api_key->plain_text_secret
};
$t->post_ok( '/api/v1/oauth/token', form => $form_data )->status_is(200)
my $formData;
my $client_id = $api_key->client_id;
- my $client_secret = $api_key->secret;
+ my $client_secret = $api_key->plain_text_secret;
if ( $test_case eq 'header' ) {
$formData = {
grant_type => 'client_credentials',
client_id => $api_key->client_id,
- client_secret => $api_key->secret
+ client_secret => $api_key->plain_text_secret
};
$t->post_ok('/api/v1/oauth/token', form => $formData)