项目作者: UmutComlekci

项目描述 :
Envoy Jwt Authentication
高级语言: C#
项目地址: git://github.com/UmutComlekci/envoy_jwt_authentication.git
创建时间: 2020-04-01T16:55:21Z
项目社区:https://github.com/UmutComlekci/envoy_jwt_authentication

开源协议:GNU General Public License v3.0

下载


Setup

Anyway, lets get started. You’ll need:

  • Go 11+
  • Get Envoy: The tutorial runs envoy directly here but you can use the docker image as well.

Start with docker-compose

You can simple use docker-compose file the testing.

  1. docker-compose up --remove-orphans --build --force-recreate

Get Token

  1. curl --location --request POST 'http://localhost:8082/connect/token' \
  2. --header 'Content-Type: application/x-www-form-urlencoded' \
  3. --data-urlencode 'client_id=client' \
  4. --data-urlencode 'client_secret=secret' \
  5. --data-urlencode 'scope=api1' \
  6. --data-urlencode 'grant_type=client_credentials'

Known Bugs

  • envoy.filters.http.jwt_authn return Jwks remote fetch is failed response.