Skip to content

authMethod default not stored in auth options (AO2) #2205

Description

@paddybyers

Spec point

  • AO2: `authMethod` defaults to `'GET'` and should be accessible on the auth options object.

Observed behaviour

When `authMethod` is not explicitly set, `auth.authOptions.authMethod` is `undefined`. The GET default is applied at HTTP request time, not stored in the options object.

Failing test

Test Expected Actual
`AO2 - authMethod defaults to GET` `auth.authOptions.authMethod === 'GET'` `undefined`

Reproduction

```bash
RUN_DEVIATIONS=1 npx mocha --grep "AO2" test/uts/rest/types/options_types.test.ts
```

From PR #2191, branch `uts-rest`.

┆Issue is synchronized with this Jira Task by Unito

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working. It's clear that this does need to be fixed.uts-issueIssues raised there there is an apparent discrepancy between this library and the UTS tests

    Type

    No type

    Fields

    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