Expected Behavior
Spring security test cases make extensive use of TestOidcUsers.create() and similar classes.
see https://github.com/spring-projects/spring-security/blob/d35b38e/oauth2/oauth2-core/src/test/java/org/springframework/security/oauth2/core/oidc/user/TestOidcUsers.java#L33
However, the utility classes are test scope only, so I cannot directly use them for testing in my own projects.
This is pretty annoying. I know I can copy classes from spring-security test-source but it is a temporary workaround which is brittle, as spring-security classes change between releases.
Instead, I would prefer to depend on a test-only package.
- is it possible to create and release a test util package for spring security (or spring-security-oauth2)?
- if yes, what size of effort would it take from the team to make that happen?
is it already possible to achieve what I am trying to do today, then please guide me
Thanks for your understanding 👍