Skip to content
This repository has been archived by the owner on Apr 22, 2020. It is now read-only.

Commit

Permalink
#489 allow enabling introspection for planb-tokeninfo service (#490)
Browse files Browse the repository at this point in the history
* #489 allow enabling introspection for planb-tokeninfo service

* #489 add handling of empty value case

* #489 add missing upstart conf
  • Loading branch information
smirnov authored and aermakov-zalando committed Mar 23, 2018
1 parent 88dfcc4 commit d528526
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions build/setup.d/55-setup-taupage-yaml.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,6 @@ fi
if [ -n "$TOKENINFO_BUSINESS_PARTNERS" ]; then
echo "tokeninfo_business_partners: $TOKENINFO_BUSINESS_PARTNERS" >> /meta/taupage.yaml
fi
if [ -n "$TOKENINFO_ENABLE_INTROSPECTION" ]; then
echo "tokeninfo_enable_introspection: $TOKENINFO_ENABLE_INTROSPECTION" >> /meta/taupage.yaml
fi
3 changes: 3 additions & 0 deletions runtime/etc/init/planb-tokeninfo.conf
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,8 @@ script
export OPENID_PROVIDER_CONFIGURATION_URL="$config_openid_provider_configuration_url"
export REVOCATION_PROVIDER_URL="$config_revocation_provider_url"
export BUSINESS_PARTNERS="$config_tokeninfo_business_partners"
if [ "$config_tokeninfo_introspection" = "true" ] || [ "$config_tokeninfo_introspection" = "True" ]; then
export ENABLE_INTROSPECTION="true"
fi
/opt/taupage/bin/planb-tokeninfo
end script

0 comments on commit d528526

Please sign in to comment.