appsup-dart / openid_client

Library for working with OpenID Connect and implementing clients.
BSD 3-Clause "New" or "Revised" License
90 stars 118 forks source link

Default redirect uri http://localhost:80 results in permission denied error on Linux systems #116

Open timalenustmf opened 3 months ago

timalenustmf commented 3 months ago

When creating a flow without a redirectUri specified the default redirectUri is set to http://localhost (which implies port 80). However binding a program to port 80 is by default not possible on Linux systems when running as non-root. This results in the following error: SocketException: Failed to create server socket (OS Error: Permission denied, errno = 13), address = 0.0.0.0, port = 80

Running my dart program as root should not be necessary and is not recommended.

Changing the default redirectUri to http://localhost:8081 for example fixed my permission denied error.