Skip to content

Fork to create environment variables for configuration

Notifications You must be signed in to change notification settings

kwanta-cante/go-kratos-test

 
 

Repository files navigation

Ory Hydra/Kratos Integration in Go

Getting Started

  • Startup the containers with the following command:
docker-compose up -d --build
  • Create an OAuth client with the following command:
curl -X POST 'http://localhost:4445/clients' \
-H 'Content-Type: application/json' \
--data-raw '{
  "client_id": "auth-code-client",
  "client_name": "Test OAuth2 Client",
  "client_secret": "secret",
  "grant_types": ["authorization_code", "refresh_token"],
  "redirect_uris": ["http://localhost:4455/dashboard"],
  "response_types": ["code", "id_token"],
  "scope": "openid offline",
  "token_endpoint_auth_method": "client_secret_post",
  "metadata": {"registration": true, "consent": true}
}'

Note: You can turn off registration/consent by setting the registration/consent property to false in the metadata property above.

Ory Hydra/Kratos Integration Flow

alt text

About

Fork to create environment variables for configuration

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 79.9%
  • HTML 14.6%
  • Makefile 4.0%
  • Dockerfile 1.4%
  • Jsonnet 0.1%