python Flask 이용해 구글 로그인 구현하기

중간프로젝트에서 네이버, 카카오, 구글등의 OAuth 로그인을 구현하고 싶었지만 시간에 치여 불가능 했었는데요, 이번에 조별 과제를 통해 기회가 생겨 파이썬에서 구현 해 보았습니다. developers.google.com/identity/sign-in/web/sign-in Integrating Google Sign-In into your web app Google Sign-In manages the OAuth 2.0 flow and token lifecycle, simplifying your integration with Google APIs. A user always has the option to revoke access to an application at any time. This document..

Programming/Python 2021.03.24
파이썬 Flask 사용법 - 3) Redirect 와 Forward

Redirect from flask import Flask, redirect app = Flask(__name__) @app.route('/redirect', methods=['GET','POST']) def hello(): return redirect("https://shanepark.tistory.com") if __name__== "__main__": app.run(host='0.0.0.0', port=80) redirect는 정말 간단합니다. return redirect 하며 괄호 안에 redirect 시킬 주소를 입력하면 끝입니다. 서버를 실행 한 뒤에, 지정해둔 주소 ( app.route 안의 주소 ) 를 웹브라우저에 입력 하면, 바로 ..

Programming/Python 2021.03.23
Mac OS에 anaconda3 와 Eclipse 를 이용한 Python 개발환경 구축하기

Eclipse를 다운 받습니다. Pydev 를 설치할 예정이니, 기존에 자바에서 쓰는 이클립스와 별개로 사용하는 것을 추천합니다. 파이썬용으로 튜닝이 된 후에는 자바 코딩시 다소 불편 할 수 있습니다. 저는 최신버전을 사용했습니다. mac OS에서 사용하니 mac 용으로 다운 받습니다. 웹개발도 할 예정이니 Enterprise 버전으로 다운 받습니다. 다운이 되는동안 anaconda.com 에서 아나콘다 3 버전도 다운 받습니다. individual editon 으로 파이썬 3.8 버전을 받았습니다. Graphical Installer가 좀 더 쉬우니 위의 것을 다운받길 추천합니다. anaconda3 를 설치해줍니다. continue와 Allow를 계속 눌러줍니다. Install for me only 는..

IT ⁄ Computer/Mac 2021.03.13