Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to discover OP endpoint URL #124

Open
ignissak opened this issue Jan 7, 2024 · 0 comments
Open

Failed to discover OP endpoint URL #124

ignissak opened this issue Jan 7, 2024 · 0 comments

Comments

@ignissak
Copy link

ignissak commented Jan 7, 2024

I am using passport-team as my Strategy in my NestJS application. Everything was working fine yesterday but today I'm getting this error:

InternalOpenIDError: Failed to discover OP endpoint URL
This error is thrown eventually from this line in node_modules\.pnpm\[email protected]\node_modules\openid\openid.js:757:14:
return callback({ message: 'No providers found for the given identifier' }, null);

I debugged the variables in passport-openid and it looks like authenticate is called two times. The first time there is no error, I have providerUrl and correct identifier (if I navigate to the providerUrl it is the correct url I should be redirected to). But the second the error is { message: 'No providers found for the given identifier' } and the providerUrl is null.

How come I am not redirected on the first call? This is my auth controller:

@Controller('auth')
export class AuthController {
	constructor(private readonly authService: AuthService) {}

	@Get('steam')
	@UseGuards(SteamGuard)
	steamLogin() {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant