You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Nicholas DiPiazza (JIRA)" <ji...@apache.org> on 2018/08/10 16:37:01 UTC

[jira] [Commented] (HTTPCLIENT-1912) AuthSchemes.SPNEGO should be able to specify login conf and krb5 conf as parameters instead of system properties

    [ https://issues.apache.org/jira/browse/HTTPCLIENT-1912?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16576545#comment-16576545 ] 

Nicholas DiPiazza commented on HTTPCLIENT-1912:
-----------------------------------------------

Hey [~michael-o] I had been working on a different project for a while there now I'm back to this. 

So you sent me an example of TomcatAuthenticator code. Is that because it's a similar thing doing what I'm trying to do?

OK let's say I've created the login context and have logged in. 

Can you give me some high level code for {{wrap your HTTP call within a PrivilegedExceptionAction and call Subject#doAs(}}? That was greek to me. 

> AuthSchemes.SPNEGO should be able to specify login conf and krb5 conf as parameters instead of system properties
> ----------------------------------------------------------------------------------------------------------------
>
>                 Key: HTTPCLIENT-1912
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1912
>             Project: HttpComponents HttpClient
>          Issue Type: Improvement
>          Components: HttpClient (classic)
>    Affects Versions: 4.5.2
>            Reporter: Nicholas DiPiazza
>            Priority: Major
>              Labels: volunteers-wanted
>             Fix For: Stuck
>
>
> in order to use spenego 
> see [example|https://github.com/jumarko/kerberos-auth-example/blob/master/src/main/java/net/curiousprogrammer/auth/kerberos/example/KerberosAuthExample.java]
> you need to specify system properties to specify a custom krb5.conf or login.conf location.
> It would be very useful if these could be given as parameters somehow instead of system properties, because in our cloud apps use case, sharing these as system properties at the jvm level is causing conflicts. 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org