On Thu, 28 Oct 2021 19:34:21 GMT, Weijun Wang wrote:
> Hi, Chap. Thanks for the comment.
>
> Is it possible you run `callAs` with a "higher level" subject that contains a
> link to another more dynamic subject? For example, just make your
> `Supplier` a public credential inside. If the caller
On Thu, 28 Oct 2021 17:21:42 GMT, Weijun Wang wrote:
>> New `Subject` APIs `current()` and `callAs()` are created to be replacements
>> of `getSubject()` and `doAs()` since the latter two methods are now
>> deprecated for removal.
>>
>> In this implementation, by default, `current()` returns t
On 10/28/21 13:25, Weijun Wang wrote:
>>> New `Subject` APIs `current()` and `callAs()` are created ...
>>> where the `callAs()` method stores the subject into a `ThreadLocal`
>>> object and the `current()` method returns it
That approach is simple and sweet. There is a case it doesn't cover,
whe
On Thu, 28 Oct 2021 17:21:42 GMT, Weijun Wang wrote:
>> New `Subject` APIs `current()` and `callAs()` are created to be replacements
>> of `getSubject()` and `doAs()` since the latter two methods are now
>> deprecated for removal.
>>
>> In this implementation, by default, `current()` returns t
> New `Subject` APIs `current()` and `callAs()` are created to be replacements
> of `getSubject()` and `doAs()` since the latter two methods are now
> deprecated for removal.
>
> In this implementation, by default, `current()` returns the same value as
> `getSubject(AccessController.getCurrent(