lookyman / nette-oauth2-server-doctrine

Integration of The League of Extraordinary Packages' OAuth 2.0 Server into Nette Framework- Kdyby/Doctrine storage implementation
MIT License
13 stars 3 forks source link

How to store information if user has approved authorization? #21

Closed Jigsik closed 4 years ago

Jigsik commented 4 years ago

There is no callback in handleApprove or handleDeny in ApproveControl.

Currently the user has to approve authorization on every login. Is it possible to approve authorization only once?

I only thought about adding callbacks onApprove and onDeny in ApproveControl.

Thanks in advance.

lookyman commented 4 years ago

I guess there is no such option. I think it's because if a user logs out and then tries to log back in, they sould be able to inspect the required scopes and approve the application again, in case those requirements changed.

Jigsik commented 4 years ago

OK. I understand. I will think about this later and close this issue for now. Thanks