oauth 2.0 - OAuth2 - Laravel Passport - how to get client name? -


i have 1 backend based on laravel , few applications, few role users. created few oauth_clients , users log in via password.

each application has own client secret key. each user may have different roles. example don't want users using android app log in administration panel. of course won't able because miss admin role logged in.

for logging get:

  • client id
  • secret key (hardcoded , different each application)
  • user name
  • user password

user logged in if:

  • user name , user password match
  • client id , secret key match

however users registered using 1 client id can log in on app using client id. i'd check if user has role coresponding client id used login request. ideas?


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -