[[PageOutline]] = setup project = * https://console.developers.google.com/ からプロジェクトを作成し、必要なAPIを有効にしたうえでOAuthのクライアントIDとクライアントシークレットを作成する 1. 初めてダッシュボードにアクセスした際には、利用規約への同意が求められる[[br]][[Image(oauth-01.png,33%)]] [[Image(oauth-02.png,33%)]] 2. プロジェクトの新規作成[[br]][[Image(oauth-03.png,33%)]] [[Image(oauth-04.png,33%)]] 3. 使用するAPIの有効化[[br]][[Image(oauth-05.png,33%)]] [[Image(oauth-06.png,33%)]] 4. 認証情報の作成[[br]][[Image(oauth-07.png,33%)]] [[Image(oauth-08.png,33%)]] 5. OAuth認証時の同意画面に表示する情報の設定[[br]][[Image(oauth-09.png,33%)]] [[Image(oauth-10.png,33%)]] * サービス名は「My OCAMLDrive」としている 6. アプリケーションの種類は「その他」とする[[br]][[Image(oauth-11.png,33%)]] 7. クライアントIDが生成され、表示もしくはjson形式でダウンロードできるようになる[[br]][[Image(oauth-12.png,33%)]] {{{ {"installed":{"client_id":"732618592028-28no107k9v98trf6meb8eegdpvjlr53o.apps.googleusercontent.com", "project_id":"fabled-frame-162115", "auth_uri":"https://accounts.google.com/o/oauth2/auth", "token_uri":"https://accounts.google.com/o/oauth2/token", "auth_provider_x509_cert_url":"https://www.googleapis.com/oauth2/v1/certs", "client_secret":"ndaIX_3FQqHssFDwUAwOZdpi", "redirect_uris":["urn:ietf:wg:oauth:2.0:oob", "http://localhost"]}} }}} 8. このクライアントIDとシークレットを用いて認証要求を行うと、以下のように表示される[[br]][[Image(oauth-14.png,33%)]] = aur:google-drive-ocamlfuse = * デフォルトでは作者 {{{alessandro.strada@gmail.com}}} が用意したクライアントIDが用いられる