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의 끝을보십시오.