Hey Community… quick question… Is it possible to do service to service (i.e. no end usrer) OAUTH2 authentication using sst currently?
t
Thomas Ankcorn
09/02/2021, 1:57 PM
You can do that using cognito, Manually get the refresh token and use it to request an access token that can be used to authenticate requests.
Store the refresh token in secrets manager for safe keeping
c
Carlos Ribeiro
09/02/2021, 1:58 PM
Thanks Thomas, I’ll give that a try
f
Frank
09/02/2021, 3:52 PM
Thanks @Thomas Ankcorn! This is some advanced stuff 😅
t
Thomas Ankcorn
09/02/2021, 4:14 PM
shout if you need a hand with the Cognito config or oauth dance to get the refresh token. AWS make this unnecessarily difficult.