-
Notifications
You must be signed in to change notification settings - Fork 714
/
default.xml
36 lines (32 loc) · 1.22 KB
/
default.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<ProxyEndpoint name="default">
<Flows>
<Flow name="GetAuthCode">
<!-- This policy flow is selected when the path exactly matches what's below -->
<Condition>proxy.pathsuffix == "/oauth/authorize"</Condition>
<Request>
<Step><Name>GenerateAuthCode</Name></Step>
</Request>
</Flow>
<Flow name="GetAccessToken">
<!-- This policy flow is selected when the path exactly matches what's below -->
<Condition>proxy.pathsuffix == "/oauth/accesstoken"</Condition>
<Request>
<Step><Name>GenerateAccessToken</Name></Step>
</Request>
</Flow>
<Flow name="RefreshAccessToken">
<!-- This policy flow is selected when the path exactly matches what's below -->
<Condition>proxy.pathsuffix == "/oauth/refresh_accesstoken"</Condition>
<Request>
<Step><Name>RefreshAccessToken</Name></Step>
</Request>
</Flow>
</Flows>
<HTTPProxyConnection>
<!-- Add a base path to the proxy to distinguish from others in the environment -->
<BasePath>/weatheroauthauthcode</BasePath>
<!-- Listen only on the HTTPS endpoint since OAuth 2.0 requires that -->
<VirtualHost>secure</VirtualHost>
</HTTPProxyConnection>
<RouteRule name="NoRoute"/>
</ProxyEndpoint>