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
Post a Comment