oAUth2TEST

OAuth2Distributed authentication and authorization protocols

I. Introduction

OAuth2.0Service providers covering the two services, namely Authorized Service ( Authorization Serveralso known as certification service) and Resource Service ( Resource Server).

Authorization Service ( Authorization Server) shall contain the access terminal and login to authenticate validity of the user and issue a tokenfunction, a request for a token endpoints Spring MVCwere controllers, following is a dot arrangement authentication service must be achieved:

  • AuthorizationEndpoint service to an authentication request, the default URL:/oauth/authorize

  • TokenEndpoint serve the access token request. Default URL:/oauth.token

    Resource Service ( Resource Server) should include protection of resources, illegal and retrograde request you to intercept, to request tokenparsing authentication, etc., the following filter is used to implement OAuth2.0resource services:

  • OAuth2AuthenticationProcessingFilter used to request

Published 81 original articles · won praise 124 · views 380 000 +

Guess you like

Origin blog.csdn.net/qq_38697437/article/details/105303865