update provider

This commit is contained in:
2025-09-19 16:37:22 +00:00
parent e1a6af11a3
commit 30ac4ae4f9
2 changed files with 29 additions and 23 deletions

View File

@@ -33,9 +33,7 @@ class Provider extends AbstractProvider implements ProviderInterface
*/
protected function getBaseUrl(): string
{
return AnikeenId::getMode() === 'staging'
? 'https://staging.id.anikeen.com'
: 'https://id.anikeen.com';
return app(AnikeenId::class)->getBaseUrl();
}
/**
@@ -97,4 +95,12 @@ class Provider extends AbstractProvider implements ProviderInterface
'grant_type' => 'authorization_code',
]);
}
/**
* Returns the user logout url for the provider.
*/
public function getLogoutUrl(string $redirect = null): string
{
return app(AnikeenId::class)->getBaseUrl() . '/logout?redirect=' . urlencode($redirect ?: '/');
}
}