Skip to content
Snippets Groups Projects
Verified Commit 8d612632 authored by Mark's avatar Mark
Browse files

Add helper script to add hydra client

parent 02fca144
Branches
Tags
1 merge request!5Service Integration
#!/bin/bash
KEY=$1
SECRET=$2
HOST=$3
PORT=$4
REDIRECT_URI=$5
curl --header "Content-Type: application/json" \
--request POST \
--data "{\"client_id\": \"$KEY\", \"client_name\": \"$KEY\", \"client_secret\": \"$SECRET\", \"redirect_uris\": [\"$REDIRECT_URI\"], \"scope\": \"read\", \"grant-types\": \"authorization_code,refresh_token\", \"response_types\": [\"code\"], \"token_endpoint_auth_method\": \"client_secret_post\"}" \
http://$HOST:$PORT/clients
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment