[keycloak-user] [keycloak-dev] scripts-upload feature

Pedro Igor Silva psilva at redhat.com
Thu Nov 7 07:11:01 EST 2019


Could you please share your JAR file?

On Thu, Nov 7, 2019 at 4:38 AM Knüppel, Pascal <
Pascal.Knueppel at governikus.de> wrote:

> Sorry for the late response...
>
>
>
> I added the property "keycloak.profile.feature.scripts_upload=enabled"
>
> The other one does not seem to have any effects anymore
>
>
>
>
>
> Regards
>
> Pascal Knüppel
>
>
>
>
>
>
>
>
> --------------------------------------------------------------------------------
>
>
>
> Moving discussion to keycloak-user mailing list.
>
>
>
> Did you enable the `scripts`feature using system property
>
> `-Dkeycloak.profile.feature.scripts=enabled` ?
>
>
>
> Regards.
>
> Pedro Igor
>
>
>
>
>
>
> ****************************************************
>
> Veranstaltungsvorschau: Besuchen Sie
> uns...
> 11.
> Jahrestagung E-Akte | 06. + 07.11.2019 | Berlin<
> https://jahrestagung-eakte.de/>
> Kongress e-nrw |
> 07.11.2019 | Düsseldorf/Neuss<https://www.e-nrw.info/>
> OMNISECURE | 20.-22.01.2020
> |Berlin<https://www.omnisecure.berlin/de/>
> Zukunftskongress
> Staat & Verwaltung |15.-17.06.2020 |
> Berlin<https://www.zukunftskongress.info/de/zksv/willkommen>
>
> On Mon, Nov 4, 2019 at 7:47 AM Knüppel, Pascal <
>
> Pascal.Knueppel at governikus.de<
> https://lists.jboss.org/mailman/listinfo/keycloak-user>> wrote:
>
>
>
> > Hi,
>
> >
>
> > I got a simple problem with the scripts upload feature. I created a
>
> > jar-file as described here (
>
> > https://www.keycloak.org/docs/7.0/server_development/#_script_providers)
>
> > and put it into the deployments directory of keycloak. But now the simple
>
> > question... how am I supposed to map these defined script-mappers and the
>
> > authenticator-execution into my configuration within the admin-console?
>
> > the deployment was successful and this is my "keycloak-scripts.json" file
>
> >
>
> > {
>
> >   "authenticators": [
>
> >     {
>
> >       "name": "authentication-level",
>
> >       "fileName": "authentication-level-script-authenticator.js",
>
> >       "description": "This script determines the authentication level,
>
> > i.e. the authentication method used to identify the user"
>
> >     }
>
> >   ],
>
> >   "mappers": [
>
> >     {
>
> >       "name": "substitute-roles-mapper",
>
> >       "fileName": "substitute-roles-script-mapper.js",
>
> >       "description": "maps substitute roles into the access token"
>
> >     },
>
> >     {
>
> >       "name": "authentication-level-mapper",
>
> >       "fileName": "authentication-level-script-mapper.js",
>
> >       "description": "maps the authentication level into the access
> token"
>
> >     }
>
> >   ]
>
> > }
>
> >
>
> > my jar file has the following structure:
>
> >
>
> > /
>
> > |_ META-INF
>
> > |   |_keycloak-scripts.json
>
> > |   |_MANIFEST.MF
>
> > |_authentication-level-script-authenticator.js
>
> > |_authentication-level-script-mapper.js
>
> > |_substitute-roles-script-mapper.js
>
> >
>
> > I can neither find the authenticator nor the mappers in the admin-console
>
> > and I have no idea how to map them...
>
> > any ideas?
>
> >
>
> > Best regards
>
> > Pascal Knüppel
>
> >
>
> > ****************************************************
>
> > Veranstaltungsvorschau: Besuchen Sie uns...
>
> > 11. Jahrestagung E-Akte | 06. + 07.11.2019 | Berlin<
>
> > https://jahrestagung-eakte.de/>
>
> > Kongress e-nrw | 07.11.2019 | Düsseldorf/Neuss<https://www.e-nrw.info/>
>
> > OMNISECURE | 20.-22.01.2020 |Berlin<https://www.omnisecure.berlin/de/>
>
> > Zukunftskongress Staat & Verwaltung |15.-17.06.2020 | Berlin<
>
> > https://www.zukunftskongress.info/de/zksv/willkommen>
>
> > _______________________________________________
>
> > keycloak-dev mailing list
>
> > keycloak-dev at lists.jboss.org<
> https://lists.jboss.org/mailman/listinfo/keycloak-user>
>
> > https://lists.jboss.org/mailman/listinfo/keycloak-dev
>
> >
>
> ________________________________
>
> _______________________________________________
> keycloak-user mailing list
> keycloak-user at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/keycloak-user
>


More information about the keycloak-user mailing list