I have the same problem, and I have added that dependency in the xml.
-----Original Message-----
From: keycloak-user-bounces(a)lists.jboss.org [mailto:keycloak-user-bounces@lists.jboss.org]
On Behalf Of Stian Thorgersen
Sent: Wednesday, October 2, 2019 8:19 AM
To: James Mitchell <jamesm(a)suitebox.com>
Cc: keycloak-user <keycloak-user(a)lists.jboss.org>
Subject: Re: [keycloak-user] Any examples for custom Identity Providers?
Did you add a jboss-deployment-structure.xml with a dependency on server-private-api (or
whatever it is called) module?
On Wed, 2 Oct 2019, 05:39 James Mitchell, <jamesm(a)suitebox.com> wrote:
Are there any examples for customising an Identity Provider?
I want to make an extension to the OIDCIdentityProvider, so that I can
accept non-standard fields for the userinfo response. All part of
trying to get token exchange to work in our system...
I have made a light change to the OIDCIdentityProvider, and also
compared with the various social providers, and I have something that deploys.
But it throws an error at runtime trying to create the class.
This looks liek this when adding the provider in the website
UT005023: Exception handling request to
/auth/admin/realms/sbxtest/identity-provider/providers/xplan:
java.lang.NoClassDefFoundError: Failed to link
com/suitebox/keycloak/broker/xplan/XPLANIdentityProvider (Module
"deployment.sbxkeycloak.jar" from Service Module Loader):
org/keycloak/broker/oidc/AbstractOAuth2IdentityProvider
And looks like this when trying to perform token-exchange with the
provider Uncaught server error: java.lang.NoClassDefFoundError: Failed
to link com/suitebox/keycloak/broker/xplan/XPLANIdentityProvider
(Module "deployment.sbxkeycloak.jar" from Service Module Loader):
org/keycloak/broker/oidc/AbstractOAuth2IdentityProvider
----
*James Mitchell*
Developer
e: jamesm(a)suitebox.com
w:
www.suitebox.com
*SuiteBox |* Level 4, 8 Mahuhu Crescent, Auckland 1010, NZ
_______________________________________________
keycloak-user mailing list
keycloak-user(a)lists.jboss.org
https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.jboss.org_m
ailman_listinfo_keycloak-2Duser&d=DwICAg&c=CIoxZ4z5BqFvKvSGFOTo726QZIi
NTc_M9CmngT-Pla4&r=F6SAryNNUdjEYGb6lSnLGg&m=EUoVA1pL5Bn2NYr-yAnh0GGfCT
Z_zByNxm0j9w1aqhU&s=3aR7nQJijiyf_hFIwEdoJHHS0zJuVM3JLkHfXmgHkFs&e=
_______________________________________________
keycloak-user mailing list
keycloak-user(a)lists.jboss.org
https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.jboss.org_mail...
P Please consider the environment before printing this e-mail.