WithPreAuthorizedApplication

Method
📦 Aspire.Hosting.Azure.EntraId v17.0.0-preview.1.26567.5
func (EntraIdApplicationResource) WithPreAuthorizedApplication(
client EntraIdApplicationResource,
scopeNames []string,
) EntraIdApplicationResource

Signature

methodWithPreAuthorizedApplicationbuilder
Pre-authorizes a client application to request some of this registration's scopes without any consent prompt.
WithPreAuthorizedApplication(
client EntraIdApplicationResource,
scopeNames []string,
) EntraIdApplicationResource
clientEntraIdApplicationResourceThe client application to pre-authorize.
scopeNames[]stringThe names of the scopes, added with WithScope, that the client may request.
EntraIdApplicationResource

The resource builder for chaining.

Returns a handle; failures surface later via Err().

Applies to

This method applies to the following types: