# Authentication

![](https://15316191-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M7_opr2RFh9Acog0_8H%2F-MJurosItt9AkSebVJce%2F-MJuruUqj9irwQL3bhGu%2F%E1%84%89%E1%85%B3%E1%84%8F%E1%85%B3%E1%84%85%E1%85%B5%E1%86%AB%E1%84%89%E1%85%A3%E1%86%BA%202020-10-18%20%E1%84%8B%E1%85%A9%E1%84%92%E1%85%AE%205.41.41.png?alt=media\&token=15521754-c1a4-4db6-8590-2c581022cc29)

![](https://15316191-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M7_opr2RFh9Acog0_8H%2F-MJurosItt9AkSebVJce%2F-MJurwIpchEG611FPf2C%2F%E1%84%89%E1%85%B3%E1%84%8F%E1%85%B3%E1%84%85%E1%85%B5%E1%86%AB%E1%84%89%E1%85%A3%E1%86%BA%202020-10-18%20%E1%84%8B%E1%85%A9%E1%84%92%E1%85%AE%205.41.50.png?alt=media\&token=9454830f-c191-4e6a-a9b0-59fbc912cac4)

&#x20;로그인이 성공하면 ,securitycontextholder.getcontext().getauthentication() 를 전역적으로 사용할 수 있다.
