jsonwebtoken.github.io
Extensions - 2.1.3
Secure(JSON Web)トークンベースの認証をプロジェクトにすばやく追加したい場合は、Developer.auth0.comでAuth0のドキュメントと無料プランを自由に確認してください。 |
ライブラリを追加するには、 views/website/libraries
にある右のJSONファイルを編集するだけです。各言語は独自のファイルを取得します。複数のライブラリが同じ言語ファイルを共有します。
新しい言語を追加するには、他の言語と同じフォルダーにJSONファイルを追加するだけです。自動的に認識されます。新しい言語を追加する場合は、適切なアイコンを提供し、 img
フォルダーに配置する必要があります。
.NET言語ファイル( 0-.NET.json
)のコメント例を示します。すべてのフィールドには、記載されていない限り、有効な値が必要です。
{
// Language name (unique)
"name" : ".NET" ,
// Unique identifier that will be used as a CSS class
// for this language (only valid CSS class names).
"uniqueClass" : "net" ,
// The language icon, SVG format preferred, should be placed
// in /img directory.
"image" : "/img/1.svg" ,
// The color of header that displays the name of the language
// and the icon. This is a valid CSS color definition.
"bgColor" : "rgb(42, 168, 229)" ,
// An array of libraries for this language.
"libs" : [
{
// In case the library suffered from a vulnerability, the
// minimum version in which the vuln was fixed must be
// listed here. Optional (can be null).
"minimumVersion" : "1.0.1" , // or null
// Supported features, true for supported,
// false for not supported.
"support" : {
"sign" : true ,
"verify" : true ,
"iss" : true ,
"sub" : true ,
"aud" : true ,
"exp" : true ,
"nbf" : true ,
"iat" : true ,
"jti" : true ,
"hs256" : true ,
"hs384" : true ,
"hs512" : true ,
"rs256" : true ,
"rs384" : true ,
"rs512" : true ,
"es256" : true ,
"es384" : true ,
"es512" : true ,
"ps256" : true ,
"ps384" : true ,
"ps512" : true ,
"eddsa" : true
} ,
// Author URL, can be GitHub profile, personal page
// company page, etc. Can be null.
"authorUrl" : "https://www.microsoft.com" , // or null
// Author name.
"authorName" : "Microsoft" ,
// For the star count, this is the GitHub repository path,
// (usually user/repo). Can be null (no star count shown).
"gitHubRepoPath" : "AzureAD/azure-activedirectory-identitymodel-extensions-for-dotnet" , // or null
// URL for source code.
"repoUrl" : "https://github.com/MSOpenTech/azure-activedirectory-identitymodel-extensions-for-dotnet" ,
// Install command, can be HTML or plain text.
"installCommandHtml" : "Install-Package<br><a href="https://www.nuget.org/packages/System.IdentityModel.Tokens.Jwt/">System.IdentityModel.Tokens.Jwt</a>"
}
]
}
まず、必要な依存関係をインストールします。
npm install
プロジェクトを実行する(および実行)するために:
./node_modules/.bin/grunt
dist
ディレクトリに生成されたファイルがあります。ウェブサイトでは、そのルートでサーバーを実行できます。例: http-server dist/website
。デフォルトのgrunt
タスクは、https://127.0.0.1:8000でサーバーを実行し、変更を監視します。
テストを実行するには、実行:
./node_modules/.bin/grunt test
他の一般的なタスクについては、Gruntfileの終わりを見てください。