Asim Shankar | 6107179 | 2014-07-22 13:03:18 -0700 | [diff] [blame] | 1 | // This file was auto-generated by the veyron vdl tool. |
| 2 | // Source: identity.vdl |
| 3 | |
| 4 | // Package identity defines services for identity providers in the veyron ecosystem. |
| 5 | package identity |
| 6 | |
| 7 | import ( |
Jiri Simsa | 764efb7 | 2014-12-25 20:57:03 -0800 | [diff] [blame] | 8 | "v.io/core/veyron2/security" |
Asim Shankar | b3a82ba | 2014-10-29 11:41:27 -0700 | [diff] [blame] | 9 | |
Todd Wang | 702385a | 2014-11-07 01:54:08 -0800 | [diff] [blame] | 10 | // The non-user imports are prefixed with "__" to prevent collisions. |
Jiri Simsa | 764efb7 | 2014-12-25 20:57:03 -0800 | [diff] [blame] | 11 | __veyron2 "v.io/core/veyron2" |
| 12 | __context "v.io/core/veyron2/context" |
| 13 | __ipc "v.io/core/veyron2/ipc" |
Asim Shankar | 6107179 | 2014-07-22 13:03:18 -0700 | [diff] [blame] | 14 | ) |
| 15 | |
Todd Wang | 702385a | 2014-11-07 01:54:08 -0800 | [diff] [blame] | 16 | // OAuthBlesserClientMethods is the client interface |
| 17 | // containing OAuthBlesser methods. |
| 18 | // |
Suharsh Sivakumar | d308c7e | 2014-10-03 12:46:50 -0700 | [diff] [blame] | 19 | // OAuthBlesser exchanges OAuth access tokens for |
Asim Shankar | 7a72175 | 2014-08-02 14:27:23 -0700 | [diff] [blame] | 20 | // an email address from an OAuth-based identity provider and uses the email |
| 21 | // address obtained to bless the client. |
Asim Shankar | 6107179 | 2014-07-22 13:03:18 -0700 | [diff] [blame] | 22 | // |
Asim Shankar | 7a72175 | 2014-08-02 14:27:23 -0700 | [diff] [blame] | 23 | // OAuth is described in RFC 6749 (http://tools.ietf.org/html/rfc6749), |
| 24 | // though the Google implementation also has informative documentation at |
| 25 | // https://developers.google.com/accounts/docs/OAuth2 |
| 26 | // |
Nicolas LaCasse | 057eeda | 2014-10-03 13:39:15 -0700 | [diff] [blame] | 27 | // WARNING: There is no binding between the channel over which the access token |
| 28 | // was obtained (typically https) and the channel used to make the RPC (a |
| 29 | // veyron virtual circuit). |
| 30 | // Thus, if Mallory possesses the access token associated with Alice's account, |
| 31 | // she may be able to obtain a blessing with Alice's name on it. |
Todd Wang | 702385a | 2014-11-07 01:54:08 -0800 | [diff] [blame] | 32 | type OAuthBlesserClientMethods interface { |
Asim Shankar | 7a72175 | 2014-08-02 14:27:23 -0700 | [diff] [blame] | 33 | // BlessUsingAccessToken uses the provided access token to obtain the email |
Ankur | 3c33d42 | 2014-10-09 11:53:25 -0700 | [diff] [blame] | 34 | // address and returns a blessing along with the email address. |
Matt Rosencrantz | 4f8ac60 | 2014-12-29 14:42:48 -0800 | [diff] [blame] | 35 | BlessUsingAccessToken(ctx *__context.T, token string, opts ...__ipc.CallOpt) (blessing security.WireBlessings, email string, err error) |
Asim Shankar | 6107179 | 2014-07-22 13:03:18 -0700 | [diff] [blame] | 36 | } |
| 37 | |
Todd Wang | 702385a | 2014-11-07 01:54:08 -0800 | [diff] [blame] | 38 | // OAuthBlesserClientStub adds universal methods to OAuthBlesserClientMethods. |
| 39 | type OAuthBlesserClientStub interface { |
| 40 | OAuthBlesserClientMethods |
| 41 | __ipc.UniversalServiceMethods |
Asim Shankar | 6107179 | 2014-07-22 13:03:18 -0700 | [diff] [blame] | 42 | } |
| 43 | |
Todd Wang | 702385a | 2014-11-07 01:54:08 -0800 | [diff] [blame] | 44 | // OAuthBlesserClient returns a client stub for OAuthBlesser. |
| 45 | func OAuthBlesserClient(name string, opts ...__ipc.BindOpt) OAuthBlesserClientStub { |
| 46 | var client __ipc.Client |
| 47 | for _, opt := range opts { |
| 48 | if clientOpt, ok := opt.(__ipc.Client); ok { |
Matt Rosencrantz | bf85d54 | 2014-08-22 13:31:14 -0700 | [diff] [blame] | 49 | client = clientOpt |
Asim Shankar | 6107179 | 2014-07-22 13:03:18 -0700 | [diff] [blame] | 50 | } |
Asim Shankar | 6107179 | 2014-07-22 13:03:18 -0700 | [diff] [blame] | 51 | } |
Todd Wang | 702385a | 2014-11-07 01:54:08 -0800 | [diff] [blame] | 52 | return implOAuthBlesserClientStub{name, client} |
Asim Shankar | 6107179 | 2014-07-22 13:03:18 -0700 | [diff] [blame] | 53 | } |
| 54 | |
Todd Wang | 702385a | 2014-11-07 01:54:08 -0800 | [diff] [blame] | 55 | type implOAuthBlesserClientStub struct { |
| 56 | name string |
| 57 | client __ipc.Client |
| 58 | } |
| 59 | |
Matt Rosencrantz | 4f8ac60 | 2014-12-29 14:42:48 -0800 | [diff] [blame] | 60 | func (c implOAuthBlesserClientStub) c(ctx *__context.T) __ipc.Client { |
Todd Wang | 702385a | 2014-11-07 01:54:08 -0800 | [diff] [blame] | 61 | if c.client != nil { |
| 62 | return c.client |
| 63 | } |
Suharsh Sivakumar | be80c1b | 2015-01-07 18:51:16 -0800 | [diff] [blame] | 64 | return __veyron2.GetClient(ctx) |
Todd Wang | 702385a | 2014-11-07 01:54:08 -0800 | [diff] [blame] | 65 | } |
| 66 | |
Matt Rosencrantz | 4f8ac60 | 2014-12-29 14:42:48 -0800 | [diff] [blame] | 67 | func (c implOAuthBlesserClientStub) BlessUsingAccessToken(ctx *__context.T, i0 string, opts ...__ipc.CallOpt) (o0 security.WireBlessings, o1 string, err error) { |
Todd Wang | 702385a | 2014-11-07 01:54:08 -0800 | [diff] [blame] | 68 | var call __ipc.Call |
| 69 | if call, err = c.c(ctx).StartCall(ctx, c.name, "BlessUsingAccessToken", []interface{}{i0}, opts...); err != nil { |
| 70 | return |
| 71 | } |
| 72 | if ierr := call.Finish(&o0, &o1, &err); ierr != nil { |
| 73 | err = ierr |
| 74 | } |
| 75 | return |
| 76 | } |
| 77 | |
Todd Wang | 702385a | 2014-11-07 01:54:08 -0800 | [diff] [blame] | 78 | // OAuthBlesserServerMethods is the interface a server writer |
| 79 | // implements for OAuthBlesser. |
Asim Shankar | 6107179 | 2014-07-22 13:03:18 -0700 | [diff] [blame] | 80 | // |
Todd Wang | 702385a | 2014-11-07 01:54:08 -0800 | [diff] [blame] | 81 | // OAuthBlesser exchanges OAuth access tokens for |
| 82 | // an email address from an OAuth-based identity provider and uses the email |
| 83 | // address obtained to bless the client. |
| 84 | // |
| 85 | // OAuth is described in RFC 6749 (http://tools.ietf.org/html/rfc6749), |
| 86 | // though the Google implementation also has informative documentation at |
| 87 | // https://developers.google.com/accounts/docs/OAuth2 |
| 88 | // |
| 89 | // WARNING: There is no binding between the channel over which the access token |
| 90 | // was obtained (typically https) and the channel used to make the RPC (a |
| 91 | // veyron virtual circuit). |
| 92 | // Thus, if Mallory possesses the access token associated with Alice's account, |
| 93 | // she may be able to obtain a blessing with Alice's name on it. |
| 94 | type OAuthBlesserServerMethods interface { |
| 95 | // BlessUsingAccessToken uses the provided access token to obtain the email |
| 96 | // address and returns a blessing along with the email address. |
| 97 | BlessUsingAccessToken(ctx __ipc.ServerContext, token string) (blessing security.WireBlessings, email string, err error) |
| 98 | } |
| 99 | |
| 100 | // OAuthBlesserServerStubMethods is the server interface containing |
Todd Wang | 1fe7cdd | 2014-11-12 12:51:49 -0800 | [diff] [blame] | 101 | // OAuthBlesser methods, as expected by ipc.Server. |
| 102 | // There is no difference between this interface and OAuthBlesserServerMethods |
| 103 | // since there are no streaming methods. |
| 104 | type OAuthBlesserServerStubMethods OAuthBlesserServerMethods |
Todd Wang | 702385a | 2014-11-07 01:54:08 -0800 | [diff] [blame] | 105 | |
| 106 | // OAuthBlesserServerStub adds universal methods to OAuthBlesserServerStubMethods. |
| 107 | type OAuthBlesserServerStub interface { |
| 108 | OAuthBlesserServerStubMethods |
Todd Wang | 5739dda | 2014-11-16 22:44:02 -0800 | [diff] [blame] | 109 | // Describe the OAuthBlesser interfaces. |
| 110 | Describe__() []__ipc.InterfaceDesc |
Todd Wang | 702385a | 2014-11-07 01:54:08 -0800 | [diff] [blame] | 111 | } |
| 112 | |
| 113 | // OAuthBlesserServer returns a server stub for OAuthBlesser. |
| 114 | // It converts an implementation of OAuthBlesserServerMethods into |
| 115 | // an object that may be used by ipc.Server. |
| 116 | func OAuthBlesserServer(impl OAuthBlesserServerMethods) OAuthBlesserServerStub { |
| 117 | stub := implOAuthBlesserServerStub{ |
| 118 | impl: impl, |
Asim Shankar | 6107179 | 2014-07-22 13:03:18 -0700 | [diff] [blame] | 119 | } |
Todd Wang | 702385a | 2014-11-07 01:54:08 -0800 | [diff] [blame] | 120 | // Initialize GlobState; always check the stub itself first, to handle the |
| 121 | // case where the user has the Glob method defined in their VDL source. |
| 122 | if gs := __ipc.NewGlobState(stub); gs != nil { |
| 123 | stub.gs = gs |
| 124 | } else if gs := __ipc.NewGlobState(impl); gs != nil { |
| 125 | stub.gs = gs |
Robin Thellend | 94bc464 | 2014-11-05 18:05:08 -0800 | [diff] [blame] | 126 | } |
Robin Thellend | 94bc464 | 2014-11-05 18:05:08 -0800 | [diff] [blame] | 127 | return stub |
Asim Shankar | 6107179 | 2014-07-22 13:03:18 -0700 | [diff] [blame] | 128 | } |
| 129 | |
Todd Wang | 702385a | 2014-11-07 01:54:08 -0800 | [diff] [blame] | 130 | type implOAuthBlesserServerStub struct { |
| 131 | impl OAuthBlesserServerMethods |
| 132 | gs *__ipc.GlobState |
Matt Rosencrantz | bf85d54 | 2014-08-22 13:31:14 -0700 | [diff] [blame] | 133 | } |
| 134 | |
Todd Wang | 1fe7cdd | 2014-11-12 12:51:49 -0800 | [diff] [blame] | 135 | func (s implOAuthBlesserServerStub) BlessUsingAccessToken(ctx __ipc.ServerContext, i0 string) (security.WireBlessings, string, error) { |
| 136 | return s.impl.BlessUsingAccessToken(ctx, i0) |
Asim Shankar | 6107179 | 2014-07-22 13:03:18 -0700 | [diff] [blame] | 137 | } |
| 138 | |
Robin Thellend | 39ac323 | 2014-12-02 09:50:41 -0800 | [diff] [blame] | 139 | func (s implOAuthBlesserServerStub) Globber() *__ipc.GlobState { |
Todd Wang | 702385a | 2014-11-07 01:54:08 -0800 | [diff] [blame] | 140 | return s.gs |
Asim Shankar | 6107179 | 2014-07-22 13:03:18 -0700 | [diff] [blame] | 141 | } |
| 142 | |
Todd Wang | 5739dda | 2014-11-16 22:44:02 -0800 | [diff] [blame] | 143 | func (s implOAuthBlesserServerStub) Describe__() []__ipc.InterfaceDesc { |
| 144 | return []__ipc.InterfaceDesc{OAuthBlesserDesc} |
| 145 | } |
| 146 | |
| 147 | // OAuthBlesserDesc describes the OAuthBlesser interface. |
| 148 | var OAuthBlesserDesc __ipc.InterfaceDesc = descOAuthBlesser |
| 149 | |
| 150 | // descOAuthBlesser hides the desc to keep godoc clean. |
| 151 | var descOAuthBlesser = __ipc.InterfaceDesc{ |
| 152 | Name: "OAuthBlesser", |
Jiri Simsa | 764efb7 | 2014-12-25 20:57:03 -0800 | [diff] [blame] | 153 | PkgPath: "v.io/core/veyron/services/identity", |
Todd Wang | 5739dda | 2014-11-16 22:44:02 -0800 | [diff] [blame] | 154 | Doc: "// OAuthBlesser exchanges OAuth access tokens for\n// an email address from an OAuth-based identity provider and uses the email\n// address obtained to bless the client.\n//\n// OAuth is described in RFC 6749 (http://tools.ietf.org/html/rfc6749),\n// though the Google implementation also has informative documentation at\n// https://developers.google.com/accounts/docs/OAuth2\n//\n// WARNING: There is no binding between the channel over which the access token\n// was obtained (typically https) and the channel used to make the RPC (a\n// veyron virtual circuit).\n// Thus, if Mallory possesses the access token associated with Alice's account,\n// she may be able to obtain a blessing with Alice's name on it.", |
| 155 | Methods: []__ipc.MethodDesc{ |
| 156 | { |
| 157 | Name: "BlessUsingAccessToken", |
| 158 | Doc: "// BlessUsingAccessToken uses the provided access token to obtain the email\n// address and returns a blessing along with the email address.", |
| 159 | InArgs: []__ipc.ArgDesc{ |
| 160 | {"token", ``}, // string |
| 161 | }, |
| 162 | OutArgs: []__ipc.ArgDesc{ |
| 163 | {"blessing", ``}, // security.WireBlessings |
| 164 | {"email", ``}, // string |
| 165 | {"err", ``}, // error |
| 166 | }, |
| 167 | }, |
| 168 | }, |
Asim Shankar | 6107179 | 2014-07-22 13:03:18 -0700 | [diff] [blame] | 169 | } |
| 170 | |
Todd Wang | 702385a | 2014-11-07 01:54:08 -0800 | [diff] [blame] | 171 | // MacaroonBlesserClientMethods is the client interface |
| 172 | // containing MacaroonBlesser methods. |
| 173 | // |
Suharsh Sivakumar | d308c7e | 2014-10-03 12:46:50 -0700 | [diff] [blame] | 174 | // MacaroonBlesser returns a blessing given the provided macaroon string. |
Todd Wang | 702385a | 2014-11-07 01:54:08 -0800 | [diff] [blame] | 175 | type MacaroonBlesserClientMethods interface { |
Suharsh Sivakumar | d308c7e | 2014-10-03 12:46:50 -0700 | [diff] [blame] | 176 | // Bless uses the provided macaroon (which contains email and caveats) |
| 177 | // to return a blessing for the client. |
Matt Rosencrantz | 4f8ac60 | 2014-12-29 14:42:48 -0800 | [diff] [blame] | 178 | Bless(ctx *__context.T, macaroon string, opts ...__ipc.CallOpt) (blessing security.WireBlessings, err error) |
Suharsh Sivakumar | d308c7e | 2014-10-03 12:46:50 -0700 | [diff] [blame] | 179 | } |
| 180 | |
Todd Wang | 702385a | 2014-11-07 01:54:08 -0800 | [diff] [blame] | 181 | // MacaroonBlesserClientStub adds universal methods to MacaroonBlesserClientMethods. |
| 182 | type MacaroonBlesserClientStub interface { |
| 183 | MacaroonBlesserClientMethods |
| 184 | __ipc.UniversalServiceMethods |
Suharsh Sivakumar | d308c7e | 2014-10-03 12:46:50 -0700 | [diff] [blame] | 185 | } |
| 186 | |
Todd Wang | 702385a | 2014-11-07 01:54:08 -0800 | [diff] [blame] | 187 | // MacaroonBlesserClient returns a client stub for MacaroonBlesser. |
| 188 | func MacaroonBlesserClient(name string, opts ...__ipc.BindOpt) MacaroonBlesserClientStub { |
| 189 | var client __ipc.Client |
| 190 | for _, opt := range opts { |
| 191 | if clientOpt, ok := opt.(__ipc.Client); ok { |
Suharsh Sivakumar | d308c7e | 2014-10-03 12:46:50 -0700 | [diff] [blame] | 192 | client = clientOpt |
Suharsh Sivakumar | d308c7e | 2014-10-03 12:46:50 -0700 | [diff] [blame] | 193 | } |
Suharsh Sivakumar | d308c7e | 2014-10-03 12:46:50 -0700 | [diff] [blame] | 194 | } |
Todd Wang | 702385a | 2014-11-07 01:54:08 -0800 | [diff] [blame] | 195 | return implMacaroonBlesserClientStub{name, client} |
Suharsh Sivakumar | d308c7e | 2014-10-03 12:46:50 -0700 | [diff] [blame] | 196 | } |
| 197 | |
Todd Wang | 702385a | 2014-11-07 01:54:08 -0800 | [diff] [blame] | 198 | type implMacaroonBlesserClientStub struct { |
| 199 | name string |
| 200 | client __ipc.Client |
| 201 | } |
| 202 | |
Matt Rosencrantz | 4f8ac60 | 2014-12-29 14:42:48 -0800 | [diff] [blame] | 203 | func (c implMacaroonBlesserClientStub) c(ctx *__context.T) __ipc.Client { |
Todd Wang | 702385a | 2014-11-07 01:54:08 -0800 | [diff] [blame] | 204 | if c.client != nil { |
| 205 | return c.client |
| 206 | } |
Suharsh Sivakumar | be80c1b | 2015-01-07 18:51:16 -0800 | [diff] [blame] | 207 | return __veyron2.GetClient(ctx) |
Todd Wang | 702385a | 2014-11-07 01:54:08 -0800 | [diff] [blame] | 208 | } |
| 209 | |
Matt Rosencrantz | 4f8ac60 | 2014-12-29 14:42:48 -0800 | [diff] [blame] | 210 | func (c implMacaroonBlesserClientStub) Bless(ctx *__context.T, i0 string, opts ...__ipc.CallOpt) (o0 security.WireBlessings, err error) { |
Todd Wang | 702385a | 2014-11-07 01:54:08 -0800 | [diff] [blame] | 211 | var call __ipc.Call |
| 212 | if call, err = c.c(ctx).StartCall(ctx, c.name, "Bless", []interface{}{i0}, opts...); err != nil { |
| 213 | return |
| 214 | } |
| 215 | if ierr := call.Finish(&o0, &err); ierr != nil { |
| 216 | err = ierr |
| 217 | } |
| 218 | return |
| 219 | } |
| 220 | |
Todd Wang | 702385a | 2014-11-07 01:54:08 -0800 | [diff] [blame] | 221 | // MacaroonBlesserServerMethods is the interface a server writer |
| 222 | // implements for MacaroonBlesser. |
Suharsh Sivakumar | d308c7e | 2014-10-03 12:46:50 -0700 | [diff] [blame] | 223 | // |
Todd Wang | 702385a | 2014-11-07 01:54:08 -0800 | [diff] [blame] | 224 | // MacaroonBlesser returns a blessing given the provided macaroon string. |
| 225 | type MacaroonBlesserServerMethods interface { |
| 226 | // Bless uses the provided macaroon (which contains email and caveats) |
| 227 | // to return a blessing for the client. |
| 228 | Bless(ctx __ipc.ServerContext, macaroon string) (blessing security.WireBlessings, err error) |
| 229 | } |
| 230 | |
| 231 | // MacaroonBlesserServerStubMethods is the server interface containing |
Todd Wang | 1fe7cdd | 2014-11-12 12:51:49 -0800 | [diff] [blame] | 232 | // MacaroonBlesser methods, as expected by ipc.Server. |
| 233 | // There is no difference between this interface and MacaroonBlesserServerMethods |
| 234 | // since there are no streaming methods. |
| 235 | type MacaroonBlesserServerStubMethods MacaroonBlesserServerMethods |
Todd Wang | 702385a | 2014-11-07 01:54:08 -0800 | [diff] [blame] | 236 | |
| 237 | // MacaroonBlesserServerStub adds universal methods to MacaroonBlesserServerStubMethods. |
| 238 | type MacaroonBlesserServerStub interface { |
| 239 | MacaroonBlesserServerStubMethods |
Todd Wang | 5739dda | 2014-11-16 22:44:02 -0800 | [diff] [blame] | 240 | // Describe the MacaroonBlesser interfaces. |
| 241 | Describe__() []__ipc.InterfaceDesc |
Todd Wang | 702385a | 2014-11-07 01:54:08 -0800 | [diff] [blame] | 242 | } |
| 243 | |
| 244 | // MacaroonBlesserServer returns a server stub for MacaroonBlesser. |
| 245 | // It converts an implementation of MacaroonBlesserServerMethods into |
| 246 | // an object that may be used by ipc.Server. |
| 247 | func MacaroonBlesserServer(impl MacaroonBlesserServerMethods) MacaroonBlesserServerStub { |
| 248 | stub := implMacaroonBlesserServerStub{ |
| 249 | impl: impl, |
Suharsh Sivakumar | d308c7e | 2014-10-03 12:46:50 -0700 | [diff] [blame] | 250 | } |
Todd Wang | 702385a | 2014-11-07 01:54:08 -0800 | [diff] [blame] | 251 | // Initialize GlobState; always check the stub itself first, to handle the |
| 252 | // case where the user has the Glob method defined in their VDL source. |
| 253 | if gs := __ipc.NewGlobState(stub); gs != nil { |
| 254 | stub.gs = gs |
| 255 | } else if gs := __ipc.NewGlobState(impl); gs != nil { |
| 256 | stub.gs = gs |
Robin Thellend | 94bc464 | 2014-11-05 18:05:08 -0800 | [diff] [blame] | 257 | } |
Robin Thellend | 94bc464 | 2014-11-05 18:05:08 -0800 | [diff] [blame] | 258 | return stub |
Suharsh Sivakumar | d308c7e | 2014-10-03 12:46:50 -0700 | [diff] [blame] | 259 | } |
| 260 | |
Todd Wang | 702385a | 2014-11-07 01:54:08 -0800 | [diff] [blame] | 261 | type implMacaroonBlesserServerStub struct { |
| 262 | impl MacaroonBlesserServerMethods |
| 263 | gs *__ipc.GlobState |
Suharsh Sivakumar | d308c7e | 2014-10-03 12:46:50 -0700 | [diff] [blame] | 264 | } |
| 265 | |
Todd Wang | 1fe7cdd | 2014-11-12 12:51:49 -0800 | [diff] [blame] | 266 | func (s implMacaroonBlesserServerStub) Bless(ctx __ipc.ServerContext, i0 string) (security.WireBlessings, error) { |
| 267 | return s.impl.Bless(ctx, i0) |
Suharsh Sivakumar | d308c7e | 2014-10-03 12:46:50 -0700 | [diff] [blame] | 268 | } |
| 269 | |
Robin Thellend | 39ac323 | 2014-12-02 09:50:41 -0800 | [diff] [blame] | 270 | func (s implMacaroonBlesserServerStub) Globber() *__ipc.GlobState { |
Todd Wang | 702385a | 2014-11-07 01:54:08 -0800 | [diff] [blame] | 271 | return s.gs |
Suharsh Sivakumar | d308c7e | 2014-10-03 12:46:50 -0700 | [diff] [blame] | 272 | } |
| 273 | |
Todd Wang | 5739dda | 2014-11-16 22:44:02 -0800 | [diff] [blame] | 274 | func (s implMacaroonBlesserServerStub) Describe__() []__ipc.InterfaceDesc { |
| 275 | return []__ipc.InterfaceDesc{MacaroonBlesserDesc} |
| 276 | } |
| 277 | |
| 278 | // MacaroonBlesserDesc describes the MacaroonBlesser interface. |
| 279 | var MacaroonBlesserDesc __ipc.InterfaceDesc = descMacaroonBlesser |
| 280 | |
| 281 | // descMacaroonBlesser hides the desc to keep godoc clean. |
| 282 | var descMacaroonBlesser = __ipc.InterfaceDesc{ |
| 283 | Name: "MacaroonBlesser", |
Jiri Simsa | 764efb7 | 2014-12-25 20:57:03 -0800 | [diff] [blame] | 284 | PkgPath: "v.io/core/veyron/services/identity", |
Todd Wang | 5739dda | 2014-11-16 22:44:02 -0800 | [diff] [blame] | 285 | Doc: "// MacaroonBlesser returns a blessing given the provided macaroon string.", |
| 286 | Methods: []__ipc.MethodDesc{ |
| 287 | { |
| 288 | Name: "Bless", |
| 289 | Doc: "// Bless uses the provided macaroon (which contains email and caveats)\n// to return a blessing for the client.", |
| 290 | InArgs: []__ipc.ArgDesc{ |
| 291 | {"macaroon", ``}, // string |
| 292 | }, |
| 293 | OutArgs: []__ipc.ArgDesc{ |
| 294 | {"blessing", ``}, // security.WireBlessings |
| 295 | {"err", ``}, // error |
| 296 | }, |
| 297 | }, |
| 298 | }, |
Suharsh Sivakumar | d308c7e | 2014-10-03 12:46:50 -0700 | [diff] [blame] | 299 | } |