Skip to content

Commit

Permalink
prompt is best left blank
Browse files Browse the repository at this point in the history
  • Loading branch information
tamw-wnet committed Sep 24, 2024
1 parent 14a7820 commit c9f4fc4
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions classes/class-pbs-passport-authenticate.php
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,11 @@ public function get_pmsso_link($args = null) {
$redirect_uri = ( !empty($args['redirect_uri']) ? $args['redirect_uri'] : site_url('pbsoauth/callback/') );
$client_id = ( !empty($args['client_id']) ? $args['client_id'] : $defaults['pmsso_client_id'] );
$customerid = ( !empty($args['customer_id']) ? $args['customer_id'] : $defaults['pmsso_customerid'] );
$prompt = ( !empty($args['prompt']) ? $args['prompt'] : 'login' );
$pmsso_url = "https://login.publicmediasignin.org/" . $customerid . "/login/authorize?client_id=" . $client_id . "&redirect_uri=" . $redirect_uri . "&scope=openid&response_type=code&prompt=" . $prompt;
$prompt = ( !empty($args['prompt']) ? $args['prompt'] : false);
$pmsso_url = "https://login.publicmediasignin.org/" . $customerid . "/login/authorize?client_id=" . $client_id . "&redirect_uri=" . $redirect_uri . "&scope=openid&response_type=code";
if (!empty($prompt)) {
$pmsso_url .= "&prompt=" . $prompt;
}
return $pmsso_url;
}

Expand Down

0 comments on commit c9f4fc4

Please sign in to comment.