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

RequestError: Request timed out in authorizationCallback #61

Closed
frntendev opened this issue Nov 21, 2017 · 1 comment
Closed

RequestError: Request timed out in authorizationCallback #61

frntendev opened this issue Nov 21, 2017 · 1 comment

Comments

@frntendev
Copy link

frntendev commented Nov 21, 2017

Hello Panava,
I'm trying to use openid-client in es5.
after I create my url I want to use authorizationCallback promise but it goes in catch and I get timed out error.

var clientQuery = client.callbackParams(query);
client.authorizationCallback('http://example.com/cb', clientQuery, {state: state})
        .then(function (tokenSet) {
            console.log('received and validated tokens %j', tokenSet);
            console.log('validated id_token claims %j', tokenSet.claims);
        })
        .catch(function (e) {
            logger.writeLog(e);
        });
@panva
Copy link
Owner

panva commented Nov 21, 2017

Try increasing the default http client values such as request timeout. If the problem persists i suggest to check the request is actually getting through your network.

@panva panva closed this as completed Nov 23, 2017
@github-actions github-actions bot locked and limited conversation to collaborators Apr 6, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants