Re: [basex-talk] Make use of external Identity Management for BaseX

2021-05-03 Thread Rob
Hi Marco,

Got it!
Looking forward to the code! :)

With kind regards,
Rob

> Op 3 mei 2021, om 09:23 heeft Marco Lettere  het 
> volgende geschreven:
> 
> Hi Rob,
> no the code in the repository the link refers to is more like administrative 
> tooling for batch importing configuration into Keycloak for administration 
> purposes.
> I'll work on creating an excerpt of the code that realizes Oauth2 code grant 
> flow with RestXQ and Keycloak and I'll share by tonight hopefully.
> Regards,
> Marco.
> 
> On 01/05/21 17:49, Rob wrote:
>> Hi all!
>> 
>> Sorry for the late response!
>> I’m reading all the emails now, haha.
>> 
>> I’m very happy to hear that it’s possible, I see you shared the following:
>> https://code-repo.d4science.org/gCubeSystem/d4science-keycloak-themes/src/branch/master/src/utils/xquery
>>  
>> 
>> 
>> Thanks for sharing!
>> 
>> Based on the following quote from Marco’s mail:
>> "We have also a RestXQ module that in combination with basex:perm 
>> annotations protects access to a GUI implementing the Oauth2 Code-grant 
>> flow. If Rob is interested we could share.”
>> 
>> The link above, is that the RESTXQ module Marco’s been talking about?
>> Or is there another RESTXQ module?
>> 
>> With kind regards,
>> Rob
>> 
>>> Op 1 mei 2021, om 05:29 heeft Adam Law >> > het volgende geschreven:
>>> 
>>> If Rob isn't interested, I certain am... Yes please share
>>> 
>>> >>We have also a RestXQ module that in combination with basex:perm 
>>> annotations protects access to a GUI implementing the Oauth2 Code-grant 
>>> flow. If Rob is interested we could share.  
>>> 
>>> Many thanks for sharing 
>>> https://code-repo.d4science.org/gCubeSystem/d4science-keycloak-themes/src/branch/master/src/utils/xquery
>>>  
>>> 
>>> 
>>> This is a bit forward of me, but would you consider changing the license 
>>> away from European Union Public Licence which appears to be 'copyleft' to 
>>> say BSD 3-Clause, MIT, ... 
>>> 
>>> Adam
>>> 
>>> On Fri, Apr 30, 2021 at 6:00 PM >> > wrote:
>>> Send BaseX-Talk mailing list submissions to
>>> basex-talk@mailman.uni-konstanz.de 
>>> 
>>> 
>>> To subscribe or unsubscribe via the World Wide Web, visit
>>> https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk 
>>> 
>>> or, via email, send a message with subject or body 'help' to
>>> basex-talk-requ...@mailman.uni-konstanz.de 
>>> 
>>> 
>>> You can reach the person managing the list at
>>> basex-talk-ow...@mailman.uni-konstanz.de 
>>> 
>>> 
>>> When replying, please edit your Subject line so it is more specific
>>> than "Re: Contents of BaseX-Talk digest..."
>>> 
>>> 
>>> Today's Topics:
>>> 
>>>1. Make use of external Identity Management for BaseX (Rob)
>>>2. Re: Reloading jars on a running http server. (Reece Dunn)
>>>3. Getting profile information in server responses. (Reece Dunn)
>>>4. Re: Make use of external Identity Management for BaseX
>>>   (Christian Gr?n)
>>>5. Re: Reloading jars on a running http server. (Christian Gr?n)
>>>6. Re: Getting profile information in server responses.
>>>   (Christian Gr?n)
>>>7. Re: Reloading jars on a running http server. (Reece Dunn)
>>>8. Re: Reloading jars on a running http server. (Christian Gr?n)
>>>9. Re: Make use of external Identity Management for BaseX
>>>   (Marco Lettere)
>>> 
>>> 
>>> --
>>> 
>>> Message: 1
>>> Date: Thu, 29 Apr 2021 15:54:08 +0200
>>> From: Rob mailto:priv...@tjalma.com>>
>>> To: BaseX >> >
>>> Subject: [basex-talk] Make use of external Identity Management for
>>> BaseX
>>> Message-ID: <39036ef3-e67d-470d-b2f4-e6fbffdf4...@tjalma.com 
>>> >
>>> Content-Type: text/plain;   charset=utf-8
>>> 
>>> Hi,
>>> 
>>> I have a question.
>>> Can BaseX make use of an Identity Management application like Keycloak for 
>>> Users?
>>> 
>>> I can?t find anything about it :)
>>> 
>>> With kind regards,
>>> Rob Tjalma
>>> 
>>> --
>>> 
>>> Message: 2
>>> Date: Thu, 29 Apr 2021 20:48:09 +0100
>>> From: Reece Dunn mailto:mscl...@googlemail.com>>
>>> To: Christian Gr?n >> >
>>> Cc: BaseX >> >
>>> Subject: Re: [basex-talk] Reloading jars on a running http server.
>>> Message-ID:
>>> >> 

Re: [basex-talk] Make use of external Identity Management for BaseX

2021-05-03 Thread Marco Lettere

Hi Rob,
no the code in the repository the link refers to is more like 
administrative tooling for batch importing configuration into Keycloak 
for administration purposes.
I'll work on creating an excerpt of the code that realizes Oauth2 code 
grant flow with RestXQ and Keycloak and I'll share by tonight hopefully.

Regards,
Marco.

On 01/05/21 17:49, Rob wrote:

Hi all!

Sorry for the late response!
I’m reading all the emails now, haha.

I’m very happy to hear that it’s possible, I see you shared the following:
https://code-repo.d4science.org/gCubeSystem/d4science-keycloak-themes/src/branch/master/src/utils/xquery 



Thanks for sharing!

Based on the following quote from Marco’s mail:
"We have also a RestXQ module that in combination with basex:perm 
annotations protects access to a GUI implementing the Oauth2 
Code-grant flow. If Rob is interested we could share.”


The link above, is that the RESTXQ module Marco’s been talking about?
Or is there another RESTXQ module?

With kind regards,
Rob

Op 1 mei 2021, om 05:29 heeft Adam Law > het volgende geschreven:


If Rob isn't interested, I certain am... Yes please share

>>We have also a RestXQ module that in combination with basex:perm
annotations protects access to a GUI implementing the Oauth2 Code-grant
flow. If Rob is interested we could share.

Many thanks for sharing 
https://code-repo.d4science.org/gCubeSystem/d4science-keycloak-themes/src/branch/master/src/utils/xquery 



This is a bit forward of me, but would you consider changing the 
license away from European Union Public Licence which appears to be 
'copyleft' to say BSD 3-Clause, MIT, ...


Adam

On Fri, Apr 30, 2021 at 6:00 PM 
> wrote:


Send BaseX-Talk mailing list submissions to
basex-talk@mailman.uni-konstanz.de


To subscribe or unsubscribe via the World Wide Web, visit
https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk

or, via email, send a message with subject or body 'help' to
basex-talk-requ...@mailman.uni-konstanz.de


You can reach the person managing the list at
basex-talk-ow...@mailman.uni-konstanz.de


When replying, please edit your Subject line so it is more specific
than "Re: Contents of BaseX-Talk digest..."


Today's Topics:

   1. Make use of external Identity Management for BaseX (Rob)
   2. Re: Reloading jars on a running http server. (Reece Dunn)
   3. Getting profile information in server responses. (Reece Dunn)
   4. Re: Make use of external Identity Management for BaseX
      (Christian Gr?n)
   5. Re: Reloading jars on a running http server. (Christian Gr?n)
   6. Re: Getting profile information in server responses.
      (Christian Gr?n)
   7. Re: Reloading jars on a running http server. (Reece Dunn)
   8. Re: Reloading jars on a running http server. (Christian Gr?n)
   9. Re: Make use of external Identity Management for BaseX
      (Marco Lettere)


--

Message: 1
Date: Thu, 29 Apr 2021 15:54:08 +0200
From: Rob mailto:priv...@tjalma.com>>
To: BaseX mailto:basex-talk@mailman.uni-konstanz.de>>
Subject: [basex-talk] Make use of external Identity Management for
        BaseX
Message-ID: <39036ef3-e67d-470d-b2f4-e6fbffdf4...@tjalma.com
>
Content-Type: text/plain;       charset=utf-8

Hi,

I have a question.
Can BaseX make use of an Identity Management application like
Keycloak for Users?

I can?t find anything about it :)

With kind regards,
Rob Tjalma

--

Message: 2
Date: Thu, 29 Apr 2021 20:48:09 +0100
From: Reece Dunn mailto:mscl...@googlemail.com>>
To: Christian Gr?n mailto:christian.gr...@gmail.com>>
Cc: BaseX mailto:basex-talk@mailman.uni-konstanz.de>>
Subject: Re: [basex-talk] Reloading jars on a running http server.
Message-ID:
       
mailto:nebya1je4hcrzvagi_serccrxstxmzcwc...@mail.gmail.com>>
Content-Type: text/plain; charset="utf-8"

Hi Christian,

Thanks for the response. Unfortunately, I've not been able to get the
reloading working.

Kind regards,
Reece

On Wed, 21 Apr 2021 at 18:49, Christian Gr?n
mailto:christian.gr...@gmail.com>>
wrote:

> Hi Reece,
>
> If you install your Java code as JAR file in the repository
[1], the
> code 

Re: [basex-talk] Make use of external Identity Management for BaseX

2021-05-03 Thread Marco Lettere

Hi Adam,
sorry but licensing terms are out of our choice.
We've developed that code in the framework of EU H2020 funded projects 
[1,2] thus we have to adhere to the policies of the Institution we 
cooperate with (Italian Council of Research).


Anyway as I told this code is more a proof of concept for administrative 
activities related to batch creation of clients ... Feel free to use and 
adapt the code as you prefer.


Regards,
Marco.

[1] https://www.blue-cloud.org/
[2] http://project.sobigdata.eu/

On 01/05/21 05:29, Adam Law wrote:

If Rob isn't interested, I certain am... Yes please share

>>We have also a RestXQ module that in combination with basex:perm
annotations protects access to a GUI implementing the Oauth2 Code-grant
flow. If Rob is interested we could share.

Many thanks for sharing 
https://code-repo.d4science.org/gCubeSystem/d4science-keycloak-themes/src/branch/master/src/utils/xquery 



This is a bit forward of me, but would you consider changing the 
license away from European Union Public Licence which appears to be 
'copyleft' to say BSD 3-Clause, MIT, ...


Adam

On Fri, Apr 30, 2021 at 6:00 PM 
> wrote:


Send BaseX-Talk mailing list submissions to
basex-talk@mailman.uni-konstanz.de


To subscribe or unsubscribe via the World Wide Web, visit
https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk

or, via email, send a message with subject or body 'help' to
basex-talk-requ...@mailman.uni-konstanz.de


You can reach the person managing the list at
basex-talk-ow...@mailman.uni-konstanz.de


When replying, please edit your Subject line so it is more specific
than "Re: Contents of BaseX-Talk digest..."


Today's Topics:

   1. Make use of external Identity Management for BaseX (Rob)
   2. Re: Reloading jars on a running http server. (Reece Dunn)
   3. Getting profile information in server responses. (Reece Dunn)
   4. Re: Make use of external Identity Management for BaseX
      (Christian Gr?n)
   5. Re: Reloading jars on a running http server. (Christian Gr?n)
   6. Re: Getting profile information in server responses.
      (Christian Gr?n)
   7. Re: Reloading jars on a running http server. (Reece Dunn)
   8. Re: Reloading jars on a running http server. (Christian Gr?n)
   9. Re: Make use of external Identity Management for BaseX
      (Marco Lettere)


--

Message: 1
Date: Thu, 29 Apr 2021 15:54:08 +0200
From: Rob mailto:priv...@tjalma.com>>
To: BaseX mailto:basex-talk@mailman.uni-konstanz.de>>
Subject: [basex-talk] Make use of external Identity Management for
        BaseX
Message-ID: <39036ef3-e67d-470d-b2f4-e6fbffdf4...@tjalma.com
>
Content-Type: text/plain;       charset=utf-8

Hi,

I have a question.
Can BaseX make use of an Identity Management application like
Keycloak for Users?

I can?t find anything about it :)

With kind regards,
Rob Tjalma

--

Message: 2
Date: Thu, 29 Apr 2021 20:48:09 +0100
From: Reece Dunn mailto:mscl...@googlemail.com>>
To: Christian Gr?n mailto:christian.gr...@gmail.com>>
Cc: BaseX mailto:basex-talk@mailman.uni-konstanz.de>>
Subject: Re: [basex-talk] Reloading jars on a running http server.
Message-ID:
       
mailto:nebya1je4hcrzvagi_serccrxstxmzcwc...@mail.gmail.com>>
Content-Type: text/plain; charset="utf-8"

Hi Christian,

Thanks for the response. Unfortunately, I've not been able to get the
reloading working.

Kind regards,
Reece

On Wed, 21 Apr 2021 at 18:49, Christian Gr?n
mailto:christian.gr...@gmail.com>>
wrote:

> Hi Reece,
>
> If you install your Java code as JAR file in the repository [1], the
> code will be loaded and unloaded every time when your query is
> executed. If you get an error message?
>
>   java.lang.reflect.InaccessibleObjectException: Unable to make
field
> private final jdk.internal.loader.URLClassPath
> java.net.URLClassLoader.ucp accessible: module java.base does not
> "opens java.net " to unnamed module @79e2c065
>
> ?unloading fails [2], as you?re probably using a more recent version
> of the JDK, which restricts reflective access to internal variables.
> You can get around this by adding Java flags at startup time:
>
>  --add-opens java.base/java.net