Module: ShopifyAPI::Auth
- Extended by:
- T::Sig
- Defined in:
- lib/shopify_api/auth.rb,
lib/shopify_api/auth/oauth.rb,
lib/shopify_api/auth/session.rb,
lib/shopify_api/auth/auth_scopes.rb,
lib/shopify_api/auth/jwt_payload.rb,
lib/shopify_api/auth/token_exchange.rb,
lib/shopify_api/auth/associated_user.rb,
lib/shopify_api/auth/oauth/auth_query.rb,
lib/shopify_api/auth/oauth/session_cookie.rb,
lib/shopify_api/auth/oauth/access_token_response.rb
Defined Under Namespace
Modules: Oauth, TokenExchange Classes: AssociatedUser, AuthScopes, JwtPayload, Session
Class Method Summary collapse
Class Method Details
.embedded_app_url(host) ⇒ Object
12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/shopify_api/auth.rb', line 12 def (host) unless Context.setup? raise Errors::ContextNotSetupError, "ShopifyAPI::Context not setup, please call ShopifyAPI::Context.setup" end unless host raise Errors::MissingRequiredArgumentError, "host argument is required" end decoded_host = Base64.decode64(host) "https://#{decoded_host}/apps/#{Context.api_key}" end |