Guideline for Inter Service Communication with principal propagation with Cloud SDK on CF - sap-cloud-sdk

We are trying to set two micro services where the principal needs to be propagated from the first microservice(Login happens here) to the second one (This uses cloud SDK to talk to S/4 Hana Cloud). Has this particular scenario been explored before / is there any existing guideline the Cloud SDK team suggests.

Anirban
The Cloud SDK capabilities related to Principal propagation in conjunction with OAuth flow are nicely explained in this blog article by Marco Dahms.
I hope you'll find an idea of how to adapt it to your use case. There are additional helpful links in the comments section of the blog.
If you give more details or what solutions you have already tried we are happy to help you further.
Cheers,
Artem

Related

Best practices to handle documentation in Azure

Cloud-Platform: Azure
Resource: Logic Apps and Functions
Hi everyone,
Kontext:
We have developed many Logic Apps and Functions in our company so far. We do not use a proper or standard methodology to handle the documentation of the user requirements and also the required technical documentation of these logic apps and functions. For technical documentation I mean all the documentation generated during the development life-cycle.
We use also Jira to assign the logic apps inside the company and also we are using X-RAY for testing. We have also Confluence for documenting our guidelines to development.
Question:
I would like to know what are the best practices to handle the documentation and very important how to keep it up-to-date?.
Is there an functionality in Azure, Jira or Confluence that we can control easily the documentation of our logic Apps and functions?
It depends on the source code repository and the deployment pipeline that you are using to deploy the Azure functions and logic apps. If you are using GitHub or Azure DevOps, then you can make use of the GitHub/DevOps wiki to create documentation about logic apps or function projects just by creating readme files. Please review the following articles which will help you with the documentation
https://docs.github.com/en/communities/documenting-your-project-with-wikis/about-wikis
https://learn.microsoft.com/en-us/azure/devops/project/wiki/wiki-create-repo?view=azure-devops&tabs=browser

Programmatically updating answer for an unanswered question in Custom Question Answering

I have created a custom question answering project using Microsoft Conginitive Services and deployed the same.
Now I would like to create an UI where an user can see the unanswered questions and update the knowledge base with appropriate answer using the UI itself.
From the deployment details, I am able to extract the Ocp-Apim-Subscription-Key. But I am little confused about the appropriate way of API call in my UI to track and update the unanswered questions.
Could not find many write-up or examples regarding this. Please guide me regarding the same.
It depends on the questions answering resource type you are using, as this service has evolved.
Azure Cognitive Service for Language (end of 2021)
This is the newest version of QnA Maker (as of late 2021), now called "Custom question answering" being part of Azure Cognitive Services for Language.
This service has a better offering in terms of API:
Service documentation is here
API documentation here
The "active learning" feature is offered through Language Studio portal (see doc).
But if you want something custom, you might be interested in the Authoring API: programmatically, you could use "Get QnAs" operation will give you all QnAs, and the RetrieveQnaRecord object included in the response contains a SuggestedQuestionsCluster object which could lead to interesting feedbacks to add.
QnA Maker (v4.0)
QnA Maker 4.0 has a REST API documented here.
In addition, you can directly check some calls using the API exposition in the right region. Example for West US here
=> For this service, there is no "feedback" solution exposed. The API allows to update a knowledge base, but you will not have an operation providing unanswered questions.

How to integrate Watson Discovery with Watson Virtual Agent?

How to integrate Watson Discovery with Watson Virtual Agent? Can anyone give hints, sample code and provide documentation link? https://github.com/watson-virtual-agents/chat-widget does not contain information regarding this? Thank you very much!
Basically, you need to use a custom code with 2 APIs endpoint: Discovery and Virtual agent/ Conversation.
For now, have one example with Conversation Service and Discovery Service in Java, from IBM Developers, you can see in this link.
And a few weeks ago I built some simple example using the project conversation-simple for integrating Discovery, using the highlight and another custom params, using Node.js, you can see in this link
After creates one IBM Cloud (Bluemix), go to Catalog and Select the Watson services above, pay attention to the Services credentials when you click in your Watson Service for use each service, as you can see in my .env and IBM Professionals file, for all works, you need to paste the values into the Enviroment Variables or replace the values with the respective variables in your code.
See the Official Documentation for Using Watson Virtual Agent instead of Conversation.
See the Official Documentation and API Reference for use Watson Discovery.
See the Official Documentation and API Reference for use Watson Conversation.

Looking references for a multi-tenant footprint architecture to deploy on Azure

I´m interested to capture links, references and comments about multi-tenant architectures to deploy in the modality SaaS (Software as a Service) on the Windows Azure Platform.
One link for you is the Fabrikam shipping sample from microsoft - https://fabrikamshipping.cloudapp.net/
Source code - http://archive.msdn.microsoft.com/fshipsaassource
Blog posts - http://blogs.msdn.com/b/vbertocci/archive/2010/10/07/new-online-demo-introducing-fabrikamshipping-saas.aspx
You can also look at our sample and book. It is similar to Fabrikam but has the content that goes along with the code that talks about all the trade offs. We will be updating our code/content in the next month to work with the new features of Windows Azure (ACS & Caching).
You can get the book on Amazon.
Here's a brand new multi-tenant sample application, Cloud Ninja, that demonstrates several facets of a multi-tenant application in Windows Azure. There's also a related blog here.
One thing you might need for your multi-tenant architecture is to have multiple SSL certificates (one for each tenant's custom domain) for a single HTTPS binding.
I'm a Microsoft Technical Evangelist and I have posted a detailed explanation and a sample "plug & play" source-code on how to do it with Azure Cloud Services with SNI at:
http://www.vic.ms/microsoft/windows-azure/multiples-ssl-certificates-on-windows-azure-cloud-services/

How do you create an Azure deployable WebRole that use LiveId and Access Control Service

I need some help with creating a simple WebRole that uses federated authorzation/authentication with LiveId and the Access Control Service. I'm able to get it working with a local test ASP.NET application, but can't seem to find any information on the steps necessary to do this with a Web Role that can be deployed to Azure. The only information that I've found is to handle this scenario using a custom STS and the ACS or just LiveID, but nothing that demonstrates using both together.
Is there currently a limitation with Azure that prevents this? I've read some articles that seem to indicate it isn't currently possible due to the Geneva Framework not being fully implemented on Azure - can anyone confirm?
Thank you very much for any help!
You may find this resource useful - http://code.msdn.microsoft.com/wifwazpassive. It shows how to use ACS in an Azure Webrole. It does use a custom STS, not LiveID, but given that it's using Geneva framework components it should be possible to make it work with LiveID.

Resources