readme: update example commands

This commit is contained in:
Tim Möhlmann 2023-02-24 10:30:46 +01:00 committed by Tim Möhlmann
parent f6d107340e
commit 03f71a67c2
2 changed files with 2 additions and 2 deletions

View file

@ -46,7 +46,7 @@ Check the `/example` folder where example code for different scenarios is locate
# oidc discovery http://localhost:9998/.well-known/openid-configuration
go run github.com/zitadel/oidc/v2/example/server
# start oidc web client (in a new terminal)
CLIENT_ID=web CLIENT_SECRET=secret ISSUER=http://localhost:9998 SCOPES="openid profile" PORT=9999 go run github.com/zitadel/oidc/example/client/app
CLIENT_ID=web CLIENT_SECRET=secret ISSUER=http://localhost:9998/ SCOPES="openid profile" PORT=9999 go run github.com/zitadel/oidc/v2/example/client/app
```
- open http://localhost:9999/login in your browser

View file

@ -15,7 +15,7 @@ func main() {
//we will run on :9998
port := "9998"
//which gives us the issuer: //http://localhost:9998/
//which gives us the issuer: http://localhost:9998/
issuer := fmt.Sprintf("http://localhost:%s/", port)
// the OpenIDProvider interface needs a Storage interface handling various checks and state manipulations