jwt

package
v0.0.0-...-ce68545 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

package jwt includes sample JWT Token used in e2e tests.

Index

Constants

View Source
const (
	// Payload {
	//  "exp": 4715782722,
	//  "groups": [
	//    "group-1"
	//  ],
	//  "iat": 1562182722,
	//  "iss": "test-issuer-1@istio.io",
	//  "sub": "sub-1"
	// }
	// Generated by: security/tools/jwt/samples/gen-jwt.py tests/common/jwt/key.pem -jwks=tests/common/jwt/jwks.json
	// --expire=3153600000 --iss=test-issuer-1@istio.io --sub=sub-1 --listclaim groups "group-1"
	// nolint: lll
	TokenIssuer1 = "" /* 585-byte string literal not displayed */

	// Payload {
	//  "aud": foo,
	//  "exp": 4732994801,
	//  "iat": 1579394801,
	//  "iss": "test-issuer-1@istio.io",
	//  "sub": "sub-1"
	// }
	// Generated by: security/tools/jwt/samples/gen-jwt.py tests/common/jwt/key.pem -jwks=tests/common/jwt/jwks.json
	// --expire=3153600000 --iss=test-issuer-1@istio.io --sub=sub-1 --aud=foo
	// nolint: lll
	TokenIssuer1WithAud = "" /* 573-byte string literal not displayed */

	// Payload {
	//  "azp": "bar",
	//  "exp": 4734125453,
	//  "iat": 1580525453,
	//  "iss": "test-issuer-1@istio.io",
	//  "sub": "sub-1"
	// }
	// Generated by: security/tools/jwt/samples/gen-jwt.py tests/common/jwt/key.pem -jwks=tests/common/jwt/jwks.json
	// --expire=3153600000 --iss=test-issuer-1@istio.io --sub=sub-1 --claims "azp:bar"
	// nolint: lll
	TokenIssuer1WithAzp = "" /* 573-byte string literal not displayed */

	// Payload {
	//  "exp": 4757607896,
	//  "iat": 1604007896,
	//  "iss": "test-issuer-1@istio.io",
	//  "nested": {
	//    "key1": [
	//      "valueA",
	//      "valueB"
	//    ],
	//    "nested-2": {
	//      "key1": [
	//        "valueA",
	//        "valueB"
	//      ]
	//    }
	//  },
	//  "sub": "sub-1"
	// }
	// Generated by: security/tools/jwt/samples/gen-jwt.py tests/common/jwt/key.pem -jwks=tests/common/jwt/jwks.json
	// --expire=3153600000 --iss=test-issuer-1@istio.io --sub=sub-1 --nestedclaim key1 valueA valueB
	// nolint: lll
	TokenIssuer1WithNestedClaims1 = "" /* 661-byte string literal not displayed */

	// Payload {
	//  "exp": 4757608018,
	//  "iat": 1604008018,
	//  "iss": "test-issuer-1@istio.io",
	//  "nested": {
	//    "key2": "valueC",
	//    "nested-2": {
	//      "key2": "valueC"
	//    }
	//  },
	//  "sub": "sub-1"
	// }
	// Generated by: security/tools/jwt/samples/gen-jwt.py tests/common/jwt/key.pem -jwks=tests/common/jwt/jwks.json
	// --expire=3153600000 --iss=test-issuer-1@istio.io --sub=sub-1 --nestedclaim key2 valueC
	// nolint: lll
	TokenIssuer1WithNestedClaims2 = "" /* 632-byte string literal not displayed */

	// TokenIssuer1WithCollisionResistantName
	// payload:
	//{
	//  "exp": 4837231657,
	//  "iat": 1683631657,
	//  "iss": "test-issuer-1@istio.io",
	//  "sub": "sub-1",
	//  "test-issuer-1@istio.io/nested": {
	//    "key1": "valueC",
	//    "nested-2": {
	//      "key1": "valueC"
	//    }
	//  },
	//  "test-issuer-1@istio.io/simple": "valueC"
	//}
	// Generated by: python3 security/tools/jwt/samples/gen-jwt.py tests/common/jwt/key.pem -jwks=tests/common/jwt/jwks.json
	// --expire=3153600000 --iss=test-issuer-1@istio.io --sub=sub-1
	// --claims=test-issuer-1@istio.io/simple:valueC
	// --nestedkey=test-issuer-1@istio.io/nested --nestedclaim key1 valueC
	// nolint: lll
	TokenIssuer1WithCollisionResistantName = "" /* 717-byte string literal not displayed */

	// Payload {
	//  "exp": 4715782783,
	//  "groups": [
	//    "group-2"
	//  ],
	//  "iat": 1562182783,
	//  "iss": "test-issuer-2@istio.io",
	//  "sub": "sub-2"
	// }
	// Generated by: security/tools/jwt/samples/gen-jwt.py tests/common/jwt/key.pem -jwks=tests/common/jwt/jwks.json
	// --expire=3153600000 --iss=test-issuer-2@istio.io --sub=sub-2 --listclaim groups "group-2"
	// nolint: lll
	TokenIssuer2 = "" /* 585-byte string literal not displayed */

	// Payload {
	//  "exp": 4730732495,
	//  "iat": 1577132495,
	//  "iss": "test-issuer-2@istio.io",
	//  "permission": "read write",
	//  "sub": "sub-2"
	// }
	// Generated by: security/tools/jwt/samples/gen-jwt.py tests/common/jwt/key.pem -jwks=tests/common/jwt/jwks.json
	// --expire=3153600000 --iss=test-issuer-2@istio.io --sub=sub-2 --claims "permission:read write"
	// nolint: lll
	TokenIssuer2WithSpaceDelimitedScope = "" /* 592-byte string literal not displayed */

	// Payload {
	//  "exp": 4847801434,
	//  "iat": 1694201434,
	//  "iss": "test-issuer-3istio.io",
	//  "permission": "read write",
	//  "sub": "sub-1"
	// }
	// Generated by: security/tools/jwt/samples/gen-jwt.py tests/common/jwt/key.pem -jwks=tests/common/jwt/jwks.json
	// --expire=3153600000 --iss=test-issuer-3@istio.io --sub=sub-1 --claims "permission:read write"
	// nolint: lll
	TokenIssuer3 = "" /* 585-byte string literal not displayed */

	// Payload {
	//  "exp": 1562182856,
	//  "groups": [
	//    "group-1"
	//  ],
	//  "iat": 1562182855,
	//  "iss": "test-issuer-1@istio.io",
	//  "sub": "sub-1"
	// }
	// Generated by: security/tools/jwt/samples/gen-jwt.py tests/common/jwt/key.pem -jwks=tests/common/jwt/jwks.json
	// --expire=1 --iss=test-issuer-1@istio.io --sub=sub-1 --listclaim groups "group-1"
	// nolint: lll
	TokenExpired = "" /* 585-byte string literal not displayed */

	TokenInvalid = "TokenInvalid"

	// Payload {
	//  "aud": [
	//	  "foo",
	// 	  "buzz"
	//  ],
	//  "exp": 4732994801,
	//  "iat": 1579394801,
	//  "iss": "test-issuer-1@istio.io",
	//  "sub": "sub-1"
	// }
	// Generated by: security/tools/jwt/samples/gen-jwt.py tests/common/jwt/key.pem -jwks=tests/common/jwt/jwks.json
	// --expire=3153600000 --iss=test-issuer-1@istio.io --sub=sub-1 --aud=foo,buzz
	// nolint: lll
	TokenIssuer1WithAudList = "" /* 585-byte string literal not displayed */
)

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL