DefGuard / DefGuard/defguard

Create OpenID provider after clicking "Finish" in last step

Open
#2,679 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Rust
Stars
2.8k
Forks
115
Avg merge
1d 4h
Merged PRs (30d)
51

Description

### Description

Currently, the OpenID Provider object is partially persisted to the database in the wizard flow, even if subsequent steps fail validation. "Back" button deletes OpenID provider from database which is incorrect, we shouldn't add OpenID provider to database in first place, if error occurs.

Expected Behaviour: The provider object should only be fully created and committed to the database after all configuration steps are successfully completed (after user explicitly clicked 'Finish' in last step)

https://github.com/user-attachments/assets/05073946-6359-4d82-961a-8f635760e38a

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.