Solved

Workflow REST API BASIC AUTH - How?

  • 2 January 2020
  • 6 replies
  • 120 views

Hi there,

 

I can use my AD account to make calls to the Workflow REST API with no issues.

 

However, can I use a non AD username and password as in BASIC AUTH?

 

Where do I setup the BASIC AUTH username and password ? I can't see anywhere in the management tools to set this up. 

 

Cheers,

 

Mike.

icon

Best answer by khanh1 3 January 2020, 00:01

View original

6 replies

Hi Modmike,


 


Perhaps you will find this documentation below to be helpful in answering your question.  There is an example of Basic Authentication within:


 


https://help.k2.com/onlinehelp/K2Five/DevRef/5.3/default.htm#Runtime/WF-REST-API/WF-REST-API-Authentication.htm


 


Thanks

Userlevel 6
Badge +16

Hi Modmike,


 


I believe you will have to pass in an AD account (ex Domainaccount_name) when going through Basic Authentication, I'm not sure if this will with non-standard account. 


 

Hi Chruff,

Your reply is somewhat helpful!

However I think you're referring to Azure AAD with this? - 

//Client ID of the custom client app requesting the token (the app should have the K2 API permission scope). 

 

I've no idea how to set the "K2 API permission scope" or register my calling app, which is a Web Api.

 

Regards,

 

Mike

 

Hi, thanks. I'm beginning to think that a static account with a password cannot be used.
Mike

what format did you use for the username? "DomainAccount" or something different??

Badge +1

Hi Mike,

Have you solved basic auth with non AD users?

Regards

ilhan

Reply