RKSAD0011
Why this is deprecated
Microsoft.IdentityModel.Clients.ActiveDirectory.PromptBehavior is part of the Rokstep.IdentityModel.Clients.ActiveDirectory.Shims shim library. The original library is abandoned or deprecated. This diagnostic ID (RKSAD0011) fires at build time to guide you toward the modern replacement.
Obsolete message: Microsoft.IdentityModel.Clients.ActiveDirectory.PromptBehavior is from the deprecated ADAL library. This Rokstep shim provides structural compatibility only. Interactive flows throw NotSupportedException in v0.2 and are planned for v0.3. See https://dev.rokstep.eu/migrations/RKSAD0011 for migration guidance.
What you can do
Option 1 — Drop-in shim (zero code changes)
Install the shim package and keep using the existing API. The shim compiles your code but emits this warning at build time.
dotnet add package Rokstep.IdentityModel.Clients.ActiveDirectory.ShimsOption 2 — Migrate to the modern alternative
Replace Microsoft.IdentityModel.Clients.ActiveDirectory.PromptBehavior with from.
Type details
While you’re at it
Check the Hardened Migration Security Checklist for common security issues to fix during migration.
Related IDs in rokstep-identitymodel.clients.activedirectory-shims
- RKSAD0006
- RKSAD0007
- RKSAD0009
- RKSAD0001
- RKSAD0002
- RKSAD0003
- RKSAD0008
- RKSAD0005
- RKSAD0010
- RKSAD0010
- RKSAD0004
Not your kind of work? Let me do it for you. Found a typo? Email me — solo founder, no public issue tracker for this site.