Skip to content

Hotfix/refactor#17

Closed
Martin1088 wants to merge 4 commits intomainfrom
hotfix/refactor
Closed

Hotfix/refactor#17
Martin1088 wants to merge 4 commits intomainfrom
hotfix/refactor

Conversation

@Martin1088
Copy link
Contributor

Refactor app and provider creating

@Threated
Copy link
Member

Threated commented Jul 4, 2025

Not a fan of moving the secret generation to shared and also not a fan of creating a function for creating the secret based on public or private. What was the motivation for that?

@Martin1088
Copy link
Contributor Author

Because secret generation was based with „if“ on the „is_public“ before. Like client_id.
And to put it in the same context and place.

@Threated
Copy link
Member

Threated commented Jul 4, 2025

Yeah I know that but

  1. What does that have to do in shared it only concerns central
  2. shared now has a dependency on rand for local for no reason
  3. I am not a fan of putting hacky intransparent things like returning an empty string if its public in functions as it hides that information from the usage site and in this case it is only used twice

@@ -1,3 +1,4 @@
#[allow(unused_imports)]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why? You should probably add a #[cfg(test)] above the mod tests; in mod.rs which might solve some of your import issues

@Threated
Copy link
Member

Threated commented Jul 4, 2025

These clean ups are not that important and the diff is getting a bit messy now. Can you do this after my vacation and make a separate PR fixing the redirect url thing we discussed

@Martin1088 Martin1088 closed this Jul 5, 2025
@Martin1088
Copy link
Contributor Author

Only basic the refactor fn
Created new request

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants