You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I'm trying to implemen this package in my app.
I wrote the following controller :
class RevolutAuthController extends Controller
{
protected $authProvider;
public function __construct()
{
$this->authProvider = new RevolutAuthProvider([
'clientId' => getenv('REVOLUT_CLIENT_ID'),
'privateKey' => file_get_contents(base_path('/privatecert.pem')),
'redirectUri' => "http://my_domain/api/v1/revolut/auth/callback",
'isSandbox' => true
]);
}
public function redirectToProvider()
{
return redirect($this->authProvider->getAuthorizationUrl(['scope' => "READ,WRITE,PAY"]));
}
public function handleRevolutCallback(Request $request)
{
$accessToken = $this->authProvider->getAccessToken('authorization_code', [
'code' => $request->get('code')
]);
if ($accessToken->hasExpired()) {
$newAccessToken = $this->authProvider->getAccessToken('refresh_token', [
'refresh_token' => $accessToken->getRefreshToken()
]);
$accessToken = $newAccessToken;
}
}
}
The redirect to provider metod works properly and generates a link where I can authorize the app, the issue comes when i try to authorize the app with sms in the revolut side.
After filling in the authcode revolut says "Action is forbidden" and does not redirect to the redirect URI provided.
I have also tried to authorise the app manually via the revolut dashoboard and in that case it works properly.
Any idea on where the issue colud be?
Thank you
The text was updated successfully, but these errors were encountered:
Hello, I'm trying to implemen this package in my app.
I wrote the following controller :
The redirect to provider metod works properly and generates a link where I can authorize the app, the issue comes when i try to authorize the app with sms in the revolut side.
After filling in the authcode revolut says "Action is forbidden" and does not redirect to the redirect URI provided.
I have also tried to authorise the app manually via the revolut dashoboard and in that case it works properly.
Any idea on where the issue colud be?
Thank you
The text was updated successfully, but these errors were encountered: