add instruction for example to README.md
This commit is contained in:
parent
79ead65710
commit
ebd2eb3584
1 changed files with 12 additions and 0 deletions
12
README.md
12
README.md
|
@ -21,6 +21,18 @@ Whenever possible we tried to reuse / extend existing packages like `OAuth2 for
|
||||||
|
|
||||||
Check the `/example` folder where example code for different scenarios is located.
|
Check the `/example` folder where example code for different scenarios is located.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# start oidc op server
|
||||||
|
# oidc discovery http://localhost:9998/.well-known/openid-configuration
|
||||||
|
CAOS_OIDC_DEV=1 go run github.com/caos/oidc/example/server/default
|
||||||
|
# start oidc web client
|
||||||
|
CLIENT_ID=web CLIENT_SECRET=web ISSUER=http://localhost:9998/ SCOPES=openid PORT=5556 go run github.com/caos/oidc/example/client/app
|
||||||
|
```
|
||||||
|
|
||||||
|
- browser http://localhost:5556/login will redirect to op server
|
||||||
|
- input id to login
|
||||||
|
- redirect to client app display user info
|
||||||
|
|
||||||
## Features
|
## Features
|
||||||
|
|
||||||
| | Code Flow | Implicit Flow | Hybrid Flow | Discovery | PKCE | Token Exchange | mTLS | JWT Profile | Refresh Token |
|
| | Code Flow | Implicit Flow | Hybrid Flow | Discovery | PKCE | Token Exchange | mTLS | JWT Profile | Refresh Token |
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue