azure-api-management different link to navigation items for different environments - azure

For our api management portal we have different environments, development to production. We create our pages in DEV and push them through with migrate via a pipeline.
For the sign up navigation item I am using a link to to open a account creation page on a self hosted website. For example, on development this links to 'dev.login.com'. For prod I want to link this to 'login.com'. Is this supported?
When I capture my api management with the capture script I can find my link in the snapshot data.json file

As per our understanding, you want to create an API portal where the URL will be redirected to the login page with the different environments. Here is the example where you can use the redirection to login URL for which you need to create suffix as per the below image.
After creating API you need to add operation
Once the operation is created now by using Return Response policy you can redirect the URL to the login page.
For complete information, you can go through the related discussions SO and Microsoft Q&A

Related

How do I deploy my Gatsby site to Azure when new Prismic content is published?

My current workflow sucks! It's due to inexperience with static site generators. I have a site built with Gatsby. The content is sourced from the Prismic headless CMS. I deploy to Azure Static Web Apps via command line Git. When I push or manually run a Github Action, the site grabs all the content from Prismic, builds and deploys. You have to first publish in Prismic, then open up Github and run the actions.
Prismic has a webhook option. You give it an API endpoint and auth credentials and whatever is at the other end gets executed when content is published. I also have an API endpoint set up in Azure but it does nothing right now but return a string when you access it.
How do I bridge the two so the site builds and redeploys whenever content is published at Prismic?
This is totally feasible (I didn't try it myself) but needs some configurations.
To do this you need to use Github Actions
using Github Actions require users to add a personal access token with the repo scope key. To learn more refer to Github's docs.
You need to add the header key & value in your Prismic Webhooks settings such as
Note: Currently, the custom headers feature is in the testing phase and it will be released soon check this page to follow the progress of the feature.
Also, you can check this article article to get some inspiration, and it will be cool if you can share your work with the community.

How do I link from one Azure AD custom page to another

I have a link on my website that takes a user to the Azure AD edit profile page. I have customized that page by adding 2 links at the bottom. One is for the user to change their password and the other is to update a phone number. These are 3 different policies within Azure AD. When I initially link to the page from my site I am sending a clientID and a redirect_uri in the query string. Unfortunately this is getting converted to a csrf_token and those query string parameters are gone so I don't have access to them to include them in the change password and change phone number links. When the user clicks on the links obviously they fail. How do I link someone from one custom policy page to another page in Azure Active Directory? My custom page uses javascript, css, and html. No server side code other than what Microsoft injects.
You should have a link back to your application, and your application should understand that this route starts a new authentication journey with the appropriate authentication library with the desired policyId for this URL path. Do not link B2C journeys directly from within your custom HTML, you go via your application.

Proof Azure Website Ownership to Google Play

My problem is similar to this one. But I need to make one step further.
I whant to publish my website webview on google play. Google Play have rejected my submission but after I send them a email they respond and said that they will allow app publication if I send them pdf with distribution agreement, authorization contract, website domain information or something like that prooving my website ownership. My website hosted on azure. I have domain name like xxxxx.azurewebsites.net. Please help me to understand how can I make pdf document that prooves my website owership.
Will be very greatfull for help!
First, about how to verify your Azure Website ownership, you can refer to these Google documents as below.
Handling Android App Links
Secure and specific: Android App Links use HTTP URLs that link to a website domain you own, so no other app can use your links. One of the requirements for Android App Links is that you verify ownership of your domain through one of our website association methods.
and
Add verification for your deep links: Configure your app to request verification of app links. Then, publish a Digital Asset Links JSON file on your websites to verify ownership through Google Search Console. Learn more in Verify App Links.
Verify Android App Links
To verify ownership of both your app and your website, the following steps are required:
Request automatic app link verification in your manifest. This signals to the Android system that it should verify your app belongs to the URL domain used in your intent filters.
Declare the relationship between your website and your intent filters by hosting a Digital Asset Links JSON file at the following location:
https://domain.name/.well-known/assetlinks.json
The section Verify your website of App Indexing on Google Search in Play Console Help introduces the steps
Sign in to your Play Console.
Click All Applications All applications.
Select the application you'd like to verify.
On the left menu, click Development tools > Services & APIs.
Under "App Indexing from Google Search," click Verify website.
Type your website address.
Click Verify.
Go to Google Search Console.
On the left menu, click All Messages.
Open the verification request message (example: "Google Play: Link http://www.yourwebsite.com to android-app://example.com.yourpackage.name").
Click Approve the request.
Review the information and click Approve. Once approved, your app will appear on the
Search Console Home Page for your account. Be sure that your app enables deep links.
If you have a Google Search Console account or not, here is two links of Verify your site ownership of Search Console Help for old and new Search Console will be helpful.
Tip: Only Google Search Console users with "Owner" permissions can view and approve site verification requests. If you don't see your site verification request, make sure you're signed in using an account with "Owner" permissions.
Second, the xxxx.azurewebsits.net is just a subdomain of azurewebsites.net which be registed by Azure and you can lookup the related info via https://www.whois.net/ as the figure below, so it's not belong to you.
Therefore, you need to register a domain name like abc.com in the Domain Name Registrar like GoDaddy or others, and add a CNAME record with it into DNS server like Azure DNS, then to follow the above steps required by Google to verify your website ownership and collect the necessary information to make a PDF document to send to Google.

This page is trying to load scripts from unauthenticated sources

I am working on Azure App service API apps.
I followed the steps available in the below link, for implementing user authentication concept to the ToDoListAngular project and successfully deployed in azure, but when i test with the ToDoListAngluar project azure url to add the todoitem it shows error on Google Chrome Address bar "This page is trying to load scripts from unauthenticated sources".
https://azure.microsoft.com/en-us/documentation/articles/app-service-api-dotnet-user-principal-auth/#overview
Please tell me how to resolve the above error.
It sounds like one of your API Urls does not have https:// at the beginning.
My best bet is the "toDoListAPIURL" in your front end site's application settings on the portal. There are a ton of API urls in the source code to check if that doesn't do it. Going back through the getting started tutorial should have them all.

URL to a portal application

When a portal application is run using RAD/ or any IDE, the portal server will generate a random URL for the application, which expires after some time.
If I had an portal application like HelloWorld, how do I get a permanent URL like:
myportal/HelloWorld/
instead of a randomly generated URL. This question could also be asked like, how can I get a unique URL to my portal application
When you go to place a portlet in a more permanent place in your Portal, you will create the page yourself rather than letting RAD generate something random for you. Part of the options for a page is a friendly URL. So you could specify what URL you want after the /wps/myportal/. Here is a link to some basic documentation about creating pages.
If you want smth like /wps/myportal/HelloWorld you need create portal page and give it friendly name. Then you can deploy and place you portlet application(s) on this page.
If you to have application outside portal context (servlet for example), you need deploy it to WAS directly and set desired context root to get yourserver:10039/your/app/context

Resources