Custom Widgets & Sign-In Pages in Okta

Custom Widgets & Sign-In Pages in Okta

The sign-in page is the front door of your company. It is the first thing every customer and employee sees, and it is also the most attacked page you own. A first-principles guide to branding, extending and safely operating Okta's sign-in experience, from the simple hosted page to a fully embedded widget.

Kestrel Outdoor Gear sells tents, boots and climbing ropes to two million customers. Last spring the marketing team ordered a bright new look for the website. The designers did a lovely job, and then someone noticed that the sign-in page still looked like it belonged to a different company: a plain box, a stock logo, a few words in the wrong language and a strange web address. Customers hesitated. Some thought the page was a scam and phoned support instead of signing in.

The fix looked easy. A developer copied the sign-in code into the website, changed some colors and moved on. Three months later a security review found that the copied page had skipped a protection against being framed by hostile sites, that its error messages told attackers which email addresses were real, and that nobody remembered which version of the widget it used. The pretty page had become the weakest link in the building.

Both stories point to the same lesson. A sign-in page is not decoration. It is a security control that also has to feel trustworthy, load fast, work for every person and keep working after the next upgrade. Okta gives you several ways to shape it: change the look of the hosted page, add your own domain, edit the page’s template, or embed the Okta Sign-In Widget in your own application. Each way buys freedom and costs responsibility.

Every Okta-specific statement in this guide is general guidance to confirm against current official documentation, because names, features and editions change. What does not change is the design thinking: how to choose between the options, what to protect, how to test, and how to run the page for years. We start from zero and assume no earlier knowledge.

1Why the Sign-In Page Matters

Every person who uses your products passes through one small page. That page decides first impressions, safety and success rates.

Three Jobs in One Page

Job 1

Build trust

People must feel they are in the right place. Familiar logos, names and addresses calm doubt before a password is typed.

Job 2

Prove identity

The page collects passwords, codes and approvals. Every weakness here is a way into your systems.

Job 3

Help people through

Forgotten passwords, new devices and lost phones happen daily. Clear help turns a bad moment into a solved one.

These jobs pull in different directions. Marketing wants freedom of design. Security wants strict control. Support wants plain words. A good design finds the place where all three are satisfied.

Analogy

The entrance of a bank must look welcoming, must have strong locks and must have a helpful person at the desk. If you only polish the doors, the vault does not become safer.

2The Options at a Glance

Okta offers a ladder of choices. Each step up gives more control and takes more responsibility.

OptionWhat you changeWho maintains the pageEffort
Default hosted pageNothingOktaNone
Branded hosted pageLogo, colors, background, faviconOktaLow
Hosted page on your own domainThe web address people seeOktaLow to medium
Customized hosted pagePage template, text, some behaviorYou and Okta togetherMedium
Embedded widgetThe page inside your own applicationYouHigh
Fully custom screens using Okta servicesEverything on screenYouVery high

Most companies should stop at the middle of this ladder. The farther down the table you go, the more security work moves from Okta to your own team.

Analogy

You can rent a ready-made shop and hang your sign, repaint the walls, change the shelves, or build a whole new building. The more you build, the more you must also repair.

3Core Concepts: The Vocabulary of Sign-In Pages

A short dictionary makes everything later easier to read.

TermPlain meaning
Sign-in pageThe screen where a person proves who they are
Hosted page (redirect)A page served by Okta; your application sends people there and receives them back
Embedded widgetA piece of Okta’s sign-in software placed inside your own page
Sign-In WidgetOkta’s ready-made sign-in component, delivered as a software library
Brand / themeA saved set of logo, colors and images applied to Okta pages
Custom domainYour own web address used instead of Okta’s
Page templateThe layout of a page that you may edit
LocalizationShowing the page in the person’s language
Content Security PolicyA browser rule about which sources a page may load code from
Cross-origin rules (CORS)Browser rules about which sites may call which services
Redirect URIThe approved address Okta sends people back to after sign-in
Authorization code with PKCEA safe way for browser and mobile applications to finish sign-in without exposing secrets
Analogy

Learning the names of the parts before repairing a bicycle is not wasted time. Nobody can follow instructions about the derailleur without knowing what it is.

4How an Embedded Widget Sign-In Differs

When the widget lives in your page, more of the journey happens on your domain. The order of steps changes, and so do the risks.

sequenceDiagram
    participant U as Person
    participant P as Your page with widget
    participant S as Okta service
    participant A as Your application back end
    U->>P: Opens your page
    P->>U: Shows the widget
    U->>P: Enters details inside the widget
    P->>S: Widget sends the attempt
    S->>S: Applies policies
    S-->>P: Result and one-time code
    P->>A: Passes the code
    A->>S: Exchanges code for tokens
    S-->>A: Tokens
    A-->>U: Session starts
    
Figure 1. An embedded sign-in. The widget runs on your page, so your page’s security headers and scripts matter far more.
  • Your page sees more. A compromised script on your page can read the same things the widget reads.
  • Cookie rules bite harder. The widget calls Okta from a different address, which browsers treat with suspicion.
  • You own the upgrade path. New methods arrive when you upgrade the widget.
  • You own the testing. Every browser, language and method must be covered by your own plan.
Analogy

Serving customers at your own counter feels friendly, and you also become responsible for the till, the lock and the cleaning of that counter.

5Redirect or Embedded: The First Big Decision

Do you send people to Okta’s page, or place Okta’s sign-in inside your own?

Redirect to the hosted page

  • Okta maintains and patches the page
  • Single sign-on across applications works naturally
  • Your application never touches passwords
  • New sign-in methods appear without new code

Cost of redirecting

  • People briefly leave your site
  • Design freedom is limited to what the templates allow
  • Some native app experiences feel less seamless

Embed the widget

  • The experience stays inside your site
  • More control over layout and surrounding words
  • Useful for apps that cannot leave the screen

Cost of embedding

  • You own upgrades, testing and security headers
  • Single sign-on across applications needs extra thought
  • Mistakes live on your domain, where attackers look hardest
  • Newer sign-in methods may need newer widget versions
i
Tip

Okta’s guidance generally leans toward the redirect model for most web applications. Confirm the current recommendation for your type of application in the official documentation before deciding.

Analogy

Sending a visitor to the lobby of a secure office building keeps the guards in charge. Building a second reception desk inside your own office is possible, but now you must hire and train your own guards.

6Classic Engine and Identity Engine

Okta has used more than one engine for sign-in logic. Which one you run changes what you can customize and how.

Okta’s older sign-in approach is commonly called the Classic Engine. The newer approach, built around flexible steps and policies, is called the Identity Engine. The two differ in how sign-in screens are built, which authentication methods are offered and how the widget talks to the service. The versions of the Sign-In Widget that match each engine are not always interchangeable.

  • Know which engine your org uses. The admin console and documentation show this.
  • Match the widget version to the engine. A mismatch can cause missing screens or odd behavior.
  • Read the migration notes before upgrading. Custom templates and scripts may need rework.
  • Test every custom screen after a move. What worked on one engine may not on the other.

Because this area changes quickly, treat it as a checklist item for your team: write down the engine, the widget version and the date you last confirmed them.

Analogy

Two generations of the same car may look alike, but a part from one may not fit the other. Before ordering parts, check the model year.

7Branding the Hosted Page

The simplest change is also the one with the best return: make the page look like you.

What Branding Usually Covers

  • Logo. Shown at the top of the page. Provide a clear version that works on light and dark backgrounds.
  • Colors. Primary and accent colors for buttons and links. Check contrast so text stays readable.
  • Background. An image or color. Keep it quiet so the form stays the star.
  • Favicon. The tiny icon in the browser tab. Small, but it reassures people.
  • Page text. Welcome lines, help links and footer words in the voice of your company.
  • Email and error pages. Okta lets you brand these too, so that every touchpoint matches.

Brand Discipline

Branding is easy to do once and hard to keep consistent. Keep the source files, the exact color values and the person who approved them in a shared place. If you have several brands, such as one per product or region, decide which applications use which and write it in a table.

Analogy

A shopfront with the right sign, colors and window display tells walkers they are in the right shop before they enter. It costs little and prevents much doubt.

8Custom Domains and Trust

An address that matches your company makes people trust the page and makes cookies and links behave better.

By default the hosted page lives at an Okta address. With a custom domain, it lives at an address such as one that begins with your own name. This helps in three ways. People see a familiar address. Emails and links look consistent. And some browser behaviors, such as how cookies are shared, work more smoothly when the address belongs to you.

ConcernWhy it mattersHabit
CertificateAn expired certificate shows a scary browser warningTrack expiry dates and renew early, or use automatic renewal where offered
Address recordsWrong records break sign-in entirelyKeep a record of every change, and test after each
Domain ownershipLapsed ownership could let someone else take the nameRegister for long periods and monitor renewals
Look-alike namesAttackers register similar names for fake pagesWatch for look-alikes and teach people the real address

Plans, certificate options and setup steps differ by Okta edition and over time, so confirm them in current documentation. A companion guide in this series covers custom domains in more detail.

Analogy

A letter from a familiar address gets opened. A letter from a strange address gets binned or reported. Your web address is the return address on every sign-in.

9Customizing the Page Template

When colors and logos are not enough, Okta may allow you to edit the page itself. This is powerful and needs discipline.

What Editing Allows

Depending on your plan and engine, you may be able to change the layout of the sign-in page, add your own words and links, change how some elements appear and adjust parts of the widget’s behavior with settings. Some editions also allow adding your own styling or small pieces of script to the hosted page. The exact limits are set by Okta and by your edition, so confirm them first.

Rules for Safe Editing

  • Change as little as possible. Every edit is something you must retest after each Okta update.
  • Use supported settings before custom edits. Settings survive upgrades far better than patches.
  • Keep a copy of the original. A way back saves a bad afternoon.
  • Review edits like code. A second person checks every change.
  • Never add secrets or tracking you cannot explain. The page is public.
  • Document each customization. Say what it does, why it exists and who owns it.
!
Warning

Third-party scripts on a sign-in page can read what people type. Every extra script is a possible theft route. Allow only what you can justify and own.

Analogy

Renovating a rented flat is allowed within limits. The more walls you move, the more you must repair before you leave and the harder it is to take on the landlord’s next improvement.

10Architecture and Components

A picture of the parts shows who talks to whom and where each risk lives.

flowchart LR
    P["Person in a browser"] --> A["Your application"]
    A -->|"Redirect"| H["Okta hosted sign-in page"]
    A -.->|"Embedded option"| W["Sign-In Widget in your page"]
    H --> O["Okta authentication service"]
    W --> O
    O --> POL["Policies and sign-in methods"]
    O --> D["Directory and user store"]
    O --> L["System Log"]
    O -->|"Code returned to approved address"| A
    
Figure 2. Both routes lead to the same Okta service. The difference is who hosts the screen the person sees.
  • Browser. Runs the page and enforces many security rules.
  • Your application. Starts sign-in and receives the result.
  • Hosted page or widget. The visible screen.
  • Authentication service. Applies policies, checks factors, and issues tokens.
  • Brand and template settings. Decide how pages look.
  • Logs. Record what happened for support and investigation.
Analogy

A theater has a lobby, a ticket desk and a vault. Guests only see the lobby, but the vault and desk decide who gets in. The sign-in page is the lobby, and the service behind it does the real checking.

11Internal Working: One Sign-In Step by Step

Following one sign-in from first click to last redirect removes most of the mystery.

sequenceDiagram
    participant U as Person
    participant App as Application
    participant OK as Okta page
    participant S as Okta service
    U->>App: Opens the application
    App->>U: Redirect to Okta with a request
    U->>OK: Loads the sign-in page
    U->>OK: Enters username and proves identity
    OK->>S: Sends the attempt
    S->>S: Applies policies and checks methods
    S-->>OK: Result
    OK->>U: Redirect back with a one-time code
    U->>App: Delivers the code
    App->>S: Exchanges code for tokens
    S-->>App: Tokens for the session
    
Figure 3. A redirect sign-in. The application never sees the password, only a one-time code and then tokens.
  1. The application starts sign-in and names where Okta may send the person back.
  2. The person lands on the page and enters a name.
  3. The service decides which methods to ask for, based on policies.
  4. After success, the person is sent back with a short-lived code.
  5. The application swaps that code for tokens in a safe back-channel call.

With an embedded widget, steps two and three happen inside your page rather than a separate one, but the same service decides the same things. That is why the widget does not remove the need for strong policies.

Analogy

At a coat check you hand over your coat, receive a numbered ticket and later swap the ticket for the coat. The ticket alone is worthless to anyone who finds it after it expires.

12Choosing the Right Option for Each Application

Different applications deserve different answers. A decision guide keeps choices consistent.

SituationLikely fitReason
Standard web application for employeesBranded hosted page on custom domainLowest effort and strongest security
Customer website needing a polished lookCustomized hosted page, same domain familyBrand freedom without owning the sign-in code
Single-page application with strict design needsRedirect first; embedded only if truly neededAvoid owning more than required
Mobile applicationSystem browser sign-in, or supported native approachFollow current Okta mobile guidance
Kiosk or locked-down deviceEmbedded or special flow with extra controlsRedirects may be impractical
Acquired brand to be kept distinctSeparate brand on the hosted pageVisual separation without a second system
i
Tip

Write the rule once: “We use the hosted page unless a written reason says otherwise.” Exceptions then need a reason, an owner and a review date.

Analogy

A kitchen has a standard menu, a few specials and rare custom orders. Making every dish custom would exhaust the kitchen and lengthen the queue.

13Protecting the Page From Being Framed

A hostile site can load your sign-in page inside an invisible frame and trick people into clicking things they cannot see. This attack is called clickjacking.

The defense is a browser instruction sent with the page that says which sites may place it inside a frame. For a hosted sign-in page, Okta sets protections, and you should confirm what they are and not weaken them. For an embedded widget, the page that holds it is yours, so you must send the right instructions yourself.

  • Forbid framing by default. Allow only named, trusted sites when a real need exists.
  • Test it. Try loading your page inside a frame on a test site and confirm the browser refuses.
  • Check after every change. A new proxy or content delivery service can silently drop the instruction.
  • Avoid exceptions for convenience. A partner who wants to frame your sign-in should use a proper redirect instead.
Analogy

Imagine a thief placing a clear sheet over an ATM keypad with their own buttons printed on it. The person thinks they press the real buttons. A frame is that sheet, and the instruction against framing is a guard who tears it off.

14Content Security Policy for Sign-In Pages

A Content Security Policy is the browser’s list of approved sources for scripts, images and connections. It is the strongest brake on injected code.

When a page tries to load a script from a source that is not on the list, the browser refuses. This turns many attacks into harmless errors. For sign-in pages the list should be short and boring: your own domain, Okta’s domain, and nothing else unless justified.

Kind of sourceGuidance
ScriptsOnly your own and Okta’s. Avoid allowing any inline or unknown script.
Styles and fontsPrefer your own files. Third-party font services leak visits.
ImagesYour own hosting or a controlled content service.
ConnectionsOnly the Okta domains the widget needs, and your own application.
FramesNone, unless a documented partner flow requires one.

Introduce It Gently

Start in a report-only mode if the browser supports it. You collect reports of what would have been blocked, fix the surprises, then enforce. Switching on a strict policy without testing can break sign-in for everyone on a Monday morning.

Analogy

A bouncer with a guest list lets in only the names written down. A short list is easy to check, and a long list becomes a way for strangers to slip in.

15Script Injection and Third-Party Code

Anything that can run script on the sign-in page can read what people type. Guard that door closely.

Where Unwanted Script Comes From

  • Analytics and tag managers. Marketing adds them everywhere by habit, including the sign-in page.
  • Chat and survey tools. Useful elsewhere, risky where passwords are typed.
  • Compromised libraries. A supplier is attacked and a harmless script becomes harmful.
  • Unsafe use of page data. Text from web addresses or messages written to the page without care can carry attacker script.

Habits That Help

  • Keep the sign-in page free of tag managers and advertising scripts.
  • Use fixed versions of libraries and check their integrity when the browser supports it.
  • Keep an inventory of every script on the page and who approved it.
  • Test with a scanner or review before every release.
Analogy

In a pharmacy only trained staff stand behind the counter. Letting any helpful passer-by reach the medicine shelf is kind but foolish.

16Keeping Secrets Out of the Browser

Everything sent to a browser can be read by the person using it. Secrets must never travel there.

A web page, a widget settings file and a mobile app can all be opened and inspected by anyone. If a client secret, an API token or an admin key is placed in them, it is published to the world. Browser and mobile applications are therefore treated as public clients and use a method that needs no secret, normally the authorization code flow with a proof key known as PKCE.

  • No client secrets in front-end code. Use a server for anything that needs one.
  • No administrative tokens on the page. If the page can use it, so can an attacker.
  • Use short-lived tokens. A stolen token that expires soon is less harmful.
  • Scan repositories and builds for secrets. Leaks often come from a forgotten settings file.
  • Rotate quickly after a leak. Have the steps written before you need them.
Analogy

A shop window shows goods to everyone passing. You would never put the safe key in the window and trust that no one will notice.

17Redirect Addresses and Open Redirects

After sign-in, Okta sends people back to an address. If attackers can choose that address, they can steal the result.

Every application registers a list of approved return addresses. Okta only sends people to addresses on that list. The list must be exact and short. A wildcard that matches many addresses, or a test address left in production, is an open door.

Weak habitRiskBetter habit
Wildcards in return addressesAttackers use a matching address they controlList full exact addresses
Leaving localhost or test addressesTest machines receive real codesSeparate test and production applications
Unvalidated “return to” parameter on your own siteYour site becomes a launch pad for phishingAllow only addresses on your own approved list
Unencrypted addressesCodes can be interceptedRequire secure connections
Analogy

A courier delivers only to the addresses printed on your order form. If a stranger can scribble a new address on the form, the parcel ends up on their doorstep.

18Cookies, Sessions and Modern Browsers

Browsers keep tightening the rules about cookies. Sign-in designs that depended on old behavior can quietly break.

Single sign-on relies on a session cookie that Okta sets. Modern browsers restrict how cookies work across different sites, particularly when a page from one domain tries to use a cookie from another. An embedded widget on your site calling Okta’s domain is a classic case. A custom domain that shares your main domain family usually behaves better than a separate Okta address.

  • Test in every major browser, including private modes and strict privacy settings.
  • Expect change. Browser vendors update rules several times a year.
  • Prefer designs that need less cross-site cookie sharing. The redirect model fits this well.
  • Keep session lengths sensible. Long sessions help comfort but widen the window for theft.
  • Explain sign-out. People should know whether they left only one application or all of them.
Analogy

A wristband at a festival lets you move between stages. If the rules change so that some stages no longer read the band, guests are stopped at gates that were open yesterday.

19Error Messages That Help People Without Helping Attackers

An error message has two readers: the honest person who is stuck and the attacker who is probing. Write for both.

SituationUnhelpful or unsafeBetter
Wrong password“That user does not exist” or “Password wrong for this user”“We could not sign you in. Check your details or reset your password.”
Locked account“Locked after 5 failed tries”“Please try again later or use account help.”
System problemA technical code or stack of wordsA calm apology and a help link with a short reference code for support
Reset request“No account with that email”“If an account exists, we have sent instructions.”

The pattern is the same: say the same thing for different hidden causes, offer a next step, and put the detail in logs where only staff can read it. Which messages you can edit depends on your edition and engine, so confirm in current documentation.

Analogy

A receptionist who says “I cannot help with that, here is who can” protects both the guest and the building. One who says “Mr Rao left this morning at nine” has told a stranger too much.

20Sign-In for Native Mobile Apps

Phones are where many customers meet your brand. The sign-in method must feel natural there and stay safe.

Typical Approach

For native apps, a common approach is to open the sign-in page in the system browser, or a secure in-app browser tab, and return to the app with a one-time code using a registered link. The app then exchanges that code for tokens, with a proof key so a stolen code is useless. The app never sees the password, and the page benefits from the phone’s own saved sessions and password managers.

ConcernGuidance
Embedded web viewsAvoid for sign-in; they hide the address and block shared sessions
Return linksRegister exact links; prefer verified app links to custom schemes
Stored tokensUse the phone’s secure storage, never plain files
Biometric unlockUse it to protect stored tokens on the device, not to replace server-side checks
Upgrade lagOld app versions stay in use; plan for several versions at once

Okta also offers mobile software kits and native sign-in approaches whose details change, so confirm current recommendations before choosing.

Analogy

A courier hands a parcel to the person at the door and checks their face. A courier who drops parcels into any open window sends them to whoever happens to be inside.

21Bots, Attacks and Abuse on the Sign-In Page

A public sign-in page is a magnet for automated attacks. The page and the service behind it need layers of defense.

Common Attacks

  • Password guessing. Many tries against one account.
  • Credential stuffing. Stolen passwords from other sites tried at scale.
  • Account enumeration. Finding which emails have accounts.
  • Fake sign-ups. Bots creating thousands of junk accounts.
  • Phishing pages. Copies of your page on another address.

Layers of Defense

  • Strong sign-in methods. Passkeys and app-based approvals resist stolen passwords.
  • Rate limits and lockout rules. Slow down guessing without locking out the real owner for long.
  • Challenges for suspicious traffic. Okta offers features such as risk checks and bot challenges, and the options depend on edition.
  • Network and device signals. Unusual places or devices can raise the bar.
  • Monitoring. Watch failures per minute, so an attack is seen in minutes, not days.
Analogy

A bank branch has a guard, cameras, a time lock and a manager watching patterns. No one measure is enough, but together they make robbery hard and noisy.

22Accessibility: A Page Everyone Can Use

If some people cannot use the sign-in page, they cannot use anything behind it. Accessibility is a requirement, not decoration.

  • Contrast. Text and buttons must stand out from their background. Test every brand color pair.
  • Keyboard use. Every control must be reachable and usable without a mouse, in a sensible order.
  • Screen readers. Fields need clear labels and errors must be announced, not just shown in red.
  • Text size. The page must still work when text is enlarged or the screen is zoomed.
  • Time. Give enough time for people to enter codes, and warn before sessions end.
  • Plain language. Short sentences help everyone, including tired people on phones.
  • No reliance on color alone. Use icons and words as well.

Okta’s widget and hosted page are built with accessibility in mind, and customizations can break that work without anyone noticing. Test with a keyboard and a screen reader each time you change the page. Standards and legal expectations vary by country, so ask your compliance team what applies to you.

Analogy

A building with a ramp, clear signs and wide doors serves everyone, including parents with prams and delivery staff with trolleys. Access built in from the start costs less than a ramp added later.

23Honest Design: No Tricks on the Sign-In Page

People trust the sign-in page with their passwords. Clever tricks that push them toward choices they did not want break that trust.

  • No pre-ticked consent boxes for marketing messages hidden near the sign-in button.
  • No guilt wording on buttons that decline an optional step.
  • Equal weight for choices. A person should be able to say no as easily as yes.
  • Clear security prompts. Never imitate a warning to push a sale.
  • No fake urgency such as countdowns on the sign-in screen.
  • Plain explanations of why a step is requested, especially second steps and data requests.

Honest design is also safer. A page that trains people to click through odd screens prepares them to fall for a fake one. Teach customers that your real page is calm, consistent and asks only what it needs, so that anything different stands out.

Analogy

A trustworthy shopkeeper does not hide the price tag or hurry you into signing. The customer returns because the shop is the same every day.

24Language and Regional Settings

A sign-in page that speaks the person’s language is one more reason they will finish signing in.

Okta supports showing sign-in pages in many languages, and you can adjust the wording in some of them. Good localization is more than translation. It also covers dates, address formats, right-to-left writing and cultural tone.

  • Detect the language gently. Use browser settings, but let people switch.
  • Translate with care. Use professional translators for security messages, since a wrong word can cause a wrong click.
  • Test long languages. Some translations are much longer and may break the layout.
  • Check right-to-left languages. Layout, icons and punctuation all need testing.
  • Keep a glossary. Use the same translated word for the same idea everywhere.
  • Update together. When the English text changes, schedule the other languages too.
Analogy

A hotel that greets guests in their own language and posts fire exits in pictures keeps them calm and safe. Poor translations cause odd jokes in the lobby and real confusion in an emergency.

25Phones, Small Screens and Slow Networks

Most customers will sign in on a phone, often in a hurry, sometimes on a weak connection.

  • Design small first. One column, large buttons and fields that do not zoom the screen awkwardly.
  • Help the phone help the person. Allow password managers and autofill. Never block pasting.
  • Keep the page light. Compress images, avoid heavy backgrounds and load only what is needed.
  • Plan for slow networks. Show progress, avoid timeouts that are too short, and handle a dropped connection politely.
  • Respect the keyboard. Use the right keyboard type for codes and emails.
  • Test on real devices. Older phones reveal problems new ones hide.
3 s
Illustrative target for the page to become usable on a mid-range phone
1 col
Layout that works at the narrowest width
0
Fields that block paste or autofill
Analogy

A shop that works for someone carrying heavy bags with one free hand works for everyone. Designing for the hardest case makes the easy cases effortless.

26The Sign-In Widget: What It Is and How It Is Delivered

The Sign-In Widget is a ready-made piece of software that draws the sign-in screens and talks to Okta for you.

Instead of building every field, button and message from scratch, you place the widget in your page, give it a few settings, and it does the rest: showing the right screens for the policies you have set, handling errors and talking to Okta’s service. It is delivered as a software library that you can load from a content delivery network or bundle into your own application through a package manager.

Delivery methodStrengthWeakness
Load from a public content networkQuick startDepends on a third party being available and uncompromised
Bundle into your own applicationYou control the exact version and the timing of upgradesYou must watch for security releases
Host the files yourselfNo outside dependency at sign-in timeYou carry hosting and patching

For production use, most teams pin an exact version and deliver it from their own controlled source. Confirm the current delivery options and recommendations in the official documentation.

Analogy

A prefabricated kitchen arrives with cabinets, plumbing and wiring in the right places. You choose the colors, but you do not need to cut the pipes yourself.

27Versions and Upgrades of the Widget

An embedded widget is software you operate. Software ages, and aged software is where attackers go looking.

  • Pin the version. Know exactly which one runs in production.
  • Subscribe to release notes. Someone on the team must read them.
  • Plan a regular upgrade rhythm. For example, every quarter, plus emergency upgrades for security fixes.
  • Test upgrades in a safe copy first. Check every sign-in path, not only the common one.
  • Watch for breaking changes. Settings and customization points can change between major versions.
  • Keep a way back. A previous version should be one change away.
!
Warning

An embedded widget that nobody has upgraded for two years is a hidden risk. Hosted pages are updated by Okta, but embedded ones age at your pace.

Analogy

A smoke detector needs its battery changed on a schedule. A detector that has gone quiet is worse than none, because everyone believes it is working.

28Changing the Widget’s Look and Words

The widget gives you many ways to adjust appearance and text. Using them wisely keeps upgrades painless.

Levels of Change, Safest First

  1. Settings. Documented options such as logo, colors, language and which links appear.
  2. Text overrides. Replace the words on screens to match your voice, one phrase at a time.
  3. Styling. Add your own style rules for fonts, spacing and colors.
  4. Behavior hooks. Supported points where your code reacts to events, such as showing a custom message after an error.
  5. Structural changes. Moving or removing pieces of the screen. Risky, and often not supported.

Stay at the top of this list as long as you can. Each level down is more likely to break when the widget changes and more likely to damage accessibility or security.

Analogy

Rearranging furniture and changing curtains is easy to undo. Knocking down a wall needs plans, a builder and an inspection.

29Registration, Reset and Unlock Screens

Sign-in is only the happy path. The hard moments are forgotten passwords, locked accounts and first-time sign-up.

MomentWhat the person needsDesign concern
First registrationA short form, clear reasons for each questionCollect only what you need; protect against fake sign-ups
Forgot passwordA simple route to a new oneSame reply whether or not the account exists
Locked accountA route to helpDo not make recovery weaker than sign-in
New phoneA way to enroll a new methodProve identity before changing methods
Lost method entirelySupport that can verify themStrong rules; this is a favorite attacker route

Recovery paths are as important as the front door. If resetting a password needs only a guessable fact, attackers will use the reset path instead of guessing the password. Review each recovery option with the same suspicion you apply to sign-in. Self-service features and their settings vary by edition, so confirm what you have.

Analogy

A house with a strong front door and a loose back window is not secure. The locksmith who forgets the window has not finished the job.

30Multi-Factor Screens and Passwordless Sign-In

Extra proof screens are where many people get stuck. Good design makes strong security feel simple.

  • Explain why. One friendly sentence, such as “We ask for a second step to protect your account,” reduces complaints.
  • Offer clear choices. Present the safest methods first and describe each plainly.
  • Make enrollment easy. Step-by-step screens with pictures help people set up an authenticator or passkey.
  • Provide a backup. Encourage people to enroll more than one method.
  • Avoid weak fallbacks. Methods that can be tricked by a phone call or message should not be the easy way around.
  • Prefer phishing-resistant methods. Passkeys and similar methods bind sign-in to the real address, so a fake page cannot reuse them.

Which methods are available, and how the screens look, depends on your Okta engine and edition. In an embedded widget, make sure the version you run supports the methods your policies require.

Analogy

An airport security line moves fastest when signs explain each step. Travelers do not mind the check, only the confusion.

31Social, Enterprise and Partner Sign-In Buttons

Many pages offer buttons such as “Continue with a work account” or “Continue with another provider.” These shape trust and routing.

  • Show only what a person should choose. Too many buttons overwhelm people, and unneeded ones widen the attack surface.
  • Use recognizable wording. Provider names and logos should follow that provider’s brand rules.
  • Route by address when possible. Okta can send people from a company email domain to their own company sign-in, so they never see a long list.
  • Think about account linking. Decide how a social sign-in is matched to an existing account, and prevent takeover by a matching email that was never verified.
  • Plan for provider outages. If an outside provider is down, people need another way in.
Analogy

A building with signs for each tenant sends visitors to the right floor. A lobby with fifty identical doors leaves them wandering.

32Several Brands, Several Pages

Larger companies run more than one brand. Each should feel right while the system behind stays simple.

Option

Several brands in one org

Okta can hold more than one brand, each with its own look and sometimes its own domain. Applications are linked to the brand they should show. Confirm limits for your edition.

Option

Separate orgs

Complete separation of users and rules. Useful for acquisitions or legal separation, at the cost of more administration.

Option

One brand, many messages

Keep one page and vary the welcome text by application. Simplest, and often enough.

Whichever you choose, write a table that says which application shows which brand, who approves changes and where the source files are kept. Without that table, brands drift and the sign-in estate becomes a puzzle.

Analogy

A hotel group may run luxury and budget hotels under one booking system. Each lobby looks different, but one team handles reservations and one set of rules protects guests.

33Emails, Messages and Error Pages

The sign-in journey includes messages and pages outside the sign-in screen. A mismatch there is jarring and sometimes dangerous.

  • Email templates. Welcome, reset and verification emails should carry your name, voice and a clear way to report suspicious messages.
  • Text messages. Keep them short, say who is asking, and never ask people to share a code with a person who calls them.
  • Error pages. Okta lets you brand error pages. Make them calm and helpful, with a way to reach support.
  • Sign-out pages. Say what ended and where to go next.
  • Sender trust. Set up sender checks for your email domain so that messages are not marked as spam or forged.

Phishers copy these messages. Using the same wording and the same addresses every time helps people notice a fake. Changing them often teaches people to ignore differences.

Analogy

A bank that always signs letters the same way and always uses the same envelope lets customers spot a forged one at once. Variation helps only the forger.

34Environments: Development, Test and Production

Changes to a sign-in page should never be tried first on real customers.

EnvironmentPurposeRules
DevelopmentTry ideas freelyFake users only; no real data
Test or stagingRehearse the exact releaseSame settings as production, safe data
ProductionReal peopleChange only through approved releases
  • Use separate Okta orgs for test and production where possible, so a mistake cannot reach real people.
  • Keep the settings of all environments in a record, and compare them before release.
  • Use separate applications and return addresses for each environment.
  • Remember that a test page can still be found by attackers. Give it the same protections.
Analogy

A theater holds a dress rehearsal before opening night. Learning that a door sticks on opening night is a lesson that costs the whole audience.

35A Testing Strategy for Sign-In Pages

A sign-in page has many paths. A written test plan keeps rare ones from being forgotten.

AreaExamples to test
Happy pathsSign-in with each method, sign-out, return to the right page
RecoveryReset, unlock, new device, lost method
ErrorsWrong password, expired code, offline network, service down
Browsers and devicesLatest and previous versions, phones, tablets, privacy modes
AccessibilityKeyboard only, screen reader, zoom, contrast
LanguagesEvery supported language, including long and right-to-left ones
SecurityFraming, script sources, return addresses, error wording
PerformanceLoad time on slow networks, size of files

Automate what you can, such as checks that run after each change. Keep a short manual checklist for what machines do poorly: reading a message as a confused person would. Run the full set before every release and after every Okta change that affects the page.

Analogy

A pilot runs through a checklist before every flight, however many times they have flown. The list exists because people forget small things when they feel sure.

36Keeping Up With Browser and Okta Changes

Neither browsers nor Okta stand still. A page that was perfect last year may be quietly breaking this year.

Source of changeHow to stay informedWhat to do
Okta releasesRelease notes and admin noticesRead monthly; test preview features in staging
Widget versionsPackage release feedPlan upgrades on a calendar
Browser rulesVendor announcements and test buildsRun the test plan against upcoming versions
Security advisoriesVendor alerts and trusted newsJudge urgency; fix quickly if exposed
Standards for accessibility and privacySpecialist teams and legal updatesReview the page yearly

Give one person the duty of reading these sources each month and writing three lines for the team: what changed, whether it affects us, and what we will do. Small, regular attention beats a yearly scramble.

Analogy

A sailor who checks the forecast each morning changes course early and calmly. One who ignores it meets the storm at sea with no plan.

37Rolling Out Changes Safely

Even tested changes can surprise real traffic. Release in small steps with a way back.

1

Review

A second person reads the change and its test results.

2

Rehearse in staging

Run the full test plan on an exact copy.

3

Release to a small group

Staff or a small share of users, with someone watching the dashboards.

4

Widen slowly

Increase the share when sign-in success and support volume look normal.

5

Keep the way back ready

Know exactly how to restore the previous version, and who can do it at night.

Choose quiet times. Avoid releases just before holidays, sales or other busy periods. Tell support in advance, so a spike in questions is expected.

Analogy

When a bridge is repaired, one lane is closed at a time and traffic is watched. Closing every lane on a hunch would trap the town.

38Okta Features and Plans: What to Confirm

Not every option is available on every plan, and names change. A short confirmation list prevents expensive surprises.

  • Whether your plan allows custom domains and how many brands.
  • Whether the hosted page allows template editing, custom styling or scripts.
  • Which engine you run, and which widget versions match it.
  • Which sign-in methods your plan supports and how they appear on screen.
  • Which error, email and sign-out pages can be customized.
  • Which risk and bot protections are included.
  • Limits on requests, including those that apply to sign-in traffic.
  • What support covers for customized or embedded pages.

Write the answers, with the date and the document you read, in a short page that your team can find. When behavior surprises you later, that page tells you whether you misread the rules or the rules changed.

Analogy

Before buying a gadget, you check that the accessories fit. A short check at the shop is much cheaper than returning a box at home.

39The Sign-In Page and Zero Trust

Zero trust means no request is trusted only because of where it came from. The sign-in page is where that idea first meets a real person.

What the Page Contributes

The page does not make the trust decision alone, but it gathers the evidence that the service uses: who the person claims to be, which proof they offer, and clues about the browser and device. A page that is easy to spoof, easy to script or easy to bypass weakens the evidence from the first step.

  • Show the real address. A familiar custom domain helps people notice fakes.
  • Prefer phishing-resistant methods. Passkeys check the address of the page, so a copy elsewhere gets nothing.
  • Ask for more when risk rises. New device, new place or sensitive application can trigger stronger proof through policy.
  • Do not trust the page alone. Applications still verify tokens and check permissions on every request.
  • Log the evidence. What was asked and what was answered should be traceable later.

Which risk signals and policy options exist depends on your Okta edition, so confirm them in current documentation.

Analogy

A concierge checks a guest at the front desk, but the lift, the floor and the room door each check again. The front desk is the beginning of trust, not the end of it.

40Working With Agencies and Vendors on the Page

Design agencies, consultants and outside developers often touch the sign-in page. They bring skill, and they also bring access.

  • Give a brief, not the keys. Provide the brand guide, the rules about scripts and the test plan. Let them work in staging with fake users.
  • Limit access. Give outside people the smallest Okta role that lets them do the job, and remove it on the last day.
  • Review everything they deliver. Check for added scripts, tracking, copied code and unusual network calls.
  • Own the source. Contracts should say the code and design files belong to you and are handed over in full.
  • Ask for documentation. What was changed, why, and how to undo it.
  • Plan the handover. Someone on your team must be able to maintain the work when the contract ends.

A short checklist given at the start of every engagement saves arguments at the end, and keeps well-meaning helpers from adding a chat tool or a tracking tag to the one page where it matters most.

Analogy

A builder renovating your kitchen may be a fine craftsperson, and you still keep the keys to the rest of the house and ask for the plans when the work is done.

41Ownership and Governance of the Sign-In Experience

The sign-in page touches marketing, security, support, legal and engineering. When everyone owns it, nobody does.

TeamWhat it decides
Identity engineering (owner)Technical design, widget versions, releases, runbook
SecurityPolicies, headers, script rules, review of risky changes
Brand and marketingLogo, colors, tone of voice, approved text
SupportCommon problems, help wording, feedback from callers
Legal and privacyConsent wording, data collected, regional rules
Accessibility leadStandards, testing, sign-off

Name one accountable owner and one deputy. Keep a change record with who asked, who approved and when. Meet quarterly to review the page, the incidents and the requests waiting.

Analogy

A shared front garden needs one person to hold the keys to the gate and call the gardener. Without that, the roses are watered twice and the hedge never trimmed.

42Helping Callers: A Guide for Support Teams

Support staff hear about sign-in trouble before anyone else. Equipping them well turns complaints into clues.

  • Give them a view of the page. They should see what customers see in each language and brand.
  • Teach the common causes. Old browsers, saved wrong passwords, clock problems on phones, ad blockers and privacy settings.
  • Script the identity check. Support must verify callers before changing anything, and the steps must be as strict as the rest of the system.
  • Give a way to escalate. One simple form with time, address, browser and screen text.
  • Collect patterns. A weekly note of the top five complaints guides what to fix next.
  • Protect against social engineering. Attackers call support pretending to be locked-out customers. Staff must be allowed to say no.
Analogy

A good ward nurse notices small changes in patients early. Reports from the ward are the best early warning a hospital has.

43Monitoring, Logging and Metrics

You cannot fix what you cannot see. A handful of measures tell you whether the front door is healthy.

MeasureWhat it tells you
Sign-in success rateOverall health; sudden drops mean trouble
Failures by reasonAttacks, broken methods, user confusion
Time to complete sign-inFriction and slowness
Page load timeWeight and network issues
Reset and unlock requestsHow often people are stuck
Calls to support about sign-inHidden user pain
Browser errors from the pageBroken scripts or blocked sources

Okta’s System Log records sign-in events, and you can stream it to your own monitoring platform. For embedded pages, add measures from the browser side too, taking care not to collect passwords or more personal data than needed. Event names and streaming options change, so confirm them in current documentation.

Analogy

A car has a fuel gauge, a temperature dial and warning lights. Driving without them works until the day it does not, and then the failure comes without notice.

44Alerts and Incident Response

When sign-in fails, every other system becomes unreachable. Alerts must be quick, and the response must be rehearsed.

Alerts Worth Having

  • Sign-in success rate drops sharply for ten minutes.
  • Failed sign-ins spike from one network or country.
  • Certificate within thirty days of expiry.
  • Browser errors from the page rise after a release.
  • Domain or address records change unexpectedly.

When Something Breaks

1

Confirm and announce

Check status pages from Okta and your own monitors. Tell support and leaders early, even with few facts.

2

Stop the bleeding

Roll back the latest change if one happened. Switch to a fallback page or method if you have one.

3

Find the cause

Use logs, recent changes and timelines.

4

Fix and verify

Apply the fix, then test every major path.

5

Learn

Write a calm review: what happened, what helped, what changes.

Analogy

A fire drill is dull until the real alarm rings. The people who practiced walk out calmly, and the others discover where the doors are.

45Failure Scenarios and Recovery

Thinking about failure before it happens turns panic into procedure.

flowchart TD
    S["Sign-in is failing"] --> Q1{"Is Okta reporting an incident?"}
    Q1 -->|"Yes"| W["Follow status updates and use fallback plan"]
    Q1 -->|"No"| Q2{"Did we release a change recently?"}
    Q2 -->|"Yes"| R["Roll back the change"]
    Q2 -->|"No"| Q3{"Is the certificate or address record wrong?"}
    Q3 -->|"Yes"| F["Fix certificate or records"]
    Q3 -->|"No"| Q4{"Is an outside script or provider failing?"}
    Q4 -->|"Yes"| B["Remove or bypass that dependency"]
    Q4 -->|"No"| I["Escalate to deeper investigation with logs"]
    
Figure 4. A short decision tree for the first minutes of a sign-in outage.
ScenarioEffectPreparation
Certificate expiresBrowsers refuse the pageAlerts at thirty and seven days; named renewer
Address record deleted by mistakePage disappearsChange approval; stored copy of records
Widget upgrade breaks a screenSome people cannot finishStaged rollout; quick rollback
Third-party script is downPage hangs while waitingNo outside scripts on the page
Okta service problemNo sign-in at allStatus subscriptions; communication plan
Attack floods the pageReal users blocked or slowedRate limits; challenge rules; contact path with Okta
Analogy

A hospital has a backup generator tested monthly. Nobody hopes to use it, but everyone is glad it is there when the lights go out.

46Performance and Scale

A slow sign-in page costs customers silently. People rarely complain; they simply leave.

  • Keep the page small. Fewer and lighter files load faster, especially on mobile networks.
  • Use caching wisely. Static files such as images and style sheets can be cached; the sign-in logic cannot.
  • Serve from nearby. A content delivery service reduces distance for far-away users.
  • Avoid blocking requests. Do not make the page wait for analytics or fonts from other sites.
  • Plan for spikes. Product launches, sales and morning log-on peaks multiply traffic. Ask Okta about limits that apply to your org and test your peak.
  • Watch sign-in time end to end. The slowest step is usually not the page, but an extra method or a slow policy.
2 million
Illustrative customers at Kestrel Outdoor Gear
8x
Illustrative morning peak on sale day versus an average hour
1 s
Extra delay that may cost real sign-ins, so measure it
Analogy

A shop with one till and a long queue loses customers while the shelves are full. Capacity at the door matters as much as stock inside.

47Privacy, Consent and Data on the Page

The sign-in page sees names, emails and sometimes locations. What it collects, shows and stores needs thought.

!
General orientation only

This chapter is general guidance, not legal advice. Privacy and consent rules differ by country and industry, so ask your privacy and legal teams what applies to you.

  • Collect the minimum. Every extra question lowers completion and raises responsibility.
  • Be clear about purpose. Say why you ask, in plain words, next to the question.
  • Show links to terms and privacy notices where people can reach them before they commit.
  • Handle consent honestly. Do not pre-tick boxes that need a real choice.
  • Be careful with analytics. Page analytics can capture typed data or addresses with personal details in them.
  • Limit log contents and retention. Keep what is needed for security and audit, and no more.
  • Remember children. If young people may use your service, special rules often apply.
Analogy

A front-desk clerk asks only for what is needed to book a room. A clerk who asks about your family, salary and hobbies makes guests uneasy, and the answers become something that must be guarded.

48Audit Evidence and Compliance

Auditors do not only ask whether the page is secure. They ask how you know, and how you would prove it.

!
General orientation only

Compliance requirements depend on your industry and region. Treat this chapter as a starting point and confirm specifics with your compliance team.

Auditor questionEvidence to keep
Who may change the sign-in page?Role lists, change approvals
What changed, when and why?Release records, reviews, test results
Is the page protected against common attacks?Header checks, scan results, security reviews
Are strong methods required?Policy settings and screenshots with dates
Can you detect and respond to abuse?Alerts, incident records, drills
Is the page accessible?Test reports and fixes
How are certificates and domains managed?Inventory, renewal records

Collect evidence as a habit, not in a panic. Save one screenshot or export per control per quarter, with the date and the name of the person who checked it.

Analogy

A restaurant shows its inspection certificate on the wall because it kept records all year. Last-minute cleaning impresses no one who knows what to look for.

49The Cost of Customization

Every customization has a price in time, testing and risk. Seeing the price helps you pick wisely.

ChoiceBuild effortYearly upkeepRisk carried
Default pageNoneNoneLow, but low trust
Branding and domainDaysCertificate and brand reviewsLow
Template and text editsWeeksRetest after every Okta changeMedium
Embedded widgetWeeks to monthsUpgrades, security reviews, browser testingMedium to high
Fully custom screensMonthsA dedicated teamHigh

Include people’s time and attention in the price. A page that needs two engineers every time a browser changes is a much more expensive page than its first estimate suggested. Ask what you will stop doing in order to keep it alive.

Analogy

A garden of wildflowers needs little care. A rose garden is beautiful and demands pruning, feeding and watching. Choose the garden you have time to tend.

50Advantages, Disadvantages and Trade-offs

Customization is a trade: a better fit for more work and more risk.

What customization buys

  • A page that matches your brand and builds trust
  • Wording and flows tuned to your customers
  • Fewer support calls caused by confusion
  • A smooth path inside your own application when embedded
  • Consistent look across emails, errors and sign-in

What it costs

  • More to test after every Okta change
  • Security duties that Okta would otherwise carry
  • Upgrade work for embedded widgets
  • Risk of breaking accessibility or language support
  • Knowledge that lives in a few heads
Trade-offLeaning toward freedomLeaning toward safety
Hosted vs embeddedEmbeddedHosted
Template edits vs settings onlyEditsSettings
Many sign-in choices vs fewManyFew
Frequent upgrades vs rareFrequent, with more testingRare, with more age
Analogy

A tailored suit fits better than one off the rack, and costs more to make and to alter. For some occasions it is worth it, and for others it is wasted.

51Design Patterns and Anti-Patterns

Teams keep rediscovering the same good and bad habits. Naming them helps you follow the first and avoid the second.

PAT-1: Hosted first, exceptions writtenPattern

Use the branded hosted page on a custom domain by default. Any embedded widget needs a written reason, an owner and a review date.

PAT-2: Pinned and owned widgetPattern

When embedding, pin the exact version, serve it from a controlled source, subscribe to release notes and upgrade on a calendar.

PAT-3: Quiet page, short allow-listPattern

No advertising or tracking scripts on the sign-in page. A Content Security Policy that allows only your own and Okta’s sources.

ANTI-1: The copy-paste pageAnti-pattern

Copying an old version of the sign-in code into a website and never touching it again. It misses fixes, headers and new methods.

ANTI-2: Helpful error messagesAnti-pattern

Messages that reveal whether an account exists or why a check failed. Kind to the honest person, and kinder to the attacker.

ANTI-3: Branding by many handsAnti-pattern

Marketing, a vendor and three developers each change the page when they like. Nobody can say what is live or why.

Analogy

Recipes handed down in a family are sorted into the ones that work and the ones that burned the kitchen. Writing both down saves the next cook from the burns.

52Common Myths About Custom Sign-In Pages

Some beliefs sound sensible and lead to poor decisions.

MythReality
A branded page is just cosmetic.Familiar branding changes how safe people feel and how well they spot fake pages.
Embedding the widget is more secure because we control it.Control also means responsibility. Mistakes in your page are your mistakes.
Okta handles all security, so our page cannot be the weak point.Okta secures its service. Headers, scripts, redirects and surrounding pages are yours when you embed or customize.
More sign-in options always help.Too many choices confuse people and widen the attack surface.
Hiding the error reason annoys users.Calm, consistent messages with a help path protect users and satisfy them.
Accessibility is a later polish.An inaccessible page blocks real people and creates legal and reputational risk.
Once launched, the page is finished.Browsers, Okta and attackers keep changing, and the page needs care every quarter.
A test environment does not need protection.Attackers find test pages and use them to learn about production.
Analogy

Old sailors’ sayings about the weather are partly true and partly dangerous. A wise captain also reads the barometer.

53Best Practices Checklist

A single page to run through before launch and every quarter after.

  • We chose hosted or embedded on purpose, and wrote the reason.
  • The page runs on our own domain with a tracked certificate.
  • Branding is approved, consistent and stored in a known place.
  • We know our Okta engine and widget version, and we pin them.
  • Framing is forbidden except for named, documented cases.
  • A Content Security Policy limits scripts and connections to trusted sources.
  • No tracking, advertising or unknown scripts run on the page.
  • No secrets or admin tokens are in browser code.
  • Return addresses are exact, secure and separated by environment.
  • Error messages are calm, consistent and reveal nothing secret.
  • Rate limits and bot protections are on, and failures are monitored.
  • The page passes keyboard, screen reader and contrast checks.
  • Every supported language is tested, including long and right-to-left.
  • Recovery routes are as strong as sign-in.
  • Changes are reviewed, staged, rolled out slowly and reversible.
  • Owners, deputies and the review calendar are written down.
  • Evidence for audit is saved every quarter.
Analogy

A pilot’s pre-flight list, a surgeon’s pre-op list and a builder’s inspection list all exist because even experts forget. The list is not an insult, but a safety net.

54A Design Exercise: Kestrel’s Sign-In From Start to Finish

Let us walk through Kestrel Outdoor Gear’s problem from the start of this guide and fix it in order.

1

Take stock

List every place customers sign in: website, mobile app, partner portal, support site. Record page address, widget version and who owns each.

2

Choose the model

The website and partner portal move to the branded hosted page on a Kestrel domain. The mobile app uses the system browser flow. One embedded page remains for the checkout flow, with a written exception.

3

Brand and domain

Apply the new logo, colors and welcome text. Set up the custom domain, certificate alerts and email sender checks.

4

Harden

Confirm framing protection, set a strict script allow-list, remove marketing tags from the sign-in page and tighten return addresses.

5

Fix messages and recovery

Rewrite error messages to be consistent. Review reset and unlock paths for strength. Translate into the main customer languages.

6

Test and release in steps

Run the test plan in staging, release to staff, then ten percent of customers, then everyone, watching success rates.

7

Operate

Dashboards, alerts, a quarterly review and an upgrade calendar for the one embedded widget.

flowchart LR
    W["Kestrel website"] -->|"Redirect"| H["Branded hosted page on Kestrel domain"]
    M["Mobile app"] -->|"System browser"| H
    P["Partner portal"] -->|"Redirect"| H
    C["Checkout page"] -->|"Embedded widget by exception"| E["Pinned widget version"]
    H --> OK["Okta service and policies"]
    E --> OK
    OK --> LOG["Logs and alerts"]
    
Figure 5. Kestrel’s target design: one default path and one documented exception.
Analogy

Tidying a messy workshop starts with counting the tools, deciding where each belongs, then putting a label on each shelf. The sorted workshop stays tidy only if someone keeps the labels honest.

55Real-World Scenarios and Worked Numbers

Numbers make the stakes visible. All figures here are illustrative, built to show the thinking and not to predict your results.

Scenario 1: The Slow Page

Kestrel’s old sign-in page took five seconds to become usable on mid-range phones because of a large background image and two marketing scripts. Suppose 400,000 sign-in attempts happen each month and the slow page causes three in a hundred people to give up. That is 12,000 lost sign-ins a month. After the redesign, the page loads in two seconds and the abandon rate falls to one in a hundred, or 4,000. The difference of 8,000 sign-ins a month is a direct sales and support gain.

Scenario 2: The Certificate

The sign-in domain certificate expired on a Sunday night. Browsers showed a warning to everyone for six hours until an engineer was found. If an average hour carries 600 sign-ins, that is 3,600 failed attempts, a flood of calls and a lot of lost trust. An alert at thirty days and seven days, with a named renewer, would have cost almost nothing.

12,000
Monthly give-ups with the slow page (3 percent of 400,000)
4,000
Monthly give-ups after the redesign (1 percent)
3,600
Failed sign-ins in a six-hour certificate outage at 600 per hour

Scenario 3: The Friendly Error

A test showed that the old reset page replied differently for known and unknown emails. An attacker script checked 50,000 addresses in one afternoon and found 9,000 real customers to target with phishing. A single consistent message removed that advantage at once.

Analogy

A shopkeeper who counts how many customers walk away at the door learns more than one who only counts sales. Silent losses are the expensive ones.

56Measuring the Value of a Better Sign-In Page

Leaders fund what they can see. A few simple measures show whether the work is paying off.

MeasureWhat it showsHealthy direction
Sign-in completion rateHow many who start also finishRising
Time to sign inFrictionFalling
Support calls about sign-inCustomer painFalling
Reset requests per thousand usersPassword troubleFalling as passkeys spread
Share of people using strong methodsSecurity strengthRising
Pages outside the registerGovernance gapsZero
Days since last widget upgradeAgeing riskWithin the calendar

Report once a quarter on one page, with a short story such as the sale weekend when sign-ins stayed smooth. Numbers persuade the head, and stories persuade the heart.

Analogy

A gardener checks soil, growth and weeds each season. If nobody looks, the garden seems fine from the path while the roots are failing.

57A Maturity Path and a 90-Day Plan

You do not need to do everything at once. A path of small, safe steps works better than a big promise.

LevelWhat it looks like
1. DefaultStock Okta page, no branding, unknown owners
2. BrandedLogo, colors and domain set; basic messages edited
3. HardenedScript rules, framing protection, return-address review, consistent errors
4. MeasuredDashboards, alerts, test plan, release process
5. GovernedOwners, change records, evidence, regular reviews, upgrade calendar

The First 90 Days

1

Days 1 to 15: Discover

List every sign-in page, its owner, its Okta engine and widget version, its domain and certificate dates.

2

Days 16 to 45: Fix the biggest risks

Remove unneeded scripts, check framing and return addresses, rewrite error messages, set certificate alerts.

3

Days 46 to 70: Brand and simplify

Apply approved branding, move simple cases to the hosted page, write the decision rule.

4

Days 71 to 90: Make it routine

Dashboards, test plan, change process, first quarterly review and an upgrade calendar.

Analogy

Learning to cook starts with boiling water and ends with a feast. Nobody begins with the feast, and the early lessons are the ones that prevent burns.

58A Troubleshooting Playbook

When a customer says “I cannot sign in,” a steady routine finds the cause faster than guessing.

SymptomLikely causeFirst check
Browser shows a security warningCertificate or domain problemCertificate dates and address records
Blank page or endless spinnerBlocked script or failed loadBrowser console messages and script policy
Sign-in loops back to the startCookie or return-address issueBrowser privacy settings, registered return addresses
Some people only are blockedBrowser version, language or policy differenceCompare browser, language and group
A method is missing on the screenWidget version does not support it or policy changedWidget version, engine and policy rules
Page looks broken after an upgradeCustom styling clashes with new markupDisable custom styling and retest
Strange text in one languageMissing or old translationLanguage files and overrides
Many failures from one placeAttack or misconfigured automationSystem Log and network source

The Routine

  • Ask for the exact time, address, browser and what the person saw.
  • Find the matching events in the logs.
  • Reproduce it in staging with the same browser and language.
  • Change one thing at a time.
  • Write down the cause and add a check so it is caught next time.
Analogy

A doctor asks where it hurts, since when and what was eaten, before ordering tests. A short, steady list of questions beats a long list of guesses.

59A Quick Decision Guide: Do I Need Anything Custom?

When someone asks for a custom sign-in change, ask the same short questions in the same order.

flowchart TD
    A["Request for a custom change"] --> B{"Can branding settings do it?"}
    B -->|"Yes"| C["Use branding settings"]
    B -->|"No"| D{"Can a supported text or template setting do it?"}
    D -->|"Yes"| E["Use the supported setting and document it"]
    D -->|"No"| F{"Is there a strong business reason for a custom edit?"}
    F -->|"No"| G["Decline and explain"]
    F -->|"Yes"| H{"Is hosted page editing enough?"}
    H -->|"Yes"| I["Edit the hosted page with review and tests"]
    H -->|"No"| J["Embedded widget with owner, pinned version and review date"]
    
Figure 6. Each step down costs more testing and brings more responsibility.
  • If you cannot explain the benefit in one sentence, it is not ready.
  • If the change cannot be tested, do not ship it.
  • If it adds a script from outside, the answer is almost always no.
  • If it changes error text, ask security to review it.
Analogy

Before cutting a new door in a wall, you check whether an existing door could be widened. The simplest fix that works is usually the safest.

60Small Details That Decide Success

Most sign-in projects stumble on small details that no one wrote down.

1

Favicon and page title

The browser tab is the first thing people see. A missing icon or a stock title looks suspicious.

2

Password managers

Field labels and structure affect whether managers fill them. Test with the most popular ones.

3

Back button behavior

People press back in the middle of sign-in. Make sure it leads somewhere sensible.

4

Links in emails

Reset links should open the right brand, the right language and expire clearly.

5

Dark mode

Logos with transparent backgrounds can vanish in dark settings.

6

Time zones and clocks

One-time codes depend on device clocks. Explain what to do if codes seem to fail.

7

Support access

Support teams need a view of what customers see, in every language, to help properly.

Analogy

A hotel is judged by clean towels, a working key card and a quiet corridor more than by its marble lobby. The small things are what guests remember.

61A Week in the Life of a Healthy Sign-In Program

Success looks quiet: small routines, few surprises and no heroic rescues.

1

Monday: dashboard glance

Success rate and page load times are in range. Nothing needs doing.

2

Tuesday: small change

Marketing asks for a new welcome line. It passes review, reaches staging, then a small share of live users.

3

Wednesday: browser update

A new browser version arrives. The automated tests run overnight and report one cosmetic issue, fixed the same day.

4

Thursday: a noisy attack

Failures spike from one network. Rate limits hold, and the alert prompts a quick look and a block rule.

5

Friday: certificate check

The renewal alert fires at thirty days. The named owner renews it in ten minutes.

Notice what is missing: no weekend outage, no mystery pages and nobody asking who built this three years ago. That calm is the real product of careful work.

Analogy

A well-run railway is boring. Trains leave on time and signals work. The boredom is the sign that careful work happens every day behind the scenes.

62Common Mistakes in the First Year

Teams repeat the same early mistakes. Knowing them in advance is a cheap kind of experience.

MistakeWhat it causesCure
Embedding first because it looks easyOwnership of security and upgradesStart with the hosted page
Leaving marketing tags on the sign-in pageRisk of data theft and slow loadsKeep the page free of them
Skipping accessibility checksLocked-out usersTest with keyboard and screen reader
Forgetting certificate renewalsWeekend outageAlerts and a named owner
One environment onlyTesting on real customersStaging that mirrors production
Weak recovery pathsAccount takeover through resetReview recovery as strictly as sign-in
No record of customizationsSurprises after each upgradeKeep a customization register
No review after launchSlow decayQuarterly review on the calendar
Analogy

New drivers repeat the same small errors: following too close, forgetting mirrors. Hearing about them does not replace practice but shortens the learning.

63Getting Colleagues on Board: Change Management

A secure, well-built page that others work around protects nothing. People follow the path that is easiest and best explained.

  • Explain benefits in their terms. Marketing hears “consistent brand and higher completion.” Security hears “fewer attack routes.” Support hears “fewer confused calls.”
  • Give a design guide. One page with approved colors, wording and rules about scripts and exceptions.
  • Provide a fast request route. If the official way takes months, people will build their own page.
  • Pilot with a friendly team. Collect feedback and a success story.
  • Close old paths. Retire old copied pages and redirect them.
  • Report progress. Share sign-in success rates and support call reductions with leaders.
Analogy

When a town builds a new bridge, it also closes the old rickety crossing and puts up signs. A new road that nobody is told about leaves traffic on the old, dangerous one.

64Retiring Old Pages

Old sign-in pages linger on forgotten servers, in old emails and on partner sites. Each one is a door that nobody watches.

  • Find them. Search your code, your domains, your email templates and your partners’ documents.
  • Check their traffic. Pages still receiving sign-ins need a migration plan, not a switch-off.
  • Redirect gently. Send old addresses to the new page for a time, with a notice.
  • Remove registered return addresses that no longer belong to a live page.
  • Remove old credentials and keys. Anything that ever sat on an old page may be copied.
  • Watch for takeover. An unused address that points nowhere can sometimes be claimed by someone else.
  • Record the retirement. Date, reason and approver, for audit.
Analogy

When a shop closes, the owner removes the sign, returns the keys and cancels the electricity. Leaving the lights on and the door unlocked invites trouble long after the business is gone.

65Documentation That Survives Staff Changes

Engineers move on. A sign-in page that only one person understands is a risk with a name and a leaving date.

Question a stranger would askWhere the answer lives
Which pages exist and who owns each?The sign-in register
Why is this page embedded?The written exception
What customizations were made?The customization register
How do I release a change?The release guide
How do I roll back?The rollback steps
Where are the dashboards and alerts?The runbook
When do certificates and domains renew?The renewal calendar

Once a year, ask someone new to follow the runbook in staging. Wherever they stumble, the document needs work.

Analogy

A ship’s log lets a new captain understand the voyage so far. Without it, the new captain learns about the leak by getting wet.

66Glossary of Terms

Quick plain-language meanings for the words used in this guide.

TermMeaning
AccessibilityMaking a page usable by people with different abilities and tools
Authorization codeA short-lived code exchanged for tokens after sign-in
BrandA saved set of logo, colors and images applied to pages
ClickjackingTricking a person into clicking a hidden page inside a frame
Content Security PolicyA browser rule listing the approved sources for page content
CORSBrowser rules about which sites may call which services
Credential stuffingTrying stolen passwords from other sites at scale
Custom domainYour own web address used for Okta pages
Embedded widgetOkta’s sign-in component placed inside your own page
EnumerationDiscovering which accounts exist by watching differing replies
Hosted pageA sign-in page served by Okta
Identity EngineOkta’s newer, more flexible sign-in logic
LocalizationAdapting a page to language and region
PasskeyA phishing-resistant sign-in method tied to your device and the real address
PKCEA proof key that protects code exchange for public clients
Public clientAn application that cannot keep a secret, such as a browser or mobile app
Redirect URIAn approved address where Okta sends people after sign-in
Report-only modeA browser mode that reports policy violations without blocking
Sign-In WidgetOkta’s ready-made sign-in software component
System LogOkta’s record of events such as sign-ins
TemplateThe editable layout of a page
Analogy

A traveler’s phrasebook does not make you fluent, but it stops misunderstandings at the market. A glossary does the same at the meeting.

67Frequently Asked Questions

Short answers to questions that come up in almost every project.

Q1Should we use the hosted page or embed the widget?
Start with the hosted page on a custom domain. It is maintained by Okta, works well with single sign-on and keeps passwords away from your application. Embed only when a clear need exists, and write down the reason, the owner and a review date.
Q2Is a custom domain really necessary?
It is not required to sign in, but it builds trust, makes links consistent and helps with cookie behavior in modern browsers. Confirm what your plan allows and the certificate options.
Q3Can we add analytics to the sign-in page?
Be very cautious. Scripts on the page can read what people type. If measurement is needed, prefer server-side logs and carefully reviewed, minimal tools, and never send personal data or secrets to outside services.
Q4Why not show clear errors like “this email does not exist”?
Clear errors help attackers find real accounts. Use a consistent message and a help link, and keep details in logs for staff.
Q5How often should we upgrade the widget?
On a regular calendar, for example each quarter, with faster upgrades for security fixes. Test in staging first and keep the previous version ready for rollback.
Q6Does customizing the page make Okta support harder?
It can. Support for heavily customized pages may be limited, so ask your Okta contacts what is covered, and keep a clear record of every change so problems can be reproduced.
Q7What about mobile apps?
Follow Okta’s current mobile guidance. In general, sign-in through the system browser with a proof key is a common approach, but options evolve, so confirm in the documentation.
Q8How do we handle several brands?
Use separate brands in one org where your plan allows, or separate orgs when legal or data separation requires it. Keep a table of which application shows which brand and who approves changes.
Q9What should we test before each release?
Every sign-in method, recovery routes, errors, main browsers and devices, accessibility, each supported language, security headers and load time. Automate what you can and keep a short manual list.
Q10Who should own the sign-in page?
One accountable team, usually identity engineering, with a deputy. Security, brand, support, legal and accessibility each advise and approve within their field.
Analogy

A good help desk answers the same ten questions every day with the same calm sentences. Writing the answers down is how a team stays consistent.

68Summary and Key Takeaways

The sign-in page is both the front door and the first line of defense. Good customization makes it welcoming without making it weaker.

Key Takeaways

  • Start hosted. A branded hosted page on your own domain gives most of the benefit with the least risk. Embed only with a written reason.
  • Own what you embed. Pin the widget version, upgrade on a calendar, serve it from a controlled source and test every release.
  • Protect the page. Forbid framing, limit scripts with a Content Security Policy, keep tracking off the page, and keep secrets out of browsers.
  • Be careful with words. Use calm, consistent errors, strong recovery paths and clear, translated, accessible text.
  • Check redirects and cookies. Exact return addresses, separate environments and tests in every major browser.
  • Release slowly. Review, stage, roll out in steps, watch sign-in success and keep a rollback ready.
  • Govern it. One owner, a customization register, dashboards, alerts, quarterly reviews and saved evidence.