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?

More than 1 year has passed since last update.

認可 gate メソッドの違いについて

Posted at

#gate

(名前の通り門のイメージ)
→roleに応じてアクセス制御を行う

#使われるメソッド
authorize 

403のAuthorizationExceptionがthrow

allows⇄denies

allows

→AuthorizationExceptionがthrowされないので、if分により分岐処理を行うことができる

forUser
アクセス制限を行うために他のユーザのアクセス権を利用する
forUserメソッドに他のユーザを指定して、指定したユーザの情報で削除のアクセス制限を行う(?)

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?