You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[](https://github.com/norwegian-geotechnical-institute/oidc-auth-client/actions/workflows/release.yaml)
4
+
3
5
## Installing
4
6
5
7
`pip install oidc-auth-client`
6
8
7
9
## Example usage
8
10
11
+
### Authorization Code Flow
12
+
13
+
Use this flow when your application needs to **authenticate a real user**.
14
+
15
+
It will:
16
+
17
+
1. Open the user’s browser
18
+
2. Redirect them to your identity provider’s login page
19
+
3. Wait for the user to authenticate
20
+
4. Receive an authorization code
21
+
5. Exchange it for an access token
22
+
23
+
Best for CLIs, desktop apps, and tools acting **on behalf of a user**.
24
+
9
25
```py
10
26
from oidc_auth_client import Config, AuthorizationCode, OidcProvider
0 commit comments