https://github.com/ngyewch/hydra-login-consent
Golang http middleware for implementing the User Login and Consent flow of Ory OAuth2 service (Hydra).
https://github.com/ngyewch/hydra-login-consent
golang middleware oauth2 oidc ory ory-hydra
Last synced: 23 days ago
JSON representation
Golang http middleware for implementing the User Login and Consent flow of Ory OAuth2 service (Hydra).
- Host: GitHub
- URL: https://github.com/ngyewch/hydra-login-consent
- Owner: ngyewch
- License: mit
- Created: 2023-12-06T05:48:20.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-05T06:31:32.000Z (2 months ago)
- Last Synced: 2025-03-26T08:51:39.214Z (about 1 month ago)
- Topics: golang, middleware, oauth2, oidc, ory, ory-hydra
- Language: Go
- Homepage:
- Size: 402 KB
- Stars: 6
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-ory - Ory Hydra Golang HTTP middleware
- awesome-ory - Ory Hydra Golang HTTP middleware
README


[](https://pkg.go.dev/github.com/ngyewch/hydra-login-consent)# hydra-login-consent
Golang http middleware for implementing the User Login and Consent flow of Ory OAuth2 service ([Hydra](https://github.com/ory/hydra)).
## Example implementation
1. Start a local instance of Hydra (OIDC OP).
```
./start-hydra.sh
```
2. Start a test app (OIDC RP).
```
./start-test-client.sh
```
3. [OPTIONAL] Edit the config file (`config.toml`) for the example implementation.
4. Start the example implementation.
```
task run
```
5. Open the browser to `http://127.0.0.1:8080`
* Test user credentials can be found in `config.toml`.