Skip to content
This repository was archived by the owner on May 3, 2022. It is now read-only.

elgalu/pacts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

132 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dockerized Pact Broker with OAuth2 support Build Status

This projects starts at https://github.com/bethesque/pact_broker please read those docs first.

Requirements

Usage

Make user ${USER} returns the same user as LDAP/AD one, e.g. elgalu

export SHOST="https://pacts.myteam-test.example.org" \
       OAUTH2_ACCESS_TOKEN_URL="https://token.example.com/access_token" \
       OAUTH2_ACCESS_TOKEN_PARAMS="?realm=/employees"
export OAUTH2_ACCESS_TOKEN_URL_PARAMS="${OAUTH2_ACCESS_TOKEN_URL}${OAUTH2_ACCESS_TOKEN_PARAMS}"
token=$(zign token --user elgalu --url $OAUTH2_ACCESS_TOKEN_URL_PARAMS -n pact)
PACT="{\"provider\": {\"name\": \"prov3\"}, \"consumer\": {\"name\": \"${USER}\"} }"
curl -H "Authorization: Bearer $token" -H 'Content-Type: application/json' -X PUT -d"${PACT}" \
    "$SHOST/pacts/provider/prov3/consumer/${USER}/version/1.0.0"

Now open staging

Docs

About

Dockerized Pact Broker with OAuth2 integration

Topics

Resources

License

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors