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.
When creating a flow without a
redirectUri
specified the defaultredirectUri
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.