~kobe24-lixiang/account-plugins/13.04

« back to all changes in this revision

Viewing changes to tools/google.sh

  • Committer: Alberto Mardegan
  • Date: 2011-12-23 14:28:12 UTC
  • Revision ID: alberto.mardegan@canonical.com-20111223142812-o6p9nirnr7rom3pp
Tags: 0.0
InitialĀ upload

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/bash
 
2
 
 
3
set -e
 
4
 
 
5
USERNAME="$1"
 
6
 
 
7
CREATION_PARAMS=('--print-id' \
 
8
        -s 'auth/oauth2/Host=accounts.google.com' \
 
9
        -s 'auth/oauth2/AuthPath=o/oauth2/auth' \
 
10
        -s 'auth/oauth2/ClientId=1041829795610-htf69c529db58qcq8jvf58bijn1ie3oi.apps.googleusercontent.com' \
 
11
        -s 'auth/oauth2/RedirectUri=http://www.mardy.it/oauth2callback' \
 
12
        -s 'auth/oauth2/ResponseType/item0=token')
 
13
 
 
14
ID="$(./account-console create google ${CREATION_PARAMS[@]})"
 
15
./account-console edit "$ID" --username "$USERNAME"
 
16