Authenticating WebAPI call using AAD - asp.net-mvc

Recently we migrated our website to AAD. Website is working fine after AAD migration. But the issue is, we are generating one word document and that document contains hyperlink (web api call to generate the another attachment dynamically) to open another attachment.
We are unable to validate that request because web api call from word application.
Is ther any way to acheive this functionality.

Did you want to generate the another attachment dynamically which require authentication after users click the hyperlink in the document.
How did you want to authenticate the dynamically? Based on my understanding, if the web API also protect bu Azure AD using the Authentication / Authorization, we can enable to redirect the unauthenticated request to Azure AD like figure below:

Related

Docusign api integration with asp.net mvc form to capture the signature

I have web application with the form built in asp.net. At the end of the form i have to capture the signature of the users using docusign. I dont want to create any form in the docusign. Everything shouldbe handled by me on the form and i have to save the signature in the database with other fields of the form.
Please let me know if its possible with docusing api.
Thanks
DocuSign is a cloud based service. The DocuSign eSignature API is only used with that context. It enables you to use the cloud service. If you wish to store documents etc. on your own servers, you cannot use the DocuSign agreement cloud.
There's a on-premise DocuSign Appliance, which you can explore, but this requires you to install, configure and maintain the entire DS appliance yourself. You can find information about the DSA API on the Developer Center.

Adding Azure AD authentication To Existing MVC application That Uses Individual Accounts

I have an existing MVC application that authenticates users using their Google, Facebook or Microsoft (live) accounts. The application is derived from the basic MVC template, and the 'Individual Accounts' option was chosen. This all works fine.
We have had a request/requirement that we also support Microsoft Work Accounts, authenticated against Azure AD. We have developed a second test MVC application, using the 'Organisational Accounts' from the template and can successfully get the user details, including extended details such as Manager and Office from AD.
However we are struggling to understand how to combine the two options, and still get the extended details. We've added a OpenIdConnect option in the Startup.Auth file, pointing to AAD and they works, getting hold of the users main login only. We are struggling to then use that email to obtain the user's full information

Can I have a dynamic url with the Google oAuth API?

I use the oauth api for login on my sites. Right now if a user needs a site based on a subdomain (user.mysite.com) I have to manually add it in the console so the login button will work at that new domain. The console says you can't use a wildcard such *.mysite.com. Is there way way to make this dynamic or a way to add a site programmatically?
I use a tool to create the subdomains and if I could add it to the list of approved domain when upon creation that would be great.

Sending hidden request to oAuth

I wanted to show GA data to each one client on my website. Each one of them has create own GA profile, I store in database profile_id.
Credentials to GA data are my personal, the same for all profiles, all profiles are in my account. For settings oAuth I used this article: http://www.sitepoint.com/google-analytics-api/.
Clients don´t know my credentials and I don´t want to create them permissions to see the stats. I need the only login into my website (login data are URL|password). After they logged into the client section, I select from database their profile ID and need to show them their stats (without showing Google login dialog). I´d like to pass my credentials directly somewhere in the PHP script.
So, question is:
Is possible to show GA data using oAuth directly without showing Google login dialog? To login in app´s backend?
Thanks.
Yes, if you do the OAuth 2 flow correctly, you will get an access token. Once you have that access token you can use it to query any Google Analytics view (previously called profile) to which you have access.
To do the query, simply append the access token as a query parameter when making your request to the Core Reporting API. This reference shows how to add the access token to the request:
https://developers.google.com/analytics/devguides/reporting/core/v3/reference#q_summary
If you don't want to build the charting yourself, you should also look into using the Embed API. You can use the Embed API's serverAuth option when authorizing to avoid having to have your users log in with their Google accounts:
https://developers.google.com/analytics/devguides/reporting/embed/v1/component-reference#auth

Customize (using my own google apps domain) the oauth SeviceLogin

I'm wondering something... about my google apps domain.
I'm using the OAuth 2.0 as client side.
For now, i'm requesting an access token using this url "https://accounts.google.com/o/oauth2/auth?". If the user isn't connected to his google account he is redirected to a page like this : https://accounts.google.com/ServiceLogin?service=lso&passive=1209600&continue=xxxxxxxxxx.......
but i want to use my custom page (using my google apps domain). I try manually to do what i want and that working (https://www.google.com/a/mydomain.com/ServiceLogin?service=lso&passive=1209600&continue=xxxxxxxxxx.......) but i don't know i can i do it programmatically...
Does anyone done what i'm trying to do ?
Regards,
Sebastien
You can add the hd=example.com parameter to the initial request.
See:
Restrict Login Email with Google OAuth2.0 to Specific Domain Name

Resources