大网数据广告活动
账户与安全

Authorization for web pages

· 52CE 我爱测

Authorization sets what resources you have access to.

Authorization sets what resources you have access to.

Objective: To allow users access to your app.

Prerequisites

None

Time to complete: 2 minutes.

Instructions

1. Authorization

When the user enters their credentials and clicks the Login button, the permissions page is shown. This page is best at allowing users to control granular permissions in granting the app to access to Contoso’s data. contoso permissions page

2. How to use the sample

You need to know about the following HTML and CSS files.

  1. The following HTML files correspond to the two pages in the web authorization flow
    • WebAuthLogin.html – sample HTML for the login page
    • WebAuthPermissions.html – sample HTML for the permissions page
  2. The CSS files contain Windows 8 styles to help create a Windows Store app web page.
    • ui-light.css – this has been derived from the base style sheet for Windows 8 controls.
    • ui-webauth.css – this provides incremental styling for optimizing layout for web auth pages.
    • theme-colors.css – this provides the incremental styling to override default accent colors of controls with the provider’s brand color.

Summary and next steps

Summary Tutorial for authenticating web pages

Next Best practices for designing authentication web pages

Related topics

Considerations for the web page development

Web Authentication Broker SDK sample app

Windows.Security.Authentication.Web

Source: Microsoft Learn / Windows Win32 documentation by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / Windows Win32 documentation
适用范围
Windows Win32 API · Source date 05/31/2018
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。