mirror of
https://github.com/nsnail/Ocelot.git
synced 2025-04-21 04:52:51 +08:00
50 lines
1.5 KiB
Markdown
50 lines
1.5 KiB
Markdown
# Ocelot
|
|
|
|
[](https://ci.appveyor.com/project/TomPallister/ocelot)
|
|
|
|
[](https://gitter.im/Ocelotey/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
|
|
|
|
Attempt at a .NET Api Gateway
|
|
|
|
This project is aimed at people using .NET running
|
|
a micro services / service orientated architecture
|
|
that need a unified point of entry into their system.
|
|
|
|
In particular I want easy integration with
|
|
IdentityServer reference and bearer tokens.
|
|
|
|
We have been unable to find this in my current workplace
|
|
without having to write our own Javascript middlewares
|
|
to handle the IdentityServer reference tokens. We would
|
|
rather use the IdentityServer code that already exists
|
|
to do this.
|
|
|
|
Priorities
|
|
|
|
- Route configuration
|
|
- IdentityServer reference & bearer tokens
|
|
- Strip claims from tokens and use in proxy request
|
|
- Authorise access to routes based on claims in token
|
|
- Output Caching
|
|
- Monitoring
|
|
- Logging
|
|
- Rate Limiting
|
|
- Then a big list of cool things...
|
|
|
|
# How to use
|
|
|
|
# Configuration
|
|
|
|
TBC really but example configuration for a route below.
|
|
|
|
ReRoutes:
|
|
- DownstreamTemplate: http://localhost:51876/
|
|
UpstreamTemplate: /
|
|
UpstreamHttpMethod: Post
|
|
AuthenticationOptions:
|
|
Provider: IdentityServer.AccessToken
|
|
ProviderRootUrl: http://localhost:51888
|
|
ScopeName: api
|
|
AdditionalScopes: []
|
|
ScopeSecret: secret
|