mirror of
https://github.com/aphrody-labs/WSL.git
synced 2026-10-15 14:19:26 +00:00
* Update WSLC SDK API documentation Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * Update docs * Update docs * Quick fixes --------- Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Co-authored-by: Craig Loewen <crloewen@microsoft.com>
20 lines
601 B
Markdown
20 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());
|
|
```
|