-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Roy Scheeren <[email protected]>
- Loading branch information
1 parent
2f6b082
commit 3fe91cf
Showing
7 changed files
with
115 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
OIDC_ADMIN_URL= | ||
SESSION_SECRET= | ||
OIDC_PROVIDER_CLIENT_URL= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# OIDC Bridge | ||
|
||
The OIDC Bridge contains the api endpoints required to complete the sign in process. | ||
|
||
## Requirements | ||
|
||
Copy `.env.example` into `.env` and update the variables. The `OIDC_ADMIN_URL` is the url to the admin port of the `ory-hydra` package. The `SESSION_SECRET` is a random secret string and the `OIDC_PROVIDER_CLIENT_URL` is the url where the `oidc-client` package is running. | ||
|
||
``` | ||
- node > 18 | ||
- npm | ||
``` | ||
|
||
Make sure you run | ||
|
||
``` | ||
npm install | ||
``` | ||
|
||
in the root of the project | ||
|
||
## Run in development mode | ||
|
||
To run de demo site locally run | ||
|
||
``` | ||
npx nx serve oidc-bridge | ||
``` | ||
|
||
from the root of the project. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
VITE_API_URL=http://localhost:3000 | ||
SSL_CERTIFICATE_ARN= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# OIDC Client | ||
|
||
The OIDC Client is the interface used to request the wallet details from the user. | ||
|
||
## Requirements | ||
|
||
Copy `.env.example` into `.env` and update the variables. The `VITE_API_URL` is the url of where the `oidc-bridge` has been deployed. For deployment on AWS you'll need a certificate from AWS and have the `SSL_CERTIFICATE_ARN` filled out with its ARN. | ||
|
||
``` | ||
- node > 18 | ||
- npm | ||
``` | ||
|
||
Make sure you run | ||
|
||
``` | ||
npm install | ||
``` | ||
|
||
in the root of the project | ||
|
||
## Run in development mode | ||
|
||
To run de demo site locally run | ||
|
||
``` | ||
npx nx serve oidc-client | ||
``` | ||
|
||
from the root of the project. | ||
|
||
## Deployment to AWS | ||
|
||
Update the required variables in `stacks/OIDCClient.ts` and run | ||
|
||
``` | ||
AWS_PROFILE={your profile} npx nx deploy:{staging|production} oidc-client | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# Ory Hydra | ||
|
||
Ory Hydra is the most advanced OAuth 2.0 and OIDC Certified® Server, and the only one that is open source. It integrates with any login system and allows you to interface with any application, anywhere. | ||
|
||
[Read more](https://www.ory.sh/hydra/) | ||
|
||
## Requirements | ||
- Docker | ||
- Docker Compose | ||
|
||
Full functionality relies on having the `oidc-client`, `oidc-server` and `ory-hydra` packages running simultanously. | ||
|
||
## Run locally | ||
|
||
### Environment | ||
Copy the `.env.example` file into `.env.development`. Update the variables where necessary. | ||
|
||
Update `./config/development.yml` where necessary. The `login` and `logout` properties should point to the address of where you're running the `oidc-client` packages. | ||
|
||
### Start Ory Hydra provider | ||
|
||
``` | ||
npx nx run:local:container ory-hydra | ||
``` | ||
|
||
to create a client run: | ||
|
||
``` | ||
npx nx run:local:testClient ory-hydra | ||
``` | ||
|
||
## Deployment | ||
|
||
Refer to the production documentation at https://www.ory.sh/docs/hydra/self-hosted/production. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters