public void AddScope_should_return_same_distionary_when_permissions_are_none() { var args = new Dictionary<string, object>(); var result = args.AddScope(Permissions.None); Assert.Equal(args, result); }
void RequestAuthorizationCode(string redirectUrl) { var args = new Dictionary<string, object> { { ResponseTypeKey, CodeKey }, { ClientIdKey, clientId }, { RedirectUriKey, redirectUrl }, }; args.AddScope(Scope). AddDisplayType(Display). AddAuthorizationType(Type); var requestUrl = AuthorizeUrl.ToUri(args); httpContext.Response.Redirect(requestUrl.ToString(), true); }