Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
This repository was archived by the owner on Dec 15, 2020. It is now read-only.

A simple consent app for Hydra written in Go - for Hydra =< 1.0.0

NotificationsYou must be signed in to change notification settings

ory/hydra-consent-app-go

Repository files navigation

This repository works only with ORY Hydra versions prior to the 1.0.0 release. For a version that works with 1.0.0 check outthis repository.

Build Status

This is a simple consent app for Hydra written in Go. It uses the Hydra SDK.To run the example, first install Hydra,depand this project:

go get -u -d github.com/ory/hydra-consent-app-gocd $GOPATH/src/github.com/ory/hydra-consent-app-godep ensure

Next open a shell and run:

export FORCE_ROOT_CLIENT_CREDENTIALS=demo:demoexport CONSENT_URL=http://localhost:3000/consenthydra host --dangerous-force-http

In another console, run

hydra-consent-app-go

or alternatively, if you're in the project's directory:

go run main.go

Then, open the browser:

open http://localhost:3000/

Now follow the steps described in the browser. If you encounter an error,use the browser's back button to get back to the last screen.

Keep in mind that you will not be able to refresh the callback url, as theauthorize code is valid only once. Also, this application needs to run onport 4445 in order for the demo to work. Usually the consent endpoint won'tperform the authorize code, but for the sake of the demo we added that too.

Make sure that you stop the docker-compose demo of the Hydra main repository,otherwise ports 4445 and 4444 are unassignable.

About

A simple consent app for Hydra written in Go - for Hydra =< 1.0.0

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp