[jboss-jira] [JBoss JIRA] (ELY-1537) PolicyContext.getContext("javax.security.auth.Subject.container")

Ilia Vassilev (JIRA) issues at jboss.org
Mon Mar 5 10:57:00 EST 2018


    [ https://issues.jboss.org/browse/ELY-1537?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13541507#comment-13541507 ] 

Ilia Vassilev commented on ELY-1537:
------------------------------------

Forum discussion: https://developer.jboss.org/thread/277260
[~mchoma] provided a workaround. According to [~dehort] which is working on the customer case, the problem with that workaround is that you are likely exposing a private Elytron API which may change. 

> PolicyContext.getContext("javax.security.auth.Subject.container")
> -----------------------------------------------------------------
>
>                 Key: ELY-1537
>                 URL: https://issues.jboss.org/browse/ELY-1537
>             Project: WildFly Elytron
>          Issue Type: Bug
>    Affects Versions: 1.2.3.Final
>            Reporter: Ilia Vassilev
>            Assignee: Darran Lofthouse
>
> PolicyContext.getContext("javax.security.auth.Subject.container") returns null when using elytron to protect a web application.
> This should return the authenticated subject.



--
This message was sent by Atlassian JIRA
(v7.5.0#75005)


More information about the jboss-jira mailing list