can I install shopify 'app' to user dashboard using node? - node.js

I am a shop owner in shopify . I want to install my shopify app to every user logging into my store.
Is this the way for me to install my app to user visiting my store ?
Can you verify this is the right steps ?
The below step 2 is from shopify dev section.
Step 2: Generate an installation link"
If you're authenticating a public app, then skip this step and proceed to step 3.
If you're authenticating a custom app, then you need to generate an installation link. A custom app can interact with the Shopify API on behalf of a single store. The merchant uses the link to go through the OAuth process and install the app on their store.
From the app's page in your Partner Dashboard, click Generate link.
Enter the merchant's myshopify.com domain name. For example, mygreatstore.myshopify.com.
Click Generate link, and then click Generate link to confirm.
Copy the installation link from the Merchant install link section and proceed to step 3.
https://shopify.dev/apps/auth/oauth/getting-started#step-2-generate-an-installation-link
this documentation is not so clear , can you point me on right path ? or it is not possible to automate the app installation ?

Since it your store, do the custom selection App, and use the install link they give you. If you wrote your App up correctly, it will authenticate and store an access token so that the App can do whatever it is you want. All your staf with App permissions can then access the App.

Related

How to use strapi provider Microsoft in expo react native?

I have been trying to use my Microsoft azure login through the strapi provider. If I pass in the link to mywebsite/api/microsoft in a browser am able to see the login process and the user is available in my strapi dashboard.
But how do set up this in my expo react native app?
If i insert the link with authsession or Webbrowser, I can't close the browser after the login page is finished, so I am not able to check if the user is logged in, or get the data from the login because every time I close the browser I only get that the login was canceled.
I have been trying to follow this guide from their docs, but i can't find a solution that works
guide to frontend setup for Cas setup from strapi docs

DocuSign oAuth 2.0 for system to system integration

We are currently using basic authentication for our DocuSign apps. Our application requires no human interaction for envelope creation. Backend code does a basic authentication and creates the envelopes.
We want to move to oAuth 2.0. I went through DocuSign's web site and read about different kind of OAuth grant flows.
I downloaded there quickstart code (Authentication grant code flow) but it did not work for me as I was always getting HTTP error 404 at the time of redirection. It seems, for our system integration JWT grant flow should work, but again it has a consent form, which requires someone to approve.
Can someone help me with sample code on oAuth 2.0 with System integration?
You can use administrative consent for JWT which means that the organization need only consent once and the app can then be used by all users. No one will need to log in to DocuSign to use your integration.
I would like to help with the issues you had with quickstart, but not sure what language you tried.
Download a fresh Java Quickstart from https://developers.docusign.com/docs/esign-rest-api/quickstart/
Run Java Quickstart in command line per these instructions: https://developers.docusign.com/docs/esign-rest-api/quickstart/overview/#configuration > Java tab > Building and running Quickstart
Get JWT consent for app: Login > Dropdown: JSON Web Token Grant > Authenticate with DocuSign > Log In > Allow Access
Extract ds-java-auth-final.zip located at https://github.com/docusign/code-examples-java/blob/master/docs/ds-java-auth-final.zip
Fill in ds-java-auth-final/src/main/java/test.newOAuth/Config.java with your client-id and impersonated-user-guid from your Quickstart_folder/src/main/resources/application.json
Fill in your API account ID from the Apps and Keys page https://admindemo.docusign.com/authenticate?goTo=apiIntegratorKey
Fill in the ds-java-auth-final/privateKey.txt file with your private key from Quickstart_folder/src/main/resources/private.key
Right click on ds-java-auth-final folder and Open Folder as IntelliJ IDEA Project
In Project window, navigate to ds-java-auth-final/src/main/java/test.newOAuth/DsNewAuth
After building, right click and Run 'DsNewAuth.main()'
Please let me know if you have any questions

How to handle simple authentication with Azure (with local user accounts)?

I would like to build a very simple Angular 4 app with a WepApi Service as backend.
I would also like to have users register with my app (the basic "create user" - "validate email" - "log in" workflow).
The user/passwords should be stored with my own app (SQL database).
Where would I go for this very basic information? I am highly frustrated with all the "look it's so easy, you can use ANY social media account! Facebook, Twitter, Google, Microsoft! Just three clicks and all is super-secure with OAuth" talk.
Please point me in the right direction - finding this very basic information seems impossible to me.
what i have done is :
Step 1 : call facebook auth from client it returns me id,
profile etc,
Step 2 : then I send fb id to the server (deployed on azure), where it
checks if this fb id already exists in database it redirects to login,
otherwise it creates a new user
you can also authenticate fb token on server side also for more security.
for login with facebook scenario this question might help you.
I would recommend you to use Azure App Service along with Easy Authentication as it allows you to configure your app along with Facebook/Twitter/Google/MSA.
For Starters see this:
How authentication works in App Service
How authorization works in App Service
The following tutorials show how to configure App Service to use different authentication providers:
How to configure your app to use Azure Active Directory login
How to configure your app to use Facebook login
How to configure your app to use Google login
How to configure your app to use Microsoft Account login
How to configure your app to use Twitter login
The above steps do not require you to write any code. However if you need to authorize then you need to handle that in your application.
The above should get you started. Also see this thread where I shared insights on how you can query Facebook: Correct Facebook Graph Api Video Insitghts Request PHP SDK
I also have a blogpost on this here:
Azure App Service: Using Easy Auth to query Facebook information via Graph API

Redirect page doesn't automatically close after successful OAuth authorization

I am following the below tutorial: https://learn.microsoft.com/en-us/azure/app-service-mobile/app-service-mobile-windows-store-dotnet-get-started-users . I set up the OAuth (via Google) and the created the windows 10 app.
When I click on authenticate button, it takes me to Google site and authenticates me. Then it redirects me to a happy page. This happy page has not buttons. Closing the happy page gives me a [User cancelled login exception]. There is no way to proceed ahead after this. What am I missing here?
I set up the OAuth (via Google) and the created the windows 10 app. When I click on authenticate button, it takes me to Google site and authenticates me. Then it redirects me to a happy page. This happy page has not buttons. Closing the happy page gives me a [User cancelled login exception].
Per my understanding, you are creating a UWP project. I followed Add authentication to your Windows app and Configure App Service to use Google login, then I download the quick start project to check this issue. I could login successfully with my Google account as follows:
Here is my code sample, you could refer to AzureMobileApp-UWP.

Password Protecting an Azure Website not just via Web App Form

I have a beta web application which I want to password protect. I would like to lock down the whole folder as one does in IIS which then force the username/password popup. I have done this with my previous shared host on IIS7. However now that I have migrated the site to Azure Websites, I cannot find a method to do this in Azure.
All feedback, that I have read, on this seem to say that it is forms authentication only. Is this true, or is there a way to password protect a complete Azure Website?
Thanks,
EDIT:
I do authenticate within the web app, since this is a requirement of the web app, but I want a simple password protection over all of this that was external to the application.
Use HttpAuthModule nuget.
You can install Nuget package with Visual Studio. Right click on the project for the website you want to secure. Click "Manage NuGet packages". In the browse tab in the search box, search for the phrase "HttpAuthModule". Select the resulting module and click install. This should install the package and make some changes to your web.config file.
Open the web.config and then edit the settings, in particular change the "value" for the "credentials" parameter to be a "username:password;" of your choosing. Now run your site and you should be prompted to enter a username and password.
Another option which is now available is to use the new Azure Websites Authentication / Authorization feature. This enables you to quickly and easily add Azure Active Directory login to your entire website without any code changes. It also works with site slots, so you can have a beta version of your site in a staging slot which is protected by a login page, and a production version which is exposed publicly.
Blog Post: http://azure.microsoft.com/blog/2014/11/13/azure-websites-authentication-authorization/
Demo Video: http://azure.microsoft.com/en-us/documentation/videos/azure-websites-easy-authentication-and-authorization-with-chris-gillum/
This may also be of value if you want a very light weight Forms auth solution:
https://web.archive.org/web/20211020135904/https://www.4guysfromrolla.com/articles/122408-1.aspx
source code example: https://github.com/fernandoacorreia/StaticAuthSample
use sha1 password https://msdn.microsoft.com/en-us/library/da0adyye(v=vs.100).aspx
create sha1 of password http://www.sha1-online.com/
bonus: force serving over https: https://selimgueler.azurewebsites.net/how-to-configure-azure-web-sites/

Resources