Bigcommerce Authentication with Email Passwod - bigcommerce

We just launched a new Bigcommerce website API and I have a requirement to create an app for the same website. I wanted to begin with the authentication but I can't seem to find an API for logging in with username and password.
Is there a way I can call an API and pass username/email and a password and receive something like a token? If no, what is the best practice to make an app for Bigcommerce websites.

There are a few ways to get authentication.
Building a script that will not be used in the Control Panel or running a quick query in Postman.
You will need to get an API Key and Token from the Control Panel. This can only be created by the store owner: https://support.bigcommerce.com/articles/Public/Store-API-Accounts/
Creating an app for a single store or several stores: You will need a client id and a client secret. https://developer.bigcommerce.com/api/#app-registration
There is also the Customer Login API https://developer.bigcommerce.com/api/v3/storefront.html#storefront-api-apps. This is allows for single sign on so customers can programmatically be logged into their account on the BigCommerce Storefront.

Related

How to Login or initiate customer session after Social Login in Shopify

I want to facilitate customer to login my Shopify site using their social media accounts.
But I am not really sure how can I start their session after they successfully pass oAuth with their social accounts.
Once they pass the oAuth process I will create customer using Admin API of shopify. but after successfully created customers how can I logged In them.
there is something I might be missing. because there are lots off social login apps available on marketplace.
You have to create customer with random password in shopify store using admin api.
After that you need to login manually by submitting shopify customer login form with the created customer email/password.
This is the only way and everyone is following this way.
Only shopify plus merchants can use multipass option which is really awesome.

How to tie an account from a backend server to a google assistant user

I have a web application setup to handle webhook requests from an Actions-on-Google/Dialogflow application using the Google Assistant. Users don't need to sign-in to a google account in order to use my web application and I'd prefer to keep it that way, so that users can sign in with any email address.
I also want my users to be able to interact with my application using the Google Assistant, and be able to access personal/contextual data via the assistant (i.e. when a speaker says, "what's on my shopping list", the web app needs to be able to know what my means).
Currently, I have this working by using my web app to issue a unique short code to my user (in the web app UI) and then with an intent on the Assistant where the speaker says "My code is 1-2-3-4" and then my web app can identify the user from then on (by saving the userId from the webhook request to whatever user got the short code 1234 and then using that userId to lookup the user on each subsequent request.)
My question is, is there a better way to do this? Ideally, in my web app, I'd like to have something like an "Authorize Google Assistant" button, which would then link the user's google account to their web-app account, so that the conversation on the Assistant is seamless.
Has anyone done this before?
Thanks
This is the perfect use case for Account Linking with the Google Assistant.
From your users' perspective, they will start to use your Action. If they're doing so through a speaker and they haven't linked the account yet, they'll be directed to a mobile device to do so. On a mobile device, they'll be redirected to a page on your website where they will been to authenticate themselves and authorize your server to let them in through the Assistant. Once they have done so, they won't need to log in again, the accounts will be linked, and they'll be able to use the voice Action without further obstruction.
From your perspective as a developer, you'll need to setup an OAuth2 server (I suggest the code flow). That login process I mentioned is the first step in the OAuth dance, and will end up with you issuing a code to Google. They will then exchange this code for an Auth Token (with a limited lifetime) and a Refresh Token (which does not expire). They will periodically use the Refresh Token to get new, valid, Auth Tokens for this user. When the user issues a voice command, the Auth Token will be passed as a field in the JSON to your fulfillment server, and you can use this to verify who the user is and that they are authorized to use your service.

Can't find password for Shopify App

I'm trying to access Shopify Admin APIs through postman.
Tutorial says that
For Username and Password provide your store private API key and password respectively.
I do have the API key, however there is no password filed on my admin page? I tried finding some solutions online, however the screenshots mentioned in those solutions did contain a password filed on the admin page. My page does not have it. I only have API key & API secret key
There are two types of App in shopify, one is embeddedSDK and second one is private App. For the embeddedSDK you can you Postman, but for the private Its will not access through postman.
Thanks
There could be one of following reasons of not having password.
- You are logged in with diff. user or Not having admin access to app.
Your Store Password & Username may work in place.
- Make sure your app is in published state.
share more details in case still hanged with these buggy things.
From Using Postman - Shopify tutorial:
Once you have a Shopify store, you can quickly generate your API credentials using a private app.
You need to create a private app from your development or managed store - not in your partner account.
Click the link at the bottom of the apps page:
Working with a developer on your shop? Manage private apps
From there you can create a new private app to get your API key and password.

Access Shopify API from an External App

I am trying to access the Shopify API from an external app that I am building (mobile). For example, I would like to access this API:
https://mystore.myshopify.com/admin/products.json
Of course I would need to authenticate my request first. So far everybody I asked (including Shopify support), suggested that the only way to access the data is through a Shopify App.
Can you suggest a way to do this?
I have found the answer. Follow these steps if you want to access the Shopify API from an external app:
Login to your store as an admin
Go to Apps
Create a Private App
Use the following pattern with every URL you create (I am using this to get all the orders)
https://:#.myshopify.com/admin/orders.json
The API Key and the password appear in your private app info page.

Can a Facebook Page's stream be retrieved as JSON without user authentication?

I'm attempting to display the contents of a Facebook page wall on an external website.
Ideally, I'd retrieve the data as a JSON object but this appears to require user authentication.
How can I retrieve this information without having a user to use for authentication?
Is this possible?
You can create an app and authenticate as the app.
If you're using one of the Facebook SDKs, you can skip the authentication step and just pass it your app ID and secret.