openid_client icon indicating copy to clipboard operation
openid_client copied to clipboard

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

Open timalenustmf opened this issue 1 year ago • 0 comments

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.

timalenustmf avatar Aug 08 '24 13:08 timalenustmf