Skip to content

Deployment authorization failure despite unexpired refresh token. #1447

Description

@tmoody

A dev environment with a .env.viya file in the root of the project.

The access token had a lifetime of 1 hour which expired last week.
The refresh token has a lifetime of 2 weeks and does not expire until 29th June.

sasjs d -t viya returns an error:

$ sasjs d -t viya
i Target viya was found in your local sasjsconfig.json file.                                                                                                 13:40:10
i Deploying service pack to https://viya.server.com at location /Public/trevor/app/psmreact .                                                 13:40:10

 ERROR  An error has occurred when deploying services: Error: Deployment failed. Request is not authenticated.                                               13:40:31  
Please add the following variables to your .env.viya file:
CLIENT, SECRET, ACCESS_TOKEN, REFRESH_TOKEN

Given the longevity of the refresh token, this is not what I expected, but I'm not sure how best to determine which end is misbehaving.

Resubmitting sasjs auth -t viya will work around this interactively, but this is not suitable for a gitlab pipeline.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions