cloudfoundry / cf-uaac

Apache License 2.0
41 stars 29 forks source link

How to obtain access token with client certificate or how to inject token? #91

Closed nenaraab closed 2 years ago

nenaraab commented 3 years ago

Hi,

when using uaac token client get as part of ci-cd script as described here to retrieve a token using client credentials, how to do the same using a client certificate?

Are you going to support mtls based communication to fetch an access token? Or do you offer an option to inject an access token to your context, and if yes, how?

Thanks in advance, Nena

strehle commented 2 years ago

HI @nenaraab , here is an example https://github.com/cloudfoundry/cf-uaac/blob/master/curl_auth.sh -> uaac context | awk '/^ access_token\: ([a-zA-Z0-9.\/+-_]+) *$/ {print $2}' - returns currend used token

strehle commented 2 years ago

uaac is mainly for uaa in CF and this currently does not provide mTLS, e.g. https://github.com/cloudfoundry/uaa/issues/1459