You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by "frm@gordijn.org" <fr...@gordijn.org> on 2023/08/20 20:16:33 UTC

OAuth2 in Karaf

Hi all,

Are there any examples on how to do OAuth2 in Karaf?

Best,

-- Jaap


Re: OAuth2 in Karaf

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi Jaap

Can you please create a ticket on issue.apache.org ? We can add some
utils methods in the JAAS module.

Thanks !
Regards
JB

On Mon, Aug 21, 2023 at 8:17 PM frm@gordijn.org <fr...@gordijn.org> wrote:
>
> Hi Matt,
>
>
>
> Can you enlighten me?
>
> What is a JIRA?
>
>
>
> I know Jira from Atlassian very well, but that is probably not what you mean 😊.
>
>
>
> Thanks,
>
>
>
> -- Jaap
>
>
>
> From: Matt Pavlovich <ma...@gmail.com>
> Sent: Monday, August 21, 2023 6:07 PM
> To: user@karaf.apache.org
> Subject: Re: OAuth2 in Karaf
>
>
>
> Adding a client-aide JAAS provider would be useful.
>
>
>
> Perhaps a JIRA?
>
>
>
> > On Aug 20, 2023, at 3:16 PM, frm@gordijn.org wrote:
>
> >
>
> > Hi all,
>
> >
>
> > Are there any examples on how to do OAuth2 in Karaf?
>
> >
>
> > Best,
>
> >
>
> > -- Jaap
>
> >

RE: OAuth2 in Karaf

Posted by "frm@gordijn.org" <fr...@gordijn.org>.
Hi Matt,

 

Can you enlighten me?

What is a JIRA?

 

I know Jira from Atlassian very well, but that is probably not what you mean 😊.

 

Thanks,

 

-- Jaap

 

From: Matt Pavlovich <ma...@gmail.com>
Sent: Monday, August 21, 2023 6:07 PM
To: user@karaf.apache.org
Subject: Re: OAuth2 in Karaf

 

Adding a client-aide JAAS provider would be useful.

 

Perhaps a JIRA?

 

> On Aug 20, 2023, at 3:16 PM, frm@gordijn.org wrote:

>

> Hi all,

>

> Are there any examples on how to do OAuth2 in Karaf?

>

> Best,

>

> -- Jaap

>


Re: OAuth2 in Karaf

Posted by Matt Pavlovich <ma...@gmail.com>.
Adding a client-aide JAAS provider would be useful.

Perhaps a JIRA?

> On Aug 20, 2023, at 3:16 PM, frm@gordijn.org wrote:
> 
> Hi all,
> 
> Are there any examples on how to do OAuth2 in Karaf?
> 
> Best,
> 
> -- Jaap
> 


RE: OAuth2 in Karaf

Posted by "frm@gordijn.org" <fr...@gordijn.org>.
Thanks.

 

I will have a look at the url you suggest.

 

Best,

 

-- Jaap

 

From: Łukasz Dywicki <lu...@code-house.org>
Sent: Monday, August 21, 2023 5:00 PM
To: user@karaf.apache.org
Subject: Re: OAuth2 in Karaf

 

It really depends what you mean by "how to do".

 

OAuth2 is authentication/authorization scheme which can be implemented

as OAuth2 client, OAuth2 resource server or OAuth2 server providing tokens.

For most of these you can probably base of CXF and some of examples

which it has. Personally I've used com.nimbusds/oauth2-oidc-sdk which

works fine for client and resource server implementations. With a bit of

effort I think its possible even to make working server with it.

 

Best,

Łukasz

 

On 20.08.2023 22:16, frm@gordijn.org wrote:

> Hi all,

>

> Are there any examples on how to do OAuth2 in Karaf?

>

> Best,

>

> -- Jaap

>


Re: OAuth2 in Karaf

Posted by Łukasz Dywicki <lu...@code-house.org>.
It really depends what you mean by "how to do".

OAuth2 is authentication/authorization scheme which can be implemented 
as OAuth2 client, OAuth2 resource server or OAuth2 server providing tokens.
For most of these you can probably base of CXF and some of examples 
which it has. Personally I've used com.nimbusds/oauth2-oidc-sdk which 
works fine for client and resource server implementations. With a bit of 
effort I think its possible even to make working server with it.

Best,
Łukasz

On 20.08.2023 22:16, frm@gordijn.org wrote:
> Hi all,
> 
> Are there any examples on how to do OAuth2 in Karaf?
> 
> Best,
> 
> -- Jaap
>