openid_client icon indicating copy to clipboard operation
openid_client copied to clipboard

Avoid window 'You can now close this window'

Open Bat-m opened this issue 4 years ago • 4 comments

Hello

When the login is correct and openid authorize we can see a window 'You can now close this window'

is it possible to avoid this part ?

Bat-m avatar Oct 29 '20 12:10 Bat-m

Is there any way out to fix this ?

edihasaj avatar Dec 22 '20 18:12 edihasaj

I found a workaround on this. I modified the openid_client.io file in code line 60 at this time

request.response.headers.set('Content-type', 'text/html');
request.response.writeln('<html>'
   //'<h1>You can now close this window</h1>' // how it was
   '<h1>Redirecting back...</h1>' // now
   '<script>window.close();</script>'
   '</html>');
await request.response.close();

edihasaj avatar Dec 22 '20 19:12 edihasaj

Is there any reason content needs loaded here? I just removed the response stuff and it closes fine.

indiealexh avatar Apr 12 '21 07:04 indiealexh

@edihasaj

Thanks for the fix , i will do the same.

SylvainAssemat avatar Apr 14 '21 21:04 SylvainAssemat

Should be fixed with merging pull request #66. Will be released soon.

rbellens avatar Dec 29 '22 12:12 rbellens