SpringBoot整合SpringSecurityOauth2实现鉴权
SpringBoot整合SpringSecurityOauth2實現(xiàn)鑒權(quán)-動態(tài)權(quán)限
寫在前面
思考:為什么需要鑒權(quán)呢 ?
系統(tǒng)開發(fā)好上線后 ,API接口會暴露在互聯(lián)網(wǎng)上會存在一定的安全風(fēng)險,例如:爬蟲 、惡意訪問等 。因此,我們需要對非開放API接口進行用戶鑒權(quán),鑒權(quán)通過之后再允許調(diào)用。
準備
spring-boot:2.1.4.RELEASE
spring-security-oauth2