pgadmin-org / pgadmin-org/pgadmin4
Add auto-redirect to provider / Disable Login Screen / Form
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 3.8k
- Forks
- 891
- Avg merge
- 4d 7h
- Merged PRs (30d)
- 8
Description
Describe the solution you'd like
If an external provider was set for authentication, and the local auth is disabled, the login form is still showed.
It could be interesting to implement a new environment / config variable to disable the login form and redirect automatically to the provider thanks to the informations added in the PGADMIN_CONFIG_OAUTH2_CONFIG environment variable or the config.py
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading config.py and the PGADMIN_CONFIG_OAUTH2_CONFIG configuration path to understand how external providers and local authentication are represented. Trace the login entry point that displays the form, then define how the new setting should select a provider and redirect when local authentication is disabled. Done means the configured behavior is documented and the login form is bypassed only under the requested conditions.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- authentication, backend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100