0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Shopifyのカスタムアプリで アクセストークンを取得する方法

Posted at

背景

カスタムアプリ作成方法は、2025年12月現在2通りあります。

  1. ストアの管理ページからの作成
  2. Dev Dashboardからの作成

しかし、1の方法は2026年1月から利用不可となるらしく、実質的には2の方法のみとなります。

1の方法で作成したアプリのアクセストークンは管理画面で表示できました。しかし 2の方法でカスタムアプリを作成した際に、Access Tokenを取得する方法で詰まったため、調査結果をメモとして残します。

新しい方法でアプリを作成する際には、以下の方法でアクセストークンを取得する必要があります。

アクセストークン取得方法

appの種類 AccessToken取得方法
パブリック App Installの際にOauthでアクセストークンを取得する
カスタムアプリ (作成者が自身の組織や自身のECで利用する場合) credentials grantという方法でも発行が可能
カスタムアプリ (開発者が作成し、他のECで利用してもらう場合) パブリックアプリの場合と同様にOauthで取得する

credentials grantという方法は知りませんでしたが、Oauthなしでローテーションできるアクセストークンを取得できるというため有用な選択肢になりそうです。
https://shopify.dev/docs/apps/build/authentication-authorization/access-tokens/client-credentials-grant

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?