liveBook · Manning

Redirect uri

As explained in .NET MAUI in Action

A redirect URI is the callback address to which an authorization server sends a client after authentication, typically with an authorization code.

A redirect URI is the callback address supplied during an OAuth2 login. After authentication, the identity provider returns the user to this address with an authorization code that can be exchanged for tokens. section 8.1.2

For a web application, the URI usually points to the originating website. For a .NET MAUI mobile or desktop app, use a custom URL scheme that the operating system associates with the app. section 8.1.2

Configure a .NET MAUI callback

Use auth.com.mildredsurf.stocktake:/callback as the redirect URI. Pass it to WebAuthenticator and OidcClient, then register the auth.com.mildredsurf.stocktake scheme on each target platform. Android uses a callback Activity and intent filter; iOS and macOS use Info.plist; Windows uses Package.appxmanifest. section 8.1.2

How .NET MAUI in Action covers it

How deep it goes
Explains callback flow and platform registration, then demonstrates configuration without detailing authorization-server validation internals.
Examples
Uses a custom auth.com.mildredsurf.stocktake:/callback URI with Android, iOS, macOS, and Windows registration examples.
What it assumes
Assumes basic OAuth2 or OIDC login knowledge and teaches platform-specific callback registration through concrete configuration examples.
What you can do after
Configure it via WebAuthenticator and OidcClient, then register the custom scheme so the operating system returns authentication results to the app.
How it connects
Connects OAuth2, OpenID Connect, authorization codes, WebAuthenticator, OidcClient, and operating-system URL-scheme registration.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of .NET MAUI in Action. The section links point to the parts of the book it draws on.