I used OAuth2 code for my API server from githhub: https://github.com/lucadegasperi/oauth2-server-laravel
Instead using standard Laravel Auth, I want to use Sentry, because Sentry have a lot of features for sending mail, ban, approve registration, ...
I successfully created connection from my client (Laravel with Guzzle plugin) on my API server, but I cannot keep Sentry session. It is OK, or not? How can I know permission, groups or whatever of my user on API server. For each call API I send access_token, but it is enough for OAuth2. I do not have idea how to keep Sentry session, for example:
I logged in with moderator permission user, and I send new request to API for getting some moderator information, I do not know it is moderator or administrator or what, because I do not have Sentry session.
Maybe oauth:scope1,scope2 is enough, and maybe I do not need Sentry, but I do not have Sentry features (look on beginning of this post).
I believe my problem is trivial, but I do not know how to resolve this issue. I do not have any idea :(