IDP5 Java CookieManager?
Steven Premeau
steven.premeau at maine.edu
Fri Jun 14 19:12:48 UTC 2024
Unfortunately, I do not. That is a risk that occurs when you enter the
"Impl" areas of code, you effectively take over responsibility for
maintaining compatibility with the rest of the product.
Looking at the different between the 4.x and 5.x class documentation, the
one tip I can offer would be this one:
Remember that V5 of the IDP requires Servlet API 5.0 calls, so anything
using (among other things) javax.servlet.* classes will not work without
modification.
See also:
https://shibboleth.atlassian.net/wiki/spaces/IDP5/pages/3199500962/Moving+to+Suppliers+for+accessing+HttpServlet+Objects
Steve.
On Fri, Jun 14, 2024 at 8:40 AM Käfer Thomas <
thomas.kaefer at fh-campuswien.ac.at> wrote:
> Hello Steven,
>
> thank you for your quick reply, that helped a lot!
> I also found that my modified "ExternalAuthenticationImpl" doesn't fit the
> current interface anymore, do you know of any examples working with IDP5?
>
> Thank you,
> kind regards,
> Thomas Käfer
> FH-Campus Wien
> ------------------------------
> *Von:* Steven Premeau <steven.premeau at maine.edu>
> *Gesendet:* Freitag, 14. Juni 2024 13:15
> *An:* Shib Users <users at shibboleth.net>
> *Cc:* Käfer Thomas <thomas.kaefer at fh-campuswien.ac.at>; Fleissner Gregor <
> gregor.fleissner at fh-campuswien.ac.at>
> *Betreff:* Re: IDP5 Java CookieManager?
>
> There is definitely still a CookieManager class in IDP5.
>
> I did not use the class in IDP5, but I suspect your issue is caused by
> the reorganization that occurred for IDP5.
>
> The current class can be found at net.shibboleth.shared.net.CookieManager.
>
>
> https://shibboleth.net/api/java-shib-shared/9.1.2/net/shibboleth/shared/net/CookieManager.html
>
> Steve.
>
> On Fri, Jun 14, 2024 at 6:26 AM Käfer Thomas via users <
> users at shibboleth.net> wrote:
>
> Hello everyone!
>
> I'm currently upgrading our Shibboleth test server from IDP 4 to 5. We are
> using a custom:
> `class AuthFunction implements
> Function<ProfileRequestContext<AuthnRequest, String>, Object>`
> that sends credentials to a custom auth web service and recieves session
> keys which it writes to a cookie which it also reads back before asking the
> user for his credentials to achieve single signon with various other web
> applications that use the same auth-service & cookie.
>
> The cookie functionality of this AuthFunction class was based on
> `net.shibboleth.utilities.java.support.net.CookieManager` injected using
> @Autowired
> @Qualifier("shibboleth.CookieManager")
> CookieManager cm;
>
> Sadly, since the upgrade to IDP5 this class seems to be no longer
> available, my log contains:
> java.lang.ClassNotFoundException:
> net.shibboleth.utilities.java.support.net.CookieManager
>
> Can I re-add it as a jar package or is there maybe some replacement for
> this utility I could now use instead to read and write cookies?
>
> Thank you for reading,
> Kind regards,
> Thomas Käfer
> FH Campus Wien
>
> Informationen zum Datenschutz:
> www.fh-campuswien.ac.at/datenschutzerklaerung
> --
> For Consortium Member technical support, see
> https://shibboleth.atlassian.net/wiki/x/ZYEpPw
> To unsubscribe from this list send an email to
> users-unsubscribe at shibboleth.net
>
>
>
> --
> Steven Premeau, Director of Enterprise Systems Architecture &
> Administration
> University of Maine System: Information Technology
> (207) 581-5836 (desk) | (207) 944-9391 (mobile)
>
--
Steven Premeau, Director of Enterprise Systems Architecture & Administration
University of Maine System: Information Technology
(207) 581-5836 (desk) | (207) 944-9391 (mobile)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/users/attachments/20240614/c5480ba3/attachment.htm>
More information about the users
mailing list