mirror of
https://github.com/aphrody-labs/WSL.git
synced 2026-10-15 06:09:04 +00:00
19 lines
601 B
Markdown
19 lines
601 B
Markdown
# AuthenticateResult
|
|||
|
|
|
||
|
|
Registry authentication data returned by `Session::Authenticate`.
|
||
|
|
|
||
|
|
**Properties**
|
||
|
|
|
||
|
|
| Property | Type |
|
||
|
|
|---|---|
|
||
|
|
| `IdentityToken()` | `hstring` |
|
||
|
|
| `TokenType()` | `IdentityTokenType` |
|
||
|
|
|
||
|
|
`IdentityToken()` contains opaque registry authentication data suitable for
|
||
|
|
`PullImageOptions::RegistryAuth()` or `PushImageOptions::RegistryAuth()`. `TokenType()` identifies
|
||
|
|
whether it represents an identity token or the supplied credentials.
|
||
|
|
|
||
|
|
```cpp
|
||
|
|
auto authentication = session.Authenticate(registryUri, username, password);
|
||
|
|
pullOptions.RegistryAuth(authentication.IdentityToken());
|
||
|
|
```
|