Requirement:
Users/Apps/3rd Party Apps → Tyk → Google Cloud Function
Apps authentication and Authorization is done on the TYK
Tyk as to get the Token from gcloud Auth and
Tyk as to pass above token as Authorization header to the Google cloud function
Note: Tyk and Google cloud functions are in different project.
Sample Request:
curl -m 550 -X POST https://asia-southeast1-datatest-348502.cloudfunctions.net/function-call-model-endpoint \ -H "Authorization:bearer $(gcloud auth print-identity-token)" \ -H "Content-Type:application/json" \ -d '{ "id": "118658831" }'
Options:
SM-3109 - Investigate options to use Gcloud with Tyk Done
Solution:
To use workload identity based solution
Conclusion:
Working with TYK team how tyk can be integrated with google cloud auth.
Attachments:
Tyk-Gcloud-AAI-OSP (application/vnd.jgraph.mxfile)
Tyk-Gcloud-AAI-OSP.png (image/png)
~Tyk-Gcloud-AAI-OSP.tmp (application/vnd.jgraph.mxfile)
~Tyk-Gcloud-AAI-OSP.tmp (application/vnd.jgraph.mxfile)
~Tyk-Gcloud-AAI-OSP.tmp (application/vnd.jgraph.mxfile)
~Tyk-Gcloud-AAI-OSP.tmp (application/vnd.jgraph.mxfile)
~Tyk-Gcloud-AAI-OSP.tmp (application/vnd.jgraph.mxfile)
~Tyk-Gcloud-AAI-OSP.tmp (application/vnd.jgraph.mxfile)
~Tyk-Gcloud-AAI-OSP.tmp (application/vnd.jgraph.mxfile)
~Tyk-Gcloud-AAI-OSP.tmp (application/vnd.jgraph.mxfile)
~Tyk-Gcloud-AAI-OSP.tmp (application/vnd.jgraph.mxfile)
~Tyk-Gcloud-AAI-OSP.tmp (application/vnd.jgraph.mxfile)
~Tyk-Gcloud-AAI-OSP.tmp (application/vnd.jgraph.mxfile)
~Tyk-Gcloud-AAI-OSP.tmp (application/vnd.jgraph.mxfile)
~Tyk-Gcloud-AAI-OSP.tmp (application/vnd.jgraph.mxfile)
~Tyk-Gcloud-AAI-OSP.tmp (application/vnd.jgraph.mxfile)
~Tyk-Gcloud-AAI-OSP.tmp (application/vnd.jgraph.mxfile)
~Tyk-Gcloud-AAI-OSP.tmp (application/vnd.jgraph.mxfile)
~Tyk-Gcloud-AAI-OSP.tmp (application/vnd.jgraph.mxfile)
~Tyk-Gcloud-AAI-OSP.tmp (application/vnd.jgraph.mxfile)
Tyk-Gcloud-AAI-OSP (application/vnd.jgraph.mxfile)
Tyk-Gcloud-AAI-OSP.png (image/png)
~drawio~557058:6456e32e-106b-4425-9de1-5271d2ecb008~Untitled Diagram.drawio.tmp (application/vnd.jgraph.mxfile)
~drawio~557058:6456e32e-106b-4425-9de1-5271d2ecb008~Untitled Diagram.drawio.tmp (application/vnd.jgraph.mxfile)
Tyk-Gcloud-AAI-OSP.png (image/png)
~Tyk-Gcloud-AAI-OSP.tmp (application/vnd.jgraph.mxfile)
~Tyk-Gcloud-AAI-OSP.tmp (application/vnd.jgraph.mxfile)
~Tyk-Gcloud-AAI-OSP.tmp (application/vnd.jgraph.mxfile)
~Tyk-Gcloud-AAI-OSP.tmp (application/vnd.jgraph.mxfile)
~Tyk-Gcloud-AAI-OSP.tmp (application/vnd.jgraph.mxfile)
~Tyk-Gcloud-AAI-OSP.tmp (application/vnd.jgraph.mxfile)
~Tyk-Gcloud-AAI-OSP.tmp (application/vnd.jgraph.mxfile)
~Tyk-Gcloud-AAI-OSP.tmp (application/vnd.jgraph.mxfile)
~Tyk-Gcloud-AAI-OSP.tmp (application/vnd.jgraph.mxfile)
~Tyk-Gcloud-AAI-OSP.tmp (application/vnd.jgraph.mxfile)
~Tyk-Gcloud-AAI-OSP.tmp (application/vnd.jgraph.mxfile)
~Tyk-Gcloud-AAI-OSP.tmp (application/vnd.jgraph.mxfile)
~Tyk-Gcloud-AAI-OSP.tmp (application/vnd.jgraph.mxfile)
~Tyk-Gcloud-AAI-OSP.tmp (application/vnd.jgraph.mxfile)
~Tyk-Gcloud-AAI-OSP.tmp (application/vnd.jgraph.mxfile)
~Tyk-Gcloud-AAI-OSP.tmp (application/vnd.jgraph.mxfile)
~Tyk-Gcloud-AAI-OSP.tmp (application/vnd.jgraph.mxfile)
~Tyk-Gcloud-AAI-OSP.tmp (application/vnd.jgraph.mxfile)
Tyk-Gcloud-AAI-OSP (application/vnd.jgraph.mxfile)
Tyk-Gcloud-AAI-OSP.png (image/png)
~drawio~557058:6456e32e-106b-4425-9de1-5271d2ecb008~Untitled Diagram.drawio.tmp (application/vnd.jgraph.mxfile)
~drawio~557058:6456e32e-106b-4425-9de1-5271d2ecb008~Untitled Diagram.drawio.tmp (application/vnd.jgraph.mxfile)