https://github.com/zendesk/classic_asp_jwt
A JWT implementation in Classic ASP
https://github.com/zendesk/classic_asp_jwt
Last synced: about 1 year ago
JSON representation
A JWT implementation in Classic ASP
- Host: GitHub
- URL: https://github.com/zendesk/classic_asp_jwt
- Owner: zendesk
- Archived: true
- Created: 2013-05-06T16:22:02.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2024-08-19T14:37:32.000Z (almost 2 years ago)
- Last Synced: 2025-03-13T08:04:14.693Z (over 1 year ago)
- Language: ASP
- Size: 139 KB
- Stars: 33
- Watchers: 416
- Forks: 19
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Classic ASP JWT
A JWT implementation in Classic ASP, currently only supports `JWTEncode(dictionary, secret)`.
### Usage
```asp
<%
Dim sKey, dAttributes, sToken
sKey = "Shared Secret"
Set dAttributes=Server.CreateObject("Scripting.Dictionary")
' The UniqueString and SecsSinceEpoch functions are provided by this implementation
dAttributes.Add "jti", UniqueString
dAttributes.Add "iat", SecsSinceEpoch
dAttributes.Add "name", "Roger"
dAttributes.Add "email", "roger@example.com"
sToken = JWTEncode(dAttributes, sKey)
%>
```
### License
The depdendencies in the `external` folder are subject to their respective licenses as noted in the files. This license only pertains to the other files in this repository.
Copyright 2013 Zendesk
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.