Hi all. I'm working on a mobile app that uses AWS Amplify to connect to Amazon Cognito and API Gateway, and I would like to extract the configuration info (user pool id, client id, region), so I can get it from a URL. How can I do this in the safest way?","private":false,"viewCount":33143,"publishedAt":"2020-08-31T18:18:50Z","upvotesCount":2,"decisionType":"getAdvice","fromTools":[],"toTools":[],"subjectTools":[{"type":"id","generated":false,"id":"Tool:101231774879946179","typename":"Tool"},{"type":"id","generated":false,"id":"Tool:101231773881468995","typename":"Tool"},{"type":"id","generated":false,"id":"Tool:101231777382143497","typename":"Tool"}],"services":[{"type":"id","generated":false,"id":"Tool:101231777382143497","typename":"Tool"},{"type":"id","generated":false,"id":"Tool:101231773881468995","typename":"Tool"}],"topics":[],"__typename":"StackDecision"},"Tool:101231774879946179":{"id":"101231774879946179","name":"Amazon API Gateway","slug":"amazon-api-gateway","title":"Create, publish, maintain, monitor, and secure APIs at any scale","verified":true,"imageUrl":"https://img.stackshare.io/service/3299/aws-api-gateway.png","canonicalUrl":"/amazon-api-gateway","path":"/amazon-api-gateway","votes":45,"fans":1479,"stacks":1399,"followingTool":false,"followContext":null,"__typename":"Tool"},"Tool:101231777382143497":{"id":"101231777382143497","name":"AWS Amplify","slug":"aws-amplify","title":"JavaScript Open Source Library with React, React Native Extensions","verified":false,"imageUrl":"https://img.stackshare.io/no-img-open-source.png","canonicalUrl":"/aws-amplify","path":"/aws-amplify","votes":15,"fans":723,"stacks":492,"followingTool":false,"followContext":null,"__typename":"Tool","thumbUrl":"https://img.stackshare.io/service/7924/thumb_no-img-open-source.png","thumbRetinaUrl":"https://img.stackshare.io/service/7924/thumb_retina_no-img-open-source.png"},"$Tool:101231773881468995.stackDecisions({\"first\":6}).edges.0":{"node":{"type":"id","generated":false,"id":"StackDecision:104785374785187938","typename":"StackDecision"},"__typename":"StackDecisionEdge"},"User:101232002856716857":{"id":"101232002856716857","username":"carlosfunk","title":null,"companyName":null,"imageUrl":"https://img.stackshare.io/user/29097/default_07ab8dbb9b6857dc3a72e387a37dec8dddebdd28.jpeg","thumbUrl":"https://img.stackshare.io/user/29097/thumb_07ab8dbb9b6857dc3a72e387a37dec8dddebdd28.jpeg","displayName":"carlosfunk","__typename":"User"},"StackDecision:102686125948385186":{"user":{"type":"id","generated":false,"id":"User:101232002856716857","typename":"User"},"company":null,"link":null,"publicId":"102686125948385186","id":"102686125948385186","htmlContent":"
I'm starting a new React Native project and trying to decide on an auth provider. Currently looking at Auth0 and Amazon Cognito. It will need to play nice with a Django Rest Framework backend.","private":false,"viewCount":1699783,"publishedAt":"2019-08-27T00:32:00Z","upvotesCount":3,"decisionType":"getAdvice","fromTools":[],"toTools":[],"subjectTools":[{"type":"id","generated":false,"id":"Tool:101231773881468995","typename":"Tool"},{"type":"id","generated":false,"id":"Tool:101231773678588190","typename":"Tool"}],"services":[{"type":"id","generated":false,"id":"Tool:101231774544144572","typename":"Tool"},{"type":"id","generated":false,"id":"Tool:101231773678588190","typename":"Tool"},{"type":"id","generated":false,"id":"Tool:101231773881468995","typename":"Tool"},{"type":"id","generated":false,"id":"Tool:101231773837565192","typename":"Tool"}],"topics":[],"__typename":"StackDecision"},"Tool:101231774544144572":{"name":"React Native","path":"/react-native","id":"101231774544144572","imageUrl":"https://img.stackshare.io/service/2699/KoK6gHzp.jpg","thumbUrl":"https://img.stackshare.io/service/2699/thumb_KoK6gHzp.jpg","stacks":33579,"fans":34396,"votes":1156,"followingTool":false,"__typename":"Tool"},"Tool:101231773837565192":{"name":"Django","path":"/django","id":"101231773837565192","imageUrl":"https://img.stackshare.io/service/994/4aGjtNQv.png","thumbUrl":"https://img.stackshare.io/service/994/thumb_4aGjtNQv.png","stacks":37672,"fans":39473,"votes":4208,"followingTool":false,"__typename":"Tool"},"$Tool:101231773881468995.stackDecisions({\"first\":6}).edges.1":{"node":{"type":"id","generated":false,"id":"StackDecision:102686125948385186","typename":"StackDecision"},"__typename":"StackDecisionEdge"},"Stackup:101231828610429137":{"id":"101231828610429137","path":"/stackups/amazon-cognito-vs-auth0","services":[{"type":"id","generated":false,"id":"Tool:101231773678588190","typename":"Tool"},{"type":"id","generated":false,"id":"Tool:101231773881468995","typename":"Tool"}],"__typename":"Stackup"},"$Tool:101231773881468995.relatedStackups({\"first\":6}).edges.0":{"node":{"type":"id","generated":false,"id":"Stackup:101231828610429137","typename":"Stackup"},"__typename":"StackupEdge"},"Stackup:102051534777334785":{"id":"102051534777334785","path":"/stackups/amazon-cognito-vs-okta","services":[{"type":"id","generated":false,"id":"Tool:101231773881468995","typename":"Tool"},{"type":"id","generated":false,"id":"Tool:101231773973465598","typename":"Tool"}],"__typename":"Stackup"},"$Tool:101231773881468995.relatedStackups({\"first\":6}).edges.1":{"node":{"type":"id","generated":false,"id":"Stackup:102051534777334785","typename":"Stackup"},"__typename":"StackupEdge"},"Stackup:101664913909037788":{"id":"101664913909037788","path":"/stackups/amazon-cognito-vs-firebase","services":[{"type":"id","generated":false,"id":"Tool:101231773461393493","typename":"Tool"},{"type":"id","generated":false,"id":"Tool:101231773881468995","typename":"Tool"}],"__typename":"Stackup"},"$Tool:101231773881468995.relatedStackups({\"first\":6}).edges.2":{"node":{"type":"id","generated":false,"id":"Stackup:101664913909037788","typename":"Stackup"},"__typename":"StackupEdge"},"Stackup:101310661617182019":{"id":"101310661617182019","path":"/stackups/amazon-cognito-vs-aws-iam","services":[{"type":"id","generated":false,"id":"Tool:101231773627011099","typename":"Tool"},{"type":"id","generated":false,"id":"Tool:101231773881468995","typename":"Tool"}],"__typename":"Stackup"},"$Tool:101231773881468995.relatedStackups({\"first\":6}).edges.3":{"node":{"type":"id","generated":false,"id":"Stackup:101310661617182019","typename":"Stackup"},"__typename":"StackupEdge"},"Stackup:102321505823588536":{"id":"102321505823588536","path":"/stackups/amazon-cognito-vs-keycloak","services":[{"type":"id","generated":false,"id":"Tool:101231776118117126","typename":"Tool"},{"type":"id","generated":false,"id":"Tool:101231773881468995","typename":"Tool"}],"__typename":"Stackup"},"$Tool:101231773881468995.relatedStackups({\"first\":6}).edges.4":{"node":{"type":"id","generated":false,"id":"Stackup:102321505823588536","typename":"Stackup"},"__typename":"StackupEdge"},"Stackup:101231828636848759":{"id":"101231828636848759","path":"/stackups/amazon-cognito-vs-devise","services":[{"type":"id","generated":false,"id":"Tool:101231773881468995","typename":"Tool"},{"type":"id","generated":false,"id":"Tool:101231774024491603","typename":"Tool"}],"__typename":"Stackup"},"Tool:101231774024491603":{"id":"101231774024491603","name":"Devise","imageUrl":"https://img.stackshare.io/service/1432/devise.png","thumbUrl":"https://img.stackshare.io/service/1432/thumb_devise.png","__typename":"Tool"},"$Tool:101231773881468995.relatedStackups({\"first\":6}).edges.5":{"node":{"type":"id","generated":false,"id":"Stackup:101231828636848759","typename":"Stackup"},"__typename":"StackupEdge"},"$Tool:101231773881468995.relatedStackups({\"first\":6})":{"edges":[{"type":"id","generated":true,"id":"$Tool:101231773881468995.relatedStackups({\"first\":6}).edges.0","typename":"StackupEdge"},{"type":"id","generated":true,"id":"$Tool:101231773881468995.relatedStackups({\"first\":6}).edges.1","typename":"StackupEdge"},{"type":"id","generated":true,"id":"$Tool:101231773881468995.relatedStackups({\"first\":6}).edges.2","typename":"StackupEdge"},{"type":"id","generated":true,"id":"$Tool:101231773881468995.relatedStackups({\"first\":6}).edges.3","typename":"StackupEdge"},{"type":"id","generated":true,"id":"$Tool:101231773881468995.relatedStackups({\"first\":6}).edges.4","typename":"StackupEdge"},{"type":"id","generated":true,"id":"$Tool:101231773881468995.relatedStackups({\"first\":6}).edges.5","typename":"StackupEdge"}],"__typename":"StackupConnection"},"$Tool:101231773881468995.allToolIntegrations({\"first\":9})":{"count":10,"pageInfo":{"type":"id","generated":true,"id":"$Tool:101231773881468995.allToolIntegrations({\"first\":9}).pageInfo","typename":"PageInfo"},"edges":[{"type":"id","generated":true,"id":"$Tool:101231773881468995.allToolIntegrations({\"first\":9}).edges.0","typename":"ToolEdge"},{"type":"id","generated":true,"id":"$Tool:101231773881468995.allToolIntegrations({\"first\":9}).edges.1","typename":"ToolEdge"},{"type":"id","generated":true,"id":"$Tool:101231773881468995.allToolIntegrations({\"first\":9}).edges.2","typename":"ToolEdge"},{"type":"id","generated":true,"id":"$Tool:101231773881468995.allToolIntegrations({\"first\":9}).edges.3","typename":"ToolEdge"},{"type":"id","generated":true,"id":"$Tool:101231773881468995.allToolIntegrations({\"first\":9}).edges.4","typename":"ToolEdge"},{"type":"id","generated":true,"id":"$Tool:101231773881468995.allToolIntegrations({\"first\":9}).edges.5","typename":"ToolEdge"},{"type":"id","generated":true,"id":"$Tool:101231773881468995.allToolIntegrations({\"first\":9}).edges.6","typename":"ToolEdge"},{"type":"id","generated":true,"id":"$Tool:101231773881468995.allToolIntegrations({\"first\":9}).edges.7","typename":"ToolEdge"},{"type":"id","generated":true,"id":"$Tool:101231773881468995.allToolIntegrations({\"first\":9}).edges.8","typename":"ToolEdge"}],"__typename":"ToolConnection"},"$Tool:101231773881468995.allToolIntegrations({\"first\":9}).pageInfo":{"hasNextPage":true,"endCursor":"OQ","__typename":"PageInfo"},"$Tool:101231773881468995.allToolIntegrations({\"first\":9}).edges.0":{"node":{"type":"id","generated":false,"id":"Tool:101231777382143497","typename":"Tool"},"__typename":"ToolEdge"},"Tool:101231777404400677":{"imageUrl":"https://img.stackshare.io/service/7977/appsync.png","thumbUrl":"https://img.stackshare.io/service/7977/thumb_appsync.png","thumbRetinaUrl":"https://img.stackshare.io/service/7977/thumb_retina_appsync.png","name":"AWS AppSync","id":"101231777404400677","slug":"aws-appsync","path":"/aws-appsync","__typename":"Tool"},"$Tool:101231773881468995.allToolIntegrations({\"first\":9}).edges.1":{"node":{"type":"id","generated":false,"id":"Tool:101231777404400677","typename":"Tool"},"__typename":"ToolEdge"},"Tool:102921049905713282":{"imageUrl":"https://img.stackshare.io/service/11394/appsync.png","thumbUrl":"https://img.stackshare.io/service/11394/thumb_appsync.png","thumbRetinaUrl":"https://img.stackshare.io/service/11394/thumb_retina_appsync.png","name":"Serverless AppSync","id":"102921049905713282","slug":"serverless-appsync","path":"/serverless-appsync","__typename":"Tool"},"$Tool:101231773881468995.allToolIntegrations({\"first\":9}).edges.2":{"node":{"type":"id","generated":false,"id":"Tool:102921049905713282","typename":"Tool"},"__typename":"ToolEdge"},"Tool:101231775187760179":{"imageUrl":"https://img.stackshare.io/service/3774/aws-mobile-hub.png","thumbUrl":"https://img.stackshare.io/service/3774/thumb_aws-mobile-hub.png","thumbRetinaUrl":"https://img.stackshare.io/service/3774/thumb_retina_aws-mobile-hub.png","name":"AWS Mobile Hub","id":"101231775187760179","slug":"aws-mobile-hub","path":"/aws-mobile-hub","__typename":"Tool"},"$Tool:101231773881468995.allToolIntegrations({\"first\":9}).edges.3":{"node":{"type":"id","generated":false,"id":"Tool:101231775187760179","typename":"Tool"},"__typename":"ToolEdge"},"Tool:101231777723147099":{"imageUrl":"https://img.stackshare.io/service/8577/RGAR17ex_400x400.jpg","thumbUrl":"https://img.stackshare.io/service/8577/thumb_RGAR17ex_400x400.jpg","thumbRetinaUrl":"https://img.stackshare.io/service/8577/thumb_retina_RGAR17ex_400x400.jpg","name":"SketchUp","id":"101231777723147099","slug":"sketchup","path":"/sketchup","__typename":"Tool"},"$Tool:101231773881468995.allToolIntegrations({\"first\":9}).edges.4":{"node":{"type":"id","generated":false,"id":"Tool:101231777723147099","typename":"Tool"},"__typename":"ToolEdge"},"Tool:101749879404087478":{"imageUrl":"https://img.stackshare.io/service/10529/default_ee01ccfd3a243fe511b348ef430837ef9e9a2ad5.png","thumbUrl":"https://img.stackshare.io/service/10529/thumb_ee01ccfd3a243fe511b348ef430837ef9e9a2ad5.png","thumbRetinaUrl":"https://img.stackshare.io/service/10529/thumb_retina_ee01ccfd3a243fe511b348ef430837ef9e9a2ad5.png","name":"React-admin","id":"101749879404087478","slug":"react-admin","path":"/react-admin","__typename":"Tool"},"$Tool:101231773881468995.allToolIntegrations({\"first\":9}).edges.5":{"node":{"type":"id","generated":false,"id":"Tool:101749879404087478","typename":"Tool"},"__typename":"ToolEdge"},"Tool:101231777404870424":{"imageUrl":"https://img.stackshare.io/service/7978/FrshWMKt_400x400.jpg","thumbUrl":"https://img.stackshare.io/service/7978/thumb_FrshWMKt_400x400.jpg","thumbRetinaUrl":"https://img.stackshare.io/service/7978/thumb_retina_FrshWMKt_400x400.jpg","name":"Amazon Sumerian","id":"101231777404870424","slug":"amazon-sumerian","path":"/amazon-sumerian","__typename":"Tool"},"$Tool:101231773881468995.allToolIntegrations({\"first\":9}).edges.6":{"node":{"type":"id","generated":false,"id":"Tool:101231777404870424","typename":"Tool"},"__typename":"ToolEdge"},"Tool:104712181020695176":{"imageUrl":"https://img.stackshare.io/service/20833/mark_3.29.53_PM.png","thumbUrl":"https://img.stackshare.io/service/20833/thumb_mark_3.29.53_PM.png","thumbRetinaUrl":"https://img.stackshare.io/service/20833/thumb_retina_mark_3.29.53_PM.png","name":"Xkit","id":"104712181020695176","slug":"xkit","path":"/xkit","__typename":"Tool"},"$Tool:101231773881468995.allToolIntegrations({\"first\":9}).edges.7":{"node":{"type":"id","generated":false,"id":"Tool:104712181020695176","typename":"Tool"},"__typename":"ToolEdge"},"Tool:105390089465669643":{"imageUrl":"https://img.stackshare.io/service/21759/default_5c53af6aae91062d807462815c519a7745aabf4d.png","thumbUrl":"https://img.stackshare.io/service/21759/thumb_5c53af6aae91062d807462815c519a7745aabf4d.png","thumbRetinaUrl":"https://img.stackshare.io/service/21759/thumb_retina_5c53af6aae91062d807462815c519a7745aabf4d.png","name":"Amazon Lumberyard","id":"105390089465669643","slug":"amazon-lumberyard","path":"/amazon-lumberyard","__typename":"Tool"},"$Tool:101231773881468995.allToolIntegrations({\"first\":9}).edges.8":{"node":{"type":"id","generated":false,"id":"Tool:105390089465669643","typename":"Tool"},"__typename":"ToolEdge"},"$Tool:101231773881468995.followers({\"first\":10}).pageInfo":{"hasNextPage":true,"endCursor":"MTA","__typename":"PageInfo"},"$Tool:101231773881468995.followers({\"first\":10})":{"pageInfo":{"type":"id","generated":true,"id":"$Tool:101231773881468995.followers({\"first\":10}).pageInfo","typename":"PageInfo"},"edges":[{"type":"id","generated":true,"id":"$Tool:101231773881468995.followers({\"first\":10}).edges.0","typename":"UserEdge"},{"type":"id","generated":true,"id":"$Tool:101231773881468995.followers({\"first\":10}).edges.1","typename":"UserEdge"},{"type":"id","generated":true,"id":"$Tool:101231773881468995.followers({\"first\":10}).edges.2","typename":"UserEdge"},{"type":"id","generated":true,"id":"$Tool:101231773881468995.followers({\"first\":10}).edges.3","typename":"UserEdge"},{"type":"id","generated":true,"id":"$Tool:101231773881468995.followers({\"first\":10}).edges.4","typename":"UserEdge"},{"type":"id","generated":true,"id":"$Tool:101231773881468995.followers({\"first\":10}).edges.5","typename":"UserEdge"},{"type":"id","generated":true,"id":"$Tool:101231773881468995.followers({\"first\":10}).edges.6","typename":"UserEdge"},{"type":"id","generated":true,"id":"$Tool:101231773881468995.followers({\"first\":10}).edges.7","typename":"UserEdge"},{"type":"id","generated":true,"id":"$Tool:101231773881468995.followers({\"first\":10}).edges.8","typename":"UserEdge"},{"type":"id","generated":true,"id":"$Tool:101231773881468995.followers({\"first\":10}).edges.9","typename":"UserEdge"}],"__typename":"UserConnection"},"User:113498853339212829":{"id":"113498853339212829","displayName":"OÄuzhan Demiröz","username":"oguzhan-3","imageUrl":"https://img.stackshare.io/user/1666162/default_2a348484f57d3b7445317acf1da002b0200cb4ee.png","title":"Co-founder","popularity":3,"path":"/oguzhan-3","stacksCount":1,"favoritesCount":0,"votesCount":0,"__typename":"User"},"$Tool:101231773881468995.followers({\"first\":10}).edges.0":{"node":{"type":"id","generated":false,"id":"User:113498853339212829","typename":"User"},"__typename":"UserEdge"},"User:113186996343112032":{"id":"113186996343112032","displayName":"X M","username":"XM-1","imageUrl":"https://img.stackshare.io/user/1657564/default_67e5df9fc2c6e4ea778802f916eff8a877d5be70.jpg","title":"","popularity":3,"path":"/XM-1","stacksCount":1,"favoritesCount":0,"votesCount":0,"__typename":"User"},"$Tool:101231773881468995.followers({\"first\":10}).edges.1":{"node":{"type":"id","generated":false,"id":"User:113186996343112032","typename":"User"},"__typename":"UserEdge"},"User:113174836618644169":{"id":"113174836618644169","displayName":"Mohamed Salah","username":"mohamedsalah1966","imageUrl":"https://img.stackshare.io/user/1657314/default_0159192b6993850b9c7bcf81181c681d433611a0.png","title":"qa mgr","popularity":3,"path":"/mohamedsalah1966","stacksCount":1,"favoritesCount":0,"votesCount":0,"__typename":"User"},"$Tool:101231773881468995.followers({\"first\":10}).edges.2":{"node":{"type":"id","generated":false,"id":"User:113174836618644169","typename":"User"},"__typename":"UserEdge"},"User:113158995481754227":{"id":"113158995481754227","displayName":"Justin Safdie","username":"safd22","imageUrl":"https://img.stackshare.io/user/1656817/default_3c7118cfa66e46c55d869f07e21ebc1ac491dd59.png","title":"CTO","popularity":3,"path":"/safd22","stacksCount":1,"favoritesCount":0,"votesCount":0,"__typename":"User"},"$Tool:101231773881468995.followers({\"first\":10}).edges.3":{"node":{"type":"id","generated":false,"id":"User:113158995481754227","typename":"User"},"__typename":"UserEdge"},"User:113067952484171713":{"id":"113067952484171713","displayName":"Sripad Raghavendra","username":"sripad-1","imageUrl":"https://img.stackshare.io/user/1654179/default_77a91733e88c82e36e2b5f5d30a1158b13698401.png","title":"","popularity":3,"path":"/sripad-1","stacksCount":1,"favoritesCount":0,"votesCount":0,"__typename":"User"},"$Tool:101231773881468995.followers({\"first\":10}).edges.4":{"node":{"type":"id","generated":false,"id":"User:113067952484171713","typename":"User"},"__typename":"UserEdge"},"User:112554045333160097":{"id":"112554045333160097","displayName":"Filipe Nonato","username":"filipeaarin","imageUrl":"https://img.stackshare.io/user/1637433/default_cc0ac393aa3797cc3dee44ac5ac7948b9e1e16a1.jpg","title":null,"popularity":3,"path":"/filipeaarin","stacksCount":1,"favoritesCount":0,"votesCount":0,"__typename":"User"},"$Tool:101231773881468995.followers({\"first\":10}).edges.5":{"node":{"type":"id","generated":false,"id":"User:112554045333160097","typename":"User"},"__typename":"UserEdge"},"User:112477331503327419":{"id":"112477331503327419","displayName":"khush seervi","username":"khushseervi2020","imageUrl":"https://img.stackshare.io/user/1634553/default_cca524ff412e3f1e452aff35645403c4b49e8369.png","title":null,"popularity":0,"path":"/khushseervi2020","stacksCount":1,"favoritesCount":0,"votesCount":0,"__typename":"User"},"$Tool:101231773881468995.followers({\"first\":10}).edges.6":{"node":{"type":"id","generated":false,"id":"User:112477331503327419","typename":"User"},"__typename":"UserEdge"},"User:112446557074383076":{"id":"112446557074383076","displayName":"Bob Barnard","username":"bobbarnard","imageUrl":"https://img.stackshare.io/user/1633488/default_75989ccb9e2d24abb4583fb609957e57fcb7f3b0.jpg","title":"","popularity":6,"path":"/bobbarnard","stacksCount":2,"favoritesCount":0,"votesCount":0,"__typename":"User"},"$Tool:101231773881468995.followers({\"first\":10}).edges.7":{"node":{"type":"id","generated":false,"id":"User:112446557074383076","typename":"User"},"__typename":"UserEdge"},"User:112445291378498589":{"id":"112445291378498589","displayName":"Lucas Rollemberg","username":"lucasrollemberg","imageUrl":"https://img.stackshare.io/user/1633408/default_534f3bd46e855acc352f1271c79a18ace5ff743b.jpg","title":null,"popularity":0,"path":"/lucasrollemberg","stacksCount":1,"favoritesCount":0,"votesCount":0,"__typename":"User"},"$Tool:101231773881468995.followers({\"first\":10}).edges.8":{"node":{"type":"id","generated":false,"id":"User:112445291378498589","typename":"User"},"__typename":"UserEdge"},"User:112285218883534208":{"id":"112285218883534208","displayName":"Aman Sorout","username":"asorout","imageUrl":"https://img.stackshare.io/user/1626919/default_91ffb071068699ba411a063cd361d2c664a71d40.png","title":null,"popularity":0,"path":"/asorout","stacksCount":1,"favoritesCount":0,"votesCount":0,"__typename":"User"},"$Tool:101231773881468995.followers({\"first\":10}).edges.9":{"node":{"type":"id","generated":false,"id":"User:112285218883534208","typename":"User"},"__typename":"UserEdge"}}