Skip to content
This repository has been archived by the owner on Oct 2, 2024. It is now read-only.

zendesk/classic_asp_jwt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Classic ASP JWT

A JWT implementation in Classic ASP, currently only supports JWTEncode(dictionary, secret).

Usage

<!--#include file="jwt.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.

About

A JWT implementation in Classic ASP

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published