Export HashHandler Token
See original GitHub issueIs your feature request related to a problem? Please describe. Yes.
We have a scenario where we have to run multiple instances of OAuthService side-by-side. For this, we need to override some of the dependencies of the OAuthService. As far as I am aware there is no way to specify a provider with deps
without suppling the full list of constructor arguments.
This brings me to my problem. OAuthService has the crypto parameter of type HashHandler
(even though it’s declared as @Optional()
but we need it for PKCE code flow). However, this type is not exported by the module (see https://github.com/manfredsteyer/angular-oauth2-oidc/blob/master/projects/lib/src/public_api.ts#L3). But I couldn’t find why. The commit message which changed that just says fixed issues after merging
. Even though the previous commit explicitly added the CryptoHandler to the public API (probably for similar reasons?).
Describe the solution you’d like Please export the HashHandler in the public api so that it can be re-used for the use case above.
Describe alternatives you’ve considered It would be sufficient to have an InjectionToken for it, if the class itself shouldn’t be exported for whatever reason.
I am happy to hand in the MR but I believe there was a reason that this line was commented out from public-api.ts
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (1 by maintainers)
Top GitHub Comments
@niklr My current workaround is to keep a 1:1 file copy of the
hash-handler.ts
file inside my library and use it instead of the one bundled with angular-oauth2-oidc. Not really happy with that, but for now I don’t know what else to do.I’ll probably just open a merge request within the next days which reverts that change.
Fair nuff!
Just labels for organizing stuff anyhow 😉