Skip to content

Commit 394d21b

Browse files
reorder secetions
1 parent ba371eb commit 394d21b

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

docs/configuration.md

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -16,25 +16,6 @@ factory methods in [planet_auth_utils.PlanetAuthFactory][]
1616
A number of auth client implementations are provided. Clients should
1717
select the one most appropriate for their use case.
1818

19-
### Planet Legacy Client
20-
Implemented by [planet_auth.PlanetLegacyAuthClient][] and [planet_auth.PlanetLegacyAuthClientConfig][]
21-
22-
Configuration:
23-
```json linenums="1" title="~/.planet/_profile_name_/auth_client.json"
24-
{% include 'auth-client-config/planet-legacy.json' %}
25-
```
26-
27-
Profile Usage:
28-
```python linenums="1"
29-
{% include 'snippets/auth-client-context-from-saved-profile.py' %}
30-
```
31-
32-
33-
Direct Usage:
34-
```python linenums="1"
35-
{% include 'snippets/auth-client-context-pl-legacy-direct.py' %}
36-
```
37-
3819
### OAuth Clients
3920
#### Auth Code with PKCE
4021
Implemented by [planet_auth.AuthCodeAuthClient][] and [planet_auth.AuthCodeClientConfig][]
@@ -154,6 +135,25 @@ outbound calls, which is one of the primary aims of most auth client types.
154135
Instead, this client configuration can only be used to validate incoming
155136
tokens.
156137

138+
### Planet Legacy Client
139+
Implemented by [planet_auth.PlanetLegacyAuthClient][] and [planet_auth.PlanetLegacyAuthClientConfig][]
140+
141+
Configuration:
142+
```json linenums="1" title="~/.planet/_profile_name_/auth_client.json"
143+
{% include 'auth-client-config/planet-legacy.json' %}
144+
```
145+
146+
Profile Usage:
147+
```python linenums="1"
148+
{% include 'snippets/auth-client-context-from-saved-profile.py' %}
149+
```
150+
151+
152+
Direct Usage:
153+
```python linenums="1"
154+
{% include 'snippets/auth-client-context-pl-legacy-direct.py' %}
155+
```
156+
157157
## Environment Variables
158158
See [planet_auth_utils.EnvironmentVariables][] for a list of environment variables.
159159

0 commit comments

Comments
 (0)