Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding test case for public key based introspection #1354

Merged
merged 1 commit into from
Mar 30, 2020

Conversation

sshniro
Copy link
Member

@sshniro sshniro commented Mar 27, 2020

Summary

Resolves #1276

This PR tests the public key based token introspection for OAuth plugin.

The private key used to sign the token present in the test case:

-----BEGIN RSA PRIVATE KEY-----
MIIBOgIBAAJBANW16kX5SMrMa2t7F2R1w6Bk/qpjS4QQhnrbED3Dpsl9JXAx90MY
sIWp51hBxJSE/EPVK8WF/sjHK1xQbEuDfEECAwEAAQJBALyYVE06B5YIPgfU0bjz
ABeM6Pyeseay2qqSpcuL3KVTsZKhFfB49KdhxOGo45SKboVoM1xqOHVUopCFkEeQ
Le0CIQDtrTeGb/388cSM/0YEZvIpE05tecOpAIcI/a6xkluPVwIhAOYvtIF4RDhs
4mGzzPHtvridP5p/PWXkTxiNHfl3esonAiAhb/ET1MWixFCmlXNAQ0tmQ/UQqcTB
DfXxad8d1D1VWQIgAlmIUS4GHEFYSkEInYucv8uzI4Oa/9hFym1eWfaTRU8CIChU
gZnTz8ErlpRAG9TXnsJsvYA7Q3jzaYCmsYxQc2gW
-----END RSA PRIVATE KEY-----

The token used in the test case is valid for 10years.

@moonming moonming merged commit c340086 into apache:master Mar 30, 2020
@sshniro sshniro deleted the test-oauth branch April 4, 2020 06:32
SaberMaster pushed a commit to SaberMaster/incubator-apisix that referenced this pull request Jun 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

add more test cases for oauth plugin
2 participants