Getting started with 1Password for your growing team, or refining your setup? Our Secured Success quickstart guide is for you.
Forum Discussion
Former Member
3 years agoService Accounts: failed to DecodeSACCredentials: failed to DeserializeServiceAccountAuthToken
Hello, I'm trying to connect Bitrise with 1Password via a service account. I have set my OP_SERVICE_ACCOUNT_TOKEN environment variable to my service account token. But I get the following error:
...
Former Member
2 years agoOk apparently my bash-fu wasn't so strong.. Here's what I was doing wrong:
In order to populate the OP_SERVICE_ACCOUNT_TOKEN
variable, I had stored the service token in a file (marked rw only for the user to keep it secret) and then I was running export OP_SERVICE_ACCOUNT_TOKEN=$(cat .service-account-token)
.
The problem with this is that cat
seems to have been spitting out ^[[0m
escape sequences at the beginning and the end of its output...and those are bytes that throw off op
!
To fix this, I just changed my export
statement to export OP_SERVICE_ACCOUNT_TOKEN=$(<.service-account-token)
and everything seems to be golden now.