| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 package main | 5 package main |
| 6 | 6 |
| 7 import ( | 7 import ( |
| 8 "crypto/ecdsa" | 8 "crypto/ecdsa" |
| 9 "encoding/base64" | 9 "encoding/base64" |
| 10 "encoding/json" | 10 "encoding/json" |
| 11 "fmt" | 11 "fmt" |
| 12 "log" | 12 "log" |
| 13 "net/url" | 13 "net/url" |
| 14 "sync" | 14 "sync" |
| 15 | 15 |
| 16 "mojo/public/go/application" | 16 "mojo/public/go/application" |
| 17 "mojo/public/go/bindings" | 17 "mojo/public/go/bindings" |
| 18 "mojo/public/go/system" | 18 "mojo/public/go/system" |
| 19 "mojo/public/interfaces/network/url_request" | 19 "mojo/public/interfaces/network/url_request" |
| 20 » auth "mojo/services/authentication/public/interfaces/authentication" | 20 » auth "mojo/services/authentication/interfaces/authentication" |
| 21 network "mojo/services/network/public/interfaces/network_service" | 21 network "mojo/services/network/public/interfaces/network_service" |
| 22 "mojo/services/network/public/interfaces/url_loader" | 22 "mojo/services/network/public/interfaces/url_loader" |
| 23 vpkg "mojo/services/vanadium/security/public/interfaces/principal" | 23 vpkg "mojo/services/vanadium/security/public/interfaces/principal" |
| 24 ) | 24 ) |
| 25 | 25 |
| 26 //#include "mojo/public/c/system/types.h" | 26 //#include "mojo/public/c/system/types.h" |
| 27 import "C" | 27 import "C" |
| 28 | 28 |
| 29 const blesserURL = "https://dev.v.io/auth/google/bless" | 29 const blesserURL = "https://dev.v.io/auth/google/bless" |
| 30 | 30 |
| (...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 216 } | 216 } |
| 217 | 217 |
| 218 //export MojoMain | 218 //export MojoMain |
| 219 func MojoMain(handle C.MojoHandle) C.MojoResult { | 219 func MojoMain(handle C.MojoHandle) C.MojoResult { |
| 220 application.Run(&principalServiceDelegate{}, system.MojoHandle(handle)) | 220 application.Run(&principalServiceDelegate{}, system.MojoHandle(handle)) |
| 221 return C.MOJO_RESULT_OK | 221 return C.MOJO_RESULT_OK |
| 222 } | 222 } |
| 223 | 223 |
| 224 func main() { | 224 func main() { |
| 225 } | 225 } |
| OLD | NEW |