Skip to content

Usernamealreadyis patch 10#5

Merged
usernamealreadyis merged 98 commits into
xccvv:masterfrom
GistIcon:usernamealreadyis-patch-10
May 23, 2017
Merged

Usernamealreadyis patch 10#5
usernamealreadyis merged 98 commits into
xccvv:masterfrom
GistIcon:usernamealreadyis-patch-10

Conversation

@usernamealreadyis

Copy link
Copy Markdown

In the Setup.Auth.cs file under the OAuthurizationServerOptions you can specify to be Token end point requires SSL or not.

OAuthOptions = new OAuthAuthorizationServerOptions
{
TokenEndpointPath = new PathString("/Token"),
Provider = new ApplicationOAuthProvider(PublicClientId),
AuthorizeEndpointPath = new PathString("/api/Account/ExternalLogin"),
AccessTokenExpireTimeSpan = TimeSpan.FromMinutes(20),
AllowInsecureHttp = false
};

vx @GistIcon/_name_your_team
sorttable @GistIcon/_name_your_team
elcome to RegExr v2.1 by gskinner.com, proudly hosted by Media Temple!

Edit the Expression & Text to see matches. Roll over matches or the expression for details. Undo mistakes with ctrl-z. Save Favorites & Share expressions with friends or the Community. Explore your results with Tools. A full Reference & Help is available in the Library, or watch the video Tutorial.

Sample text for testing:
abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ
0123456789 _+-.,!@#$%^&*();\/|<>"'
12345 -98.7 3.141 .6180 9,000 +42
555.123.4567	+1-(800)-555-2468
Parameters
    r	The current request
    bb	The brigade from which to read
    buffer	Empty when calling the function. On output, if there was an error, the string that cause the error is stored here.

Returns
    HTTP_OK on success, HTTP_INTERNAL_SERVER_ERROR otherwise
% ------ System and user parameters ------ %</div>
<div class="pre"><a id="l23" href="https://github.com/?p=ghostpdl.git;a=blob;f=Resource/Init/gs_lev2.ps;h=93037388f8f5a2951ff45ec3568e010c1304b5b0;hb=a127d73fc54024ad7aa6a73703c642527137d4ac#l23" class="linenr">  23</a> </div>
<div class="pre"><a id="l24" href="https://github.com/?p=ghostpdl.git;a=blob;f=Resource/Init/gs_lev2.ps;h=93037388f8f5a2951ff45ec3568e010c1304b5b0;hb=a127d73fc54024ad7aa6a73703c642527137d4ac#l24" class="linenr">  24</a> % User parameters must obey save/restore, and must also be maintained</div>
<div class="pre"><a id="l25" href="https://github.com/?p=ghostpdl.git;a=blob;f=Resource/Init/gs_lev2.ps;h=93037388f8f5a2951ff45ec3568e010c1304b5b0;hb=a127d73fc54024ad7aa6a73703c642527137d4ac#l25" class="linenr">  25</a> % per-context.  We implement the former, and some of the latter, here</div>
<div class="pre"><a id="l26" href="https://github.com/?p=ghostpdl.git;a=blob;f=Resource/Init/gs_lev2.ps;h=93037388f8f5a2951ff45ec3568e010c1304b5b0;hb=a127d73fc54024ad7aa6a73703c642527137d4ac#l26" class="linenr">  26</a> % with PostScript code.  NOTE: our implementation assumes that user</div>
<div class="pre"><a id="l27" href="https://github.com/?p=ghostpdl.git;a=blob;f=Resource/Init/gs_lev2.ps;h=93037388f8f5a2951ff45ec3568e010c1304b5b0;hb=a127d73fc54024ad7aa6a73703c642527137d4ac#l27" class="linenr">  27</a> % parameters change only as a result of setuserparams -- that there are</div>
<div class="pre"><a id="l28" href="https://github.com/?p=ghostpdl.git;a=blob;f=Resource/Init/gs_lev2.ps;h=93037388f8f5a2951ff45ec3568e010c1304b5b0;hb=a127d73fc54024ad7aa6a73703c642527137d4ac#l28" class="linenr">  28</a> % no user parameters that are ever changed dynamically by the interpreter</div>
<div class="pre"><a id="l29" href="https://github.com/?p=ghostpdl.git;a=blob;f=Resource/Init/gs_lev2.ps;h=93037388f8f5a2951ff45ec3568e010c1304b5b0;hb=a127d73fc54024ad7aa6a73703c642527137d4ac#l29" class="linenr">  29</a> % (although the interpreter may adjust the value presented to setuserparams)</div>
<div class="pre"><a id="l30" href="https://github.com/?p=ghostpdl.git;a=blob;f=Resource/Init/gs_lev2.ps;h=93037388f8f5a2951ff45ec3568e010c1304b5b0;hb=a127d73fc54024ad7aa6a73703c642527137d4ac#l30" class="linenr">  30</a> %</div>
<div class="pre"><a id="l31" href="https://github.com/?p=ghostpdl.git;a=blob;f=Resource/Init/gs_lev2.ps;h=93037388f8f5a2951ff45ec3568e010c1304b5b0;hb=a127d73fc54024ad7aa6a73703c642527137d4ac#l31" class="linenr">  31</a> % There are two types of user parameters: those which are actually</div>
<div class="pre"><a id="l32" href="https://github.com/?p=ghostpdl.git;a=blob;f=Resource/Init/gs_lev2.ps;h=93037388f8f5a2951ff45ec3568e010c1304b5b0;hb=a127d73fc54024ad7aa6a73703c642527137d4ac#l32" class="linenr">  32</a> % maintained in the interpreter, and those which exist only at the</div>
<div class="pre"><a id="l33" href="https://github.com/?p=ghostpdl.git;a=blob;f=Resource/Init/gs_lev2.ps;h=93037388f8f5a2951ff45ec3568e010c1304b5b0;hb=a127d73fc54024ad7aa6a73703c642527137d4ac#l33" class="linenr">  33</a> % PostScript level.  We maintain the current state of both types in</div>
<div class="pre"><a id="l34" href="https://github.com/?p=ghostpdl.git;a=blob;f=Resource/Init/gs_lev2.ps;h=93037388f8f5a2951ff45ec3568e010c1304b5b0;hb=a127d73fc54024ad7aa6a73703c642527137d4ac#l34" class="linenr">  34</a> % a read-only local dictionary named userparams, defined in systemdict.</div>
<div class="pre"><a id="l35" href="https://github.com/?p=ghostpdl.git;a=blob;f=Resource/Init/gs_lev2.ps;h=93037388f8f5a2951ff45ec3568e010c1304b5b0;hb=a127d73fc54024ad7aa6a73703c642527137d4ac#l35" class="linenr">  35</a> % In a multi-context system, each context has its own copy of this</div>
<div class="pre"><a id="l36" href="https://github.com/?p=ghostpdl.git;a=blob;f=Resource/Init/gs_lev2.ps;h=93037388f8f5a2951ff45ec3568e010c1304b5b0;hb=a127d73fc54024ad7aa6a73703c642527137d4ac#l36" class="linenr">  36</a> % dictionary.  In addition, there is a constant dictionary named</div>
<div class="pre"><a id="l37" href="https://github.com/?p=ghostpdl.git;a=blob;f=Resource/Init/gs_lev2.ps;h=93037388f8f5a2951ff45ec3568e010c1304b5b0;hb=a127d73fc54024ad7aa6a73703c642527137d4ac#l37" class="linenr">  37</a> % psuserparams where each key is the name of a user parameter that exists</div>
<div class="pre"><a id="l38" href="https://github.com/?p=ghostpdl.git;a=blob;f=Resource/Init/gs_lev2.ps;h=93037388f8f5a2951ff45ec3568e010c1304b5b0;hb=a127d73fc54024ad7aa6a73703c642527137d4ac#l38" class="linenr">  38</a> % only in PostScript and the value is a procedure to check that the value</div>
<div class="pre"><a id="l39" href="https://github.com/?p=ghostpdl.git;a=blob;f=Resource/Init/gs_lev2.ps;h=93037388f8f5a2951ff45ec3568e010c1304b5b0;hb=a127d73fc54024ad7aa6a73703c642527137d4ac#l39" class="linenr">  39</a> % is legal: setuserparams uses this for checking the values.</div>
<div class="pre"><a id="l40" href="https://github.com/?p=ghostpdl.git;a=blob;f=Resource/Init/gs_lev2.ps;h=93037388f8f5a2951ff45ec3568e010c1304b5b0;hb=a127d73fc54024ad7aa6a73703c642527137d4ac#l40" class="linenr">  40</a> % setuserparams updates userparams explicitly, in addition to setting</div>
<div class="pre"><a id="l41" href="https://github.com/?p=ghostpdl.git;a=blob;f=Resource/Init/gs_lev2.ps;h=93037388f8f5a2951ff45ec3568e010c1304b5b0;hb=a127d73fc54024ad7aa6a73703c642527137d4ac#l41" class="linenr">  41</a> % any user parameters in the interpreter; thus we can use userparams</div>
<div class="pre"><a id="l42" href="https://github.com/?p=ghostpdl.git;a=blob;f=Resource/Init/gs_lev2.ps;h=93037388f8f5a2951ff45ec3568e010c1304b5b0;hb=a127d73fc54024ad7aa6a73703c642527137d4ac#l42" class="linenr">  42</a> % to reset those parameters after a restore or a context switch.</div>
<div class="pre"><a id="l43" href="https://github.com/?p=ghostpdl.git;a=blob;f=Resource/Init/gs_lev2.ps;h=93037388f8f5a2951ff45ec3568e010c1304b5b0;hb=a127d73fc54024ad7aa6a73703c642527137d4ac#l43" class="linenr">  43</a> % NOTE: the name userparams is known to the interpreter, and in fact</div>
<div class="pre"><a id="l44" href="https://github.com/?p=ghostpdl.git;a=blob;f=Resource/Init/gs_lev2.ps;h=93037388f8f5a2951ff45ec3568e010c1304b5b0;hb=a127d73fc54024ad7aa6a73703c642527137d4ac#l44" class="linenr">  44</a> % the interprete
Description
If your browser does not support the file type specified attribute of the src , the pluginspage used to go to the address where you can download and install the necessary plug-in. Browser notifies the user that the required plug-in to display the file is not present, and asks to download it or not.

Syntax
<embed pluginspage="URL">...</embed>
meaning
Any valid URL (Universal Resource Locator, a universal resource locator).

default value
No.

example
HTML 4.01IECrOpSaFx
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" 
  "http://www.w3.org/TR/html4/strict.dtd">
<html>
 <head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <title>Тег EMBED, атрибут pluginspage</title>
 </head>
 <body>
  <embed src="images/mouse.swf" width="400" height="300" 
  type="application/x-shockwave-flash" 
  pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>
 </body>
</html>
0‚���	*†H†÷
��� ‚
ÿ0‚
û���1
In the Setup.Auth.cs file under the OAuthurizationServerOptions you can specify to be Token end point requires SSL or not.

OAuthOptions = new OAuthAuthorizationServerOptions
  {
    TokenEndpointPath = new PathString("/Token"),
    Provider = new ApplicationOAuthProvider(PublicClientId),
    AuthorizeEndpointPath = new PathString("/api/Account/ExternalLogin"),
    AccessTokenExpireTimeSpan = TimeSpan.FromMinutes(20),
    AllowInsecureHttp = false
  };
@usernamealreadyis usernamealreadyis merged commit a4eb299 into xccvv:master May 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant