Closed mrtristan closed 4 years ago
@NicolasDorier if you get a chance to merge this and bump the package, that'd be appreciated. I'll need to set up consuming my fork otherwise so hoping I don't have to. 🤞
Thank you pushed new version. 1.0.0.36
appreciate the quick turnaround
in
public AccessToken GetAccessToken(Facade requirement)
, in the case of_Tokens
containing just apos
token, and if apos
token is requested, the secondif
here will cause the token resolution to return null.i'd propose that this can be shortened to the following which will achieve what you're trying to do with this fallback/inheritance concept:
additionally, it should use the token that was explicitly requested if present so starting it off with a null check to make sure the initial lookup attempt failed.
sending up a PR