mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
fix: Explain why logging in will not work
This commit is contained in:
@@ -227,10 +227,9 @@ export class IdentityProviderHttpHandler extends HttpHandler {
|
||||
|
||||
if (result.type === 'complete') {
|
||||
if (!oidcInteraction) {
|
||||
// Once https://github.com/solid/community-server/pull/898 is merged
|
||||
// we want to assign an error code here to have a more thorough explanation
|
||||
throw new BadRequestHttpError(
|
||||
'This action can only be executed as part of an authentication flow. It should not be used directly.',
|
||||
'This action can only be performed as part of an OIDC authentication flow.',
|
||||
{ errorCode: 'E0002' },
|
||||
);
|
||||
}
|
||||
// Create a redirect URL with the OIDC library
|
||||
|
||||
Reference in New Issue
Block a user