Examples: query, "exact match", wildcard*, wild?ard, wild*rd
Fuzzy search: cake~ (finds cakes, bake)
Term boost: "red velvet"^4, chocolate^2
Field grouping: tags:(+work -"fun-stuff")
Escape special characters +-&|!(){}[]^"~*?:\ - e.g. \+ \* \!
Range search: properties.timestamp:[1587729413488 TO *] (inclusive), properties.title:{A TO Z}(excluding A and Z)
Combinations: chocolate AND vanilla, chocolate OR vanilla, (chocolate OR vanilla) NOT "vanilla pudding"
Field search: properties.title:"The Title" AND text
 
Answered
Securely accessing a public api with a Q2 api

My team is looking to securely connect to a company api that is exposed to the outside world from a Q2 api. What are the best practices around creating a secure connection? Would this simply be a matter of the Q2 api making an OAuth call to a company server to get a token? How have other projects handled authorization to a company resource?

Thanks in advance!

Posted 4 years ago
Votes Newest

Answers


Hi Noah,

Really depends on how your company API is secured. Since you mentioned OAuth, the traditional mechanism for backend API to backend API is via client credentials auth workflow. You generate client credentails like a client_id and client_secret within your identity provider, store those values within the Q2 platform (we use a secret management tool called vault https://docs.q2developer.com/guides/performance_and_security/vault.html). Then at request time, the client_id and client_secret are exchanged with your API to get back a access_token, which is then used on subsequent reqeuests to your API.

Hope this helps.
Jason

Posted 4 years ago
Jason Herbert
23 × 2 Administrator