[Apiman-user] Replacing Keycloak

Amit Joshi amit.joshi at markit.com
Mon Jan 25 15:47:38 EST 2016


Hello,

I am trying to use Ping Federate for both login and for the API restrictions.

I understand that integrating into Ping Federate might not be trivial and might require some hacking into the APIMan code. I have created a sample java app that does the SP initiated login for ping federate that works. However with APIMan I am lost as to where to start ... I tried to look at the apiman-plugin-keycloak-oauth-policy to see but I suspect that it will take me some time to trace through it and figured that people working on the product might be able to get me started quicker.

In short, happy to help hack on the code but will need the touch points.  I assume there is some code somewhere that checks if the token already exists and if not then generates the auth request, gets the access code, validates the code and generates the token?

Regards,

Amit Joshi

-----Original Message-----
From: Eric Wittmann [mailto:eric.wittmann at redhat.com]
Sent: Monday, January 25, 2016 3:37 PM
To: Amit Joshi; apiman-user at lists.jboss.org
Subject: Re: [Apiman-user] Replacing Keycloak

Hi Amit.

To be clear, you are trying to replace Keycloak as the authentication mechanism for logging into the apiman UI, correct?

I can't say I know how to configure a web application to use pingfederate for authenticaiton (never done that before).  But I can tell you that it's likely that you will not be able to use the settings in standalone-apiman.xml because those are configuration settings for the keycloak auth client adapter.  The client adapter is the keycloak specific client that handles authentication redirects to the auth server.  I *assume* this adapter is keycloak-specific.

In order to get pingfederate working I must assume that they
(pingfederate) have some documentation for how to configure a java web application for authentication.  Sadly their documentation server seems to be broken at the moment.

I'll warn you that, while I'm sure using pingfederate is *possible*, it is probably not trivial.  You may need to contribute some code to apiman in order to enable support in the UI, for example.  If hacking some code is not a daunting prospect then I'd be happy to help point you in the direction of all the authentication touch points...

-Eric


On 1/25/2016 3:18 PM, Amit Joshi wrote:
> Hello,
>
> I have the following setup:
>
> Ping server -> external https url  (something like
> https://pingfederate.mydomain.com) - through an apache reverse proxy.
> Real server is pingfederate001.internal.com.
>
> APIman  -> external https url (something like
> https://apiman.mydomain.com) through ab apache reverse proxy. Real
> server is apiman001.internal.com.
>
> I am trying to replace keycloak with ping federate in APIMan.  I have
>
> -Disabled the integrated Keycloak.
>
> -Changed the
> <kc:auth-server-url>https://pingfederate.mydomain.com/as/token.oauth2<
> /kc:auth-server-url
> <https://pingfederate.mydomain.com/as/token.oauth2%3c/kc:auth-server-u
> rl>>
>
> However, when I access I see the following as the redirect - which is
> clearly wrong:
>
> https://pingfederate.mydomain.com/as/token.oauth2/relams/apiman/protocol/openid_connect/auth?
>
> with the following parameters:
>
> response_type=code
>
> client_id=apimanui
>
> redirect_uri=http://apiman001.internal.com
>
> I looked the code for the keycloak plugin but can't seem to see where
> the redirect is generated or set. I assume it is some additional
> properties or settings that I have to do or change code for so I can
> generate a Ping friendly redirect url etc.
>
> Appreciate any help or any pointers.
>
> Regards,
>
> Amit Joshi
>
>
> ----------------------------------------------------------------------
> --
>
> This e-mail, including accompanying communications and attachments, is
> strictly confidential and only for the intended recipient. Any
> retention, use or disclosure not expressly authorised by Markit is
> prohibited. This email is subject to all waivers and other terms at
> the following link:
> http://www.markit.com/en/about/legal/email-disclaimer.page
>
> Please visit http://www.markit.com/en/about/contact/contact-us.page
> for contact information on our offices worldwide.
>
>
> _______________________________________________
> Apiman-user mailing list
> Apiman-user at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/apiman-user
>

________________________________

This e-mail, including accompanying communications and attachments, is strictly confidential and only for the intended recipient. Any retention, use or disclosure not expressly authorised by Markit is prohibited. This email is subject to all waivers and other terms at the following link: http://www.markit.com/en/about/legal/email-disclaimer.page

Please visit http://www.markit.com/en/about/contact/contact-us.page for contact information on our offices worldwide.



More information about the Apiman-user mailing list