42 API 발급 받는 방법을 소개해드리고자 합니다

먼저 intra 홈페이지에 접속하여 로그인을 해줍니다.

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/ba19d53c-fefc-4d77-b3b6-04e3b5768ff2/Untitled.png

Settings 을 눌러줍니다.


https://s3-us-west-2.amazonaws.com/secure.notion-static.com/6d57c6ed-a913-4b8f-9537-7601fb55421e/Untitled.png

API 페이지로 이동한 뒤에 REGISTER A NEW APP 버튼을 눌러줍니다.


https://s3-us-west-2.amazonaws.com/secure.notion-static.com/448fa8e4-1a04-45a8-be9a-fba11919fffa/Untitled.png

name 필드와 **** Redirect URI 항목을 채워주고 Submit 버튼을 눌러줍니다.

특히 redirect URI는 꼭 똑같이 채워주셔야합니다. 그렇지 않으면 로컬환경에서 로그인이 되지 않습니다.

[<http://localhost:8080/login/oauth>](<http://localhost:8080/login/oauth>)2/code/intra42