kanwarnitin
Design Dabbler

Re: Configuring a Client Credential Flow OAuth Resource

Hi @evanmoore 

If this is the last resort, what is the advised setup for client credential flow?

 

My use case is:

K2 need to get data from an internal REST endpoint which is protected by AAD. To authenticate via AAD, logged in user's info should not be used. Therefore, K2's REST service instance will act as a service making call to another service in the background.

 

Thanks

0 Kudos
Reply
4 Replies
Gail
Canvas Initiate

Re: Configuring a Client Credential Flow OAuth Resource

Hello, @kanwarnitin,

Our REST service instance supports all the various authentication types supported by K2. You can therefore use Static or Service Account authentication, rather than OAuth. You can read more about this here: https://help.nintex.com/en-US/k2cloud/userguide/current/default.htm#ServiceBrokers/EndPoints/REST_En....

 

Please note that I've also moved this thread to our K2 Five forums to ensure more people see and can respond.

 

Thanks, and regards,

Gail

0 Kudos
Reply
kanwarnitin
Design Dabbler

Re: Configuring a Client Credential Flow OAuth Resource

Hello @Gail ,

 

The REST service I am trying to integrate with (from K2) requires only OAuth (AAD is the IDP). As I understand, my option is to setup an OAuth resource to get token from AAD and use that resource as authentication method on REST type service instance. 

 

Is there a better way of achieving this?

 

Regards

 

0 Kudos
Reply
Gail
Canvas Initiate

Re: Configuring a Client Credential Flow OAuth Resource

Hi,
I don't know the answer to this, and have put out feelers for more information. Hopefully I'll get some info for you soon.
Thanks,
Gail
0 Kudos
Reply
Sampcyn
Nintex Employee
Nintex Employee

Re: Configuring a Client Credential Flow OAuth Resource

@kanwarnitin 

If you want to use OAuth, with AAD as the IdP, I don't think there is a way around this.

But have a look at the KB Article below. I believe it contains the information you seek: 

Configure K2 for Inbound OAuth

See also: Manually Configure K2 for Azure Active Directory (AAD)

0 Kudos
Reply