Changes between Version 7 and Version 8 of TipAndDoc/service/Google/OAuth


Ignore:
Timestamp:
Oct 23, 2017 11:22:51 PM (6 years ago)
Author:
mitty
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TipAndDoc/service/Google/OAuth

    v7 v8  
    33 = setup project = 
    44 
     5 * [https://code.google.com/apis/console/ Google APIコンソール]を初めて開くと[https://console.developers.google.com/apis/library ライブラリ]にリダイレクトされる 
    56 * https://console.developers.google.com/ からプロジェクトを作成し、必要なAPIを有効にしたうえでOAuthのクライアントIDとクライアントシークレットを作成する 
    67 * 自分で作成したプロジェクトのクライアントIDを用いることで、APIの発行状況やエラー発生件数などがダッシュボードから確認できるようになる 
     
    3334 3. 「アカウントにアクセスできるアプリ」から確認できる[[br]][[Image(gdocamlfuse-4.png,33%)]] 
    3435 
    35  * $ google-drive-ocamlfuse 
     36 * 自分で作成したクライアントIDを用いる場合は、次のように指定する 
     37  * $ google-drive-ocamlfuse -headless -id XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.apps.googleusercontent.com -secret XXXXXXXXXXXXXXXXXXXXXXX 
     38{{{ 
     39Please, open the following URL in a web browser: https://accounts.google.com/o/oauth2/auth?client_id=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.apps.googleusercontent.com&redirect_uri=urn%3Aietf%3Awg%3Aoauth%3A2.0%3Aoob&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fdrive&response_type=code&access_type=offline&approval_prompt=force 
     40Please enter the verification code: 
     41}}} 
     42 * URL先から認証し、トークンを入力する 
    3643{{{ 
    3744Access token retrieved correctly.