Files

19 lines
601 B
Markdown
Raw Permalink Normal View History

2026-09-29 07:14:54 -07:00
# 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());
```