### in your .ini file, add the following
```
shopify.oauth.login_url = /oauth_login # The entry point of your shopify app, defaults to shopify_oauth_login_url (different from App Home)
shopify.oauth.redirect_url = /oauth_redirect # The redirect app url for OAuth, defaults to shopify_oauth_redirect_url
shopify.oauth.scope = read_products,read_orders # Permission scope you need from the shop (comma seperated)
shopify.oauth.app_home = / # Your app home url
shopify.oauth.api_key = ************* # Your api key
shopify.oauth.secret = ************* # Your api secret
```
### in your app __init__ file, add the following
```
config.include('pyramid_shopify_oauth')
```
### after oauth login, you can get shopify instance from request
```
shopify = request.shopify
if shopify is None:
# the user is not signed in
# you can access shopify API now
shopify.Shop.current()
...
...
```
### To make oauth work, make sure you have pre-configured a session factory, for example
```
from pyramid_beaker import session_factory_from_settings
session_factory = session_factory_from_settings(settings)
config.set_session_factory(session_factory)
```
#Release Notes
0.0.1
==========
- Initial release
Metadata
Release files for pyramid_shopify_oauth 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyramid_shopify_oauth-0.0.1.tar.gz | 2.7 kB | Without provenance | Details for pyramid_shopify_oauth-0.0.1.tar.gz |
Release files / pyramid_shopify_oauth-0.0.1.tar.gz
| Download URL | pyramid_shopify_oauth-0.0.1.tar.gz |
|---|---|
| Size | 2.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5f669e8acce3f562978758e153a24d94b4ded5302c8dcaddcf9d8ef934e3be1c
|
|
BLAKE2b-256 checksum How to use checksums |
7847b93633b9dd5bb185758c75647ccec1f4d9ece6496b3a888d60b104d9a68d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for pyramid_shopify_oauth 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.