oauth2. Detailed explanation of 0 authorization code mode

oauth2.0 authorization code mode Welcome to the "Java master" of the blogger official account, focusing on dry cargo articles in Java field. http://www.javaman.cn/sb2/oauth-code Authorization code means that a third-party application first applies for an authorization code, and then uses the code to obtain a token. This method is t ...

Posted by MishaPappa on Mon, 07 Mar 2022 14:15:50 +0100

Spring security notes 04 modifying user permissions

We often encounter such scenarios as dynamic permission adjustment. For example, Zhang San is a department head and does not have the permission to delete employee data, but his superiors trust Zhang San and want to entrust this function to Zhang San. Let's first log in with Zhang San (xsc001): Let's look at Zhang San's role permissions prin ...

Posted by iJoseph on Mon, 31 Jan 2022 17:07:15 +0100

How to make Spring Security "mind your own business"

Remember two ways to let Spring Security "mind your own business".Problems encounteredAn application provides an external Rest interface. The access authentication of the interface is controlled by Spring Security OAuth2, and the token form is JWT. For some reasons, the interface with a specific path prefix (assumed to be / custom /) ...

Posted by scept1c on Mon, 03 Jan 2022 21:29:09 +0100