Shopify provide a platform and API for developers to create applications that can perform the task of automatic onboarding using OAuth procedure. The general flow given Shopify store owner that is interesting in installing Content Glass app:
Finding the app in Shopify App Store:
Clicking the app to reach app listing page. The app listing page provide general overview of the application and provide a button for installing the app.
Clicking the "Get" button for installing the app. The flow redirect the user to Shopify's app authorization process. The presented dialog inform the user with the details of the app andn the scope of permissions it requires. Note that at this time we are still not connected with the managed-app logic. The managed-app logi will take place only after user approve the instalation:
User click the "Install App" button. The entire process described by previous chapter is handled internally:
- Automatic onboarding and installing Content Glass script in the store
- Creating user-account entity for the website (Shopify store in this case)
- Creating devloper-account and managed-app entities
- Sending Email notifications (see below)
When onboarding complete the user is presented with Managed-App portal. The managed ap portal is a page on Contnet Glass services portal that will be used by website admin to set the preferences of the installed application:
Here is a sample Email message received once account is created:
Message 1 - Notify the user for created account
giladtiram.myshopify.com, Thank you for registering at Content Glass. Your application for an account is currently pending approval. Once it has been approved, you will receive another e-mail containing information about how to log in, set your password, and other details. -- Content Glass team
Message 2 - Notify the user for activating the account and providing reset password link:
giladtiram.myshopify.com, Your account at Content Glass has been activated. You may now log in by clicking this link or copying and pasting it into your browser: https://www.contentglass.com/user/reset/200/1472895451/JNhJ57hcMaym68uke... This link can only be used once to log in and will lead you to a page where you can set your password. After setting your password, you will be able to log in at https://www.contentglass.com/user in the future using: username: giladtiram.myshopify.com password: Your password Using the Content Glass services you can have better control of your sharing experience. Visit the Service Portal: https://www.contentglass.com/services to manage your services and view data associated and shared with your account. -- Content Glass team
In the next chapters we will describe in more details the various tabs and fields of managed-app portal.