@page "/auth/authorize" @model DysonNetwork.Sphere.Pages.Auth.AuthorizeModel @{ ViewData["Title"] = "Authorize Application"; }

Authorize Application

@if (!string.IsNullOrEmpty(Model.AppName)) {
@if (!string.IsNullOrEmpty(Model.AppLogo)) {
@Model.AppName logo
@Model.AppName?[0]
}

@Model.AppName

@if (!string.IsNullOrEmpty(Model.AppUri)) { @Model.AppUri }
}

wants to access your account with the following permissions:

    @if (Model.Scope != null) { var scopeDescriptions = new Dictionary { ["openid"] = ("OpenID", "Read your basic profile information"), ["profile"] = ("Profile", "View your basic profile information"), ["email"] = ("Email", "View your email address"), ["offline_access"] = ("Offline Access", "Access your data while you're not using the application") }; foreach (var scope in Model.Scope.Split(' ').Where(s => !string.IsNullOrWhiteSpace(s))) { var scopeInfo = scopeDescriptions.GetValueOrDefault(scope, (scope, scope.Replace('_', ' ')));
  • @scopeInfo.Item1

    @scopeInfo.Item2

  • } }

By authorizing, you allow this application to access your information on your behalf.

You can change these permissions later in your account settings.

@functions { private string GetScopeDisplayName(string scope) { return scope switch { "openid" => "View your basic profile information", "profile" => "View your profile information (name, picture, etc.)", "email" => "View your email address", "offline_access" => "Access your information while you're not using the app", _ => scope }; } }