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?

Portainer Community EditionでもEntraID OAuthで使うための設定

Posted at

Portainerの有料版ではOAuthプロバイダとして

  • Microsoft
  • Google
  • Github
  • Custom

が選択できます。
ですが、Community Editionの場合はCustomしか選べません。
EntraIDで認証させたいけどイマイチ設定がよく分からない人の為に設定サンプルを用意しましたのでご活用ください。

Portainer側設定

実際の設定内容は下記の画像の通りです。
image.png

設定項目 内容
Client ID EntraIDに登録したアプリケーション(クライアント)ID
Client secret 設定したクライアントシークレット
Authorization URL https://login.microsoftonline.com/#ディレクトリ(テナント)ID#/oauth2/v2.0/authorize
Access token URL https://login.microsoftonline.com/#ディレクトリ(テナント)ID#/oauth2/v2.0/token
Resource URL https://graph.microsoft.com/v1.0/me
Redirect URL PortainerのURL(例:https://portainer.example.com)
必ずEntraIDのアプリケーション設定と一致させる
Logout URL 空白
User identifier mailまたはpreferred_username
基本的にはpreferred_usernameの方が良さそう
Scopes openid email profile
Auth Style Auto Detect

EntraID側設定

アプリケーション情報のサンプル

image.png

認証のサンプル

image.png

クライアントシークレットのサンプル

image.png

APIアクセス許可の設定

事前に管理者の同意を与えると便利です

image.png

おわり

テナント内ユーザーおよび招待したB2B外部コラボレーションユーザーでも認証できることを確認済みです。

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?